[2025-02-21 00:00:05] Production.INFO: next invoice date [2025-02-21 00:00:05] Production.INFO: 2025-03-21 [2025-02-21 00:00:05] Production.INFO: getdaysdiff [2025-02-21 00:00:05] Production.INFO: +28 [2025-02-21 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,28,28,'RMScheduler',2025-02-21 00:00:05,1,0,,,0) [2025-02-21 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:00:07 [end_date_ymd] => 2025-02-21 00:00:07 [RateCDR] => 1 ) [2025-02-21 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-20 21:00:07' and `end` < '2025-02-21 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-21 00:00:19] Production.INFO: count ==698 [2025-02-21 00:00:19] Production.ERROR: pbx CDR StartTime 2025-02-20 21:00:07 - End Time 2025-02-21 00:00:07 [2025-02-21 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521259', 'tblTempUsageDetail_20' ) start [2025-02-21 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521259', 'tblTempUsageDetail_20' ) end [2025-02-21 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521259', 'tblTempVendorCDR_20' ) start [2025-02-21 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521259', 'tblTempVendorCDR_20' ) end [2025-02-21 00:00:19] Production.INFO: ProcessCDR(1,14521259,1,1,2) [2025-02-21 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521259', 'tblTempUsageDetail_20' ) start [2025-02-21 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521259', 'tblTempUsageDetail_20' ) end [2025-02-21 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:00:26] Production.INFO: ==5648== Releasing lock... [2025-02-21 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:00:26] Production.INFO: 34.75 MB #Memory Used# [2025-02-21 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:01:06 [end_date_ymd] => 2025-02-21 00:01:06 [RateCDR] => 1 ) [2025-02-21 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:01:06' and `end` < '2025-02-21 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:01:22] Production.INFO: count ==674 [2025-02-21 00:01:22] Production.ERROR: pbx CDR StartTime 2025-02-20 21:01:06 - End Time 2025-02-21 00:01:06 [2025-02-21 00:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521265', 'tblTempUsageDetail_20' ) start [2025-02-21 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521265', 'tblTempUsageDetail_20' ) end [2025-02-21 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521265', 'tblTempVendorCDR_20' ) start [2025-02-21 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521265', 'tblTempVendorCDR_20' ) end [2025-02-21 00:01:22] Production.INFO: ProcessCDR(1,14521265,1,1,2) [2025-02-21 00:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521265', 'tblTempUsageDetail_20' ) start [2025-02-21 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521265', 'tblTempUsageDetail_20' ) end [2025-02-21 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:01:25] Production.INFO: ==5740== Releasing lock... [2025-02-21 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:01:25] Production.INFO: 32.5 MB #Memory Used# [2025-02-21 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:02:06 [end_date_ymd] => 2025-02-21 00:02:06 [RateCDR] => 1 ) [2025-02-21 00: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-20 21:02:06' and `end` < '2025-02-21 00: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-21 00:02:18] Production.INFO: count ==226 [2025-02-21 00:02:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:02:06 - End Time 2025-02-21 00:02:06 [2025-02-21 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521270', 'tblTempUsageDetail_20' ) start [2025-02-21 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521270', 'tblTempUsageDetail_20' ) end [2025-02-21 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521270', 'tblTempVendorCDR_20' ) start [2025-02-21 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521270', 'tblTempVendorCDR_20' ) end [2025-02-21 00:02:18] Production.INFO: ProcessCDR(1,14521270,1,1,2) [2025-02-21 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521270', 'tblTempUsageDetail_20' ) start [2025-02-21 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521270', 'tblTempUsageDetail_20' ) end [2025-02-21 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:02:22] Production.INFO: ==5815== Releasing lock... [2025-02-21 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:02:22] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:03:06 [end_date_ymd] => 2025-02-21 00:03:06 [RateCDR] => 1 ) [2025-02-21 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-20 21:03:06' and `end` < '2025-02-21 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-21 00:03:17] Production.INFO: count ==225 [2025-02-21 00:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:03:06 - End Time 2025-02-21 00:03:06 [2025-02-21 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521275', 'tblTempUsageDetail_20' ) start [2025-02-21 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521275', 'tblTempUsageDetail_20' ) end [2025-02-21 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521275', 'tblTempVendorCDR_20' ) start [2025-02-21 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521275', 'tblTempVendorCDR_20' ) end [2025-02-21 00:03:17] Production.INFO: ProcessCDR(1,14521275,1,1,2) [2025-02-21 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521275', 'tblTempUsageDetail_20' ) start [2025-02-21 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521275', 'tblTempUsageDetail_20' ) end [2025-02-21 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:03:21] Production.INFO: ==5889== Releasing lock... [2025-02-21 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:04:05 [end_date_ymd] => 2025-02-21 00:04:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:04:05' and `end` < '2025-02-21 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-21 00:04:17] Production.INFO: count ==218 [2025-02-21 00:04:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:04:05 - End Time 2025-02-21 00:04:05 [2025-02-21 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521280', 'tblTempUsageDetail_20' ) start [2025-02-21 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521280', 'tblTempUsageDetail_20' ) end [2025-02-21 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521280', 'tblTempVendorCDR_20' ) start [2025-02-21 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521280', 'tblTempVendorCDR_20' ) end [2025-02-21 00:04:17] Production.INFO: ProcessCDR(1,14521280,1,1,2) [2025-02-21 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521280', 'tblTempUsageDetail_20' ) start [2025-02-21 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521280', 'tblTempUsageDetail_20' ) end [2025-02-21 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:04:21] Production.INFO: ==5965== Releasing lock... [2025-02-21 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:05:06 [end_date_ymd] => 2025-02-21 00:05:06 [RateCDR] => 1 ) [2025-02-21 00: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-20 21:05:06' and `end` < '2025-02-21 00: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-21 00:05:18] Production.INFO: count ==227 [2025-02-21 00:05:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:05:06 - End Time 2025-02-21 00:05:06 [2025-02-21 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521285', 'tblTempUsageDetail_20' ) start [2025-02-21 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521285', 'tblTempUsageDetail_20' ) end [2025-02-21 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521285', 'tblTempVendorCDR_20' ) start [2025-02-21 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521285', 'tblTempVendorCDR_20' ) end [2025-02-21 00:05:18] Production.INFO: ProcessCDR(1,14521285,1,1,2) [2025-02-21 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521285', 'tblTempUsageDetail_20' ) start [2025-02-21 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521285', 'tblTempUsageDetail_20' ) end [2025-02-21 00:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:05:22] Production.INFO: ==6042== Releasing lock... [2025-02-21 00:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:05:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:06:05 [end_date_ymd] => 2025-02-21 00:06:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:06:05' and `end` < '2025-02-21 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-21 00:06:17] Production.INFO: count ==227 [2025-02-21 00:06:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:06:05 - End Time 2025-02-21 00:06:05 [2025-02-21 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521290', 'tblTempUsageDetail_20' ) start [2025-02-21 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521290', 'tblTempUsageDetail_20' ) end [2025-02-21 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521290', 'tblTempVendorCDR_20' ) start [2025-02-21 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521290', 'tblTempVendorCDR_20' ) end [2025-02-21 00:06:17] Production.INFO: ProcessCDR(1,14521290,1,1,2) [2025-02-21 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521290', 'tblTempUsageDetail_20' ) start [2025-02-21 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521290', 'tblTempUsageDetail_20' ) end [2025-02-21 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:06:21] Production.INFO: ==6164== Releasing lock... [2025-02-21 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:07:05 [end_date_ymd] => 2025-02-21 00:07:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:07:05' and `end` < '2025-02-21 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-21 00:07:17] Production.INFO: count ==223 [2025-02-21 00:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:07:05 - End Time 2025-02-21 00:07:05 [2025-02-21 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521295', 'tblTempUsageDetail_20' ) start [2025-02-21 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521295', 'tblTempUsageDetail_20' ) end [2025-02-21 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521295', 'tblTempVendorCDR_20' ) start [2025-02-21 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521295', 'tblTempVendorCDR_20' ) end [2025-02-21 00:07:17] Production.INFO: ProcessCDR(1,14521295,1,1,2) [2025-02-21 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521295', 'tblTempUsageDetail_20' ) start [2025-02-21 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521295', 'tblTempUsageDetail_20' ) end [2025-02-21 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:07:22] Production.INFO: ==6241== Releasing lock... [2025-02-21 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:08:05 [end_date_ymd] => 2025-02-21 00:08:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:08:05' and `end` < '2025-02-21 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-21 00:08:17] Production.INFO: count ==217 [2025-02-21 00:08:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:08:05 - End Time 2025-02-21 00:08:05 [2025-02-21 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521300', 'tblTempUsageDetail_20' ) start [2025-02-21 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521300', 'tblTempUsageDetail_20' ) end [2025-02-21 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521300', 'tblTempVendorCDR_20' ) start [2025-02-21 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521300', 'tblTempVendorCDR_20' ) end [2025-02-21 00:08:17] Production.INFO: ProcessCDR(1,14521300,1,1,2) [2025-02-21 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521300', 'tblTempUsageDetail_20' ) start [2025-02-21 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521300', 'tblTempUsageDetail_20' ) end [2025-02-21 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:08:21] Production.INFO: ==6316== Releasing lock... [2025-02-21 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:09:05 [end_date_ymd] => 2025-02-21 00:09:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:09:05' and `end` < '2025-02-21 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-21 00:09:17] Production.INFO: count ==216 [2025-02-21 00:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:09:05 - End Time 2025-02-21 00:09:05 [2025-02-21 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521305', 'tblTempUsageDetail_20' ) start [2025-02-21 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521305', 'tblTempUsageDetail_20' ) end [2025-02-21 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521305', 'tblTempVendorCDR_20' ) start [2025-02-21 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521305', 'tblTempVendorCDR_20' ) end [2025-02-21 00:09:17] Production.INFO: ProcessCDR(1,14521305,1,1,2) [2025-02-21 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521305', 'tblTempUsageDetail_20' ) start [2025-02-21 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521305', 'tblTempUsageDetail_20' ) end [2025-02-21 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:09:20] Production.INFO: ==6392== Releasing lock... [2025-02-21 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:09:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:10:05 [end_date_ymd] => 2025-02-21 00:10:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:10:05' and `end` < '2025-02-21 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-21 00:10:17] Production.INFO: count ==222 [2025-02-21 00:10:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:10:05 - End Time 2025-02-21 00:10:05 [2025-02-21 00:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521310', 'tblTempUsageDetail_20' ) start [2025-02-21 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521310', 'tblTempUsageDetail_20' ) end [2025-02-21 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521310', 'tblTempVendorCDR_20' ) start [2025-02-21 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521310', 'tblTempVendorCDR_20' ) end [2025-02-21 00:10:17] Production.INFO: ProcessCDR(1,14521310,1,1,2) [2025-02-21 00:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521310', 'tblTempUsageDetail_20' ) start [2025-02-21 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521310', 'tblTempUsageDetail_20' ) end [2025-02-21 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:10:22] Production.INFO: ==6467== Releasing lock... [2025-02-21 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:11:05 [end_date_ymd] => 2025-02-21 00:11:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:11:05' and `end` < '2025-02-21 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-21 00:11:17] Production.INFO: count ==232 [2025-02-21 00:11:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:11:05 - End Time 2025-02-21 00:11:05 [2025-02-21 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521316', 'tblTempUsageDetail_20' ) start [2025-02-21 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521316', 'tblTempUsageDetail_20' ) end [2025-02-21 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521316', 'tblTempVendorCDR_20' ) start [2025-02-21 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521316', 'tblTempVendorCDR_20' ) end [2025-02-21 00:11:17] Production.INFO: ProcessCDR(1,14521316,1,1,2) [2025-02-21 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521316', 'tblTempUsageDetail_20' ) start [2025-02-21 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521316', 'tblTempUsageDetail_20' ) end [2025-02-21 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:11:21] Production.INFO: ==6547== Releasing lock... [2025-02-21 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:11:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:12:06 [end_date_ymd] => 2025-02-21 00:12:06 [RateCDR] => 1 ) [2025-02-21 00: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-20 21:12:06' and `end` < '2025-02-21 00: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-21 00:12:18] Production.INFO: count ==234 [2025-02-21 00:12:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:12:06 - End Time 2025-02-21 00:12:06 [2025-02-21 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521321', 'tblTempUsageDetail_20' ) start [2025-02-21 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521321', 'tblTempUsageDetail_20' ) end [2025-02-21 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521321', 'tblTempVendorCDR_20' ) start [2025-02-21 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521321', 'tblTempVendorCDR_20' ) end [2025-02-21 00:12:18] Production.INFO: ProcessCDR(1,14521321,1,1,2) [2025-02-21 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521321', 'tblTempUsageDetail_20' ) start [2025-02-21 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521321', 'tblTempUsageDetail_20' ) end [2025-02-21 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:12:22] Production.INFO: ==6623== Releasing lock... [2025-02-21 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:12:22] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:13:05 [end_date_ymd] => 2025-02-21 00:13:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:13:05' and `end` < '2025-02-21 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-21 00:13:18] Production.INFO: count ==232 [2025-02-21 00:13:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:13:05 - End Time 2025-02-21 00:13:05 [2025-02-21 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521326', 'tblTempUsageDetail_20' ) start [2025-02-21 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521326', 'tblTempUsageDetail_20' ) end [2025-02-21 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521326', 'tblTempVendorCDR_20' ) start [2025-02-21 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521326', 'tblTempVendorCDR_20' ) end [2025-02-21 00:13:18] Production.INFO: ProcessCDR(1,14521326,1,1,2) [2025-02-21 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521326', 'tblTempUsageDetail_20' ) start [2025-02-21 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521326', 'tblTempUsageDetail_20' ) end [2025-02-21 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:13:22] Production.INFO: ==6697== Releasing lock... [2025-02-21 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:13:22] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:14:05 [end_date_ymd] => 2025-02-21 00:14:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:14:05' and `end` < '2025-02-21 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-21 00:14:17] Production.INFO: count ==235 [2025-02-21 00:14:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:14:05 - End Time 2025-02-21 00:14:05 [2025-02-21 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521331', 'tblTempUsageDetail_20' ) start [2025-02-21 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521331', 'tblTempUsageDetail_20' ) end [2025-02-21 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521331', 'tblTempVendorCDR_20' ) start [2025-02-21 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521331', 'tblTempVendorCDR_20' ) end [2025-02-21 00:14:18] Production.INFO: ProcessCDR(1,14521331,1,1,2) [2025-02-21 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521331', 'tblTempUsageDetail_20' ) start [2025-02-21 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521331', 'tblTempUsageDetail_20' ) end [2025-02-21 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:14:22] Production.INFO: ==6770== Releasing lock... [2025-02-21 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:14:22] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:15:05 [end_date_ymd] => 2025-02-21 00:15:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:15:05' and `end` < '2025-02-21 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-21 00:15:17] Production.INFO: count ==237 [2025-02-21 00:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:15:05 - End Time 2025-02-21 00:15:05 [2025-02-21 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521336', 'tblTempUsageDetail_20' ) start [2025-02-21 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521336', 'tblTempUsageDetail_20' ) end [2025-02-21 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521336', 'tblTempVendorCDR_20' ) start [2025-02-21 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521336', 'tblTempVendorCDR_20' ) end [2025-02-21 00:15:17] Production.INFO: ProcessCDR(1,14521336,1,1,2) [2025-02-21 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521336', 'tblTempUsageDetail_20' ) start [2025-02-21 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521336', 'tblTempUsageDetail_20' ) end [2025-02-21 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:15:21] Production.INFO: ==6850== Releasing lock... [2025-02-21 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:16:05 [end_date_ymd] => 2025-02-21 00:16:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:16:05' and `end` < '2025-02-21 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-21 00:16:17] Production.INFO: count ==235 [2025-02-21 00:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:16:05 - End Time 2025-02-21 00:16:05 [2025-02-21 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521341', 'tblTempUsageDetail_20' ) start [2025-02-21 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521341', 'tblTempUsageDetail_20' ) end [2025-02-21 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521341', 'tblTempVendorCDR_20' ) start [2025-02-21 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521341', 'tblTempVendorCDR_20' ) end [2025-02-21 00:16:17] Production.INFO: ProcessCDR(1,14521341,1,1,2) [2025-02-21 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521341', 'tblTempUsageDetail_20' ) start [2025-02-21 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521341', 'tblTempUsageDetail_20' ) end [2025-02-21 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:16:20] Production.INFO: ==6926== Releasing lock... [2025-02-21 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:17:04 [end_date_ymd] => 2025-02-21 00:17:04 [RateCDR] => 1 ) [2025-02-21 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-20 21:17:04' and `end` < '2025-02-21 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-21 00:17:16] Production.INFO: count ==235 [2025-02-21 00:17:16] Production.ERROR: pbx CDR StartTime 2025-02-20 21:17:04 - End Time 2025-02-21 00:17:04 [2025-02-21 00:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521346', 'tblTempUsageDetail_20' ) start [2025-02-21 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521346', 'tblTempUsageDetail_20' ) end [2025-02-21 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521346', 'tblTempVendorCDR_20' ) start [2025-02-21 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521346', 'tblTempVendorCDR_20' ) end [2025-02-21 00:17:16] Production.INFO: ProcessCDR(1,14521346,1,1,2) [2025-02-21 00:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521346', 'tblTempUsageDetail_20' ) start [2025-02-21 00:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521346', 'tblTempUsageDetail_20' ) end [2025-02-21 00:17:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:17:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:17:19] Production.INFO: ==7000== Releasing lock... [2025-02-21 00:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:17:19] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:18:05 [end_date_ymd] => 2025-02-21 00:18:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:18:05' and `end` < '2025-02-21 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-21 00:18:17] Production.INFO: count ==235 [2025-02-21 00:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:18:05 - End Time 2025-02-21 00:18:05 [2025-02-21 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521351', 'tblTempUsageDetail_20' ) start [2025-02-21 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521351', 'tblTempUsageDetail_20' ) end [2025-02-21 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521351', 'tblTempVendorCDR_20' ) start [2025-02-21 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521351', 'tblTempVendorCDR_20' ) end [2025-02-21 00:18:17] Production.INFO: ProcessCDR(1,14521351,1,1,2) [2025-02-21 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521351', 'tblTempUsageDetail_20' ) start [2025-02-21 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521351', 'tblTempUsageDetail_20' ) end [2025-02-21 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:18:21] Production.INFO: ==7089== Releasing lock... [2025-02-21 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:19:05 [end_date_ymd] => 2025-02-21 00:19:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:19:05' and `end` < '2025-02-21 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-21 00:19:17] Production.INFO: count ==239 [2025-02-21 00:19:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:19:05 - End Time 2025-02-21 00:19:05 [2025-02-21 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521356', 'tblTempUsageDetail_20' ) start [2025-02-21 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521356', 'tblTempUsageDetail_20' ) end [2025-02-21 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521356', 'tblTempVendorCDR_20' ) start [2025-02-21 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521356', 'tblTempVendorCDR_20' ) end [2025-02-21 00:19:17] Production.INFO: ProcessCDR(1,14521356,1,1,2) [2025-02-21 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521356', 'tblTempUsageDetail_20' ) start [2025-02-21 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521356', 'tblTempUsageDetail_20' ) end [2025-02-21 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:19:22] Production.INFO: ==7170== Releasing lock... [2025-02-21 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:20:06 [end_date_ymd] => 2025-02-21 00:20:06 [RateCDR] => 1 ) [2025-02-21 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:20:06' and `end` < '2025-02-21 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:20:18] Production.INFO: count ==238 [2025-02-21 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:20:06 - End Time 2025-02-21 00:20:06 [2025-02-21 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521362', 'tblTempUsageDetail_20' ) start [2025-02-21 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521362', 'tblTempUsageDetail_20' ) end [2025-02-21 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521362', 'tblTempVendorCDR_20' ) start [2025-02-21 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521362', 'tblTempVendorCDR_20' ) end [2025-02-21 00:20:18] Production.INFO: ProcessCDR(1,14521362,1,1,2) [2025-02-21 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521362', 'tblTempUsageDetail_20' ) start [2025-02-21 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521362', 'tblTempUsageDetail_20' ) end [2025-02-21 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:20:21] Production.INFO: ==7265== Releasing lock... [2025-02-21 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:20:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:21:05 [end_date_ymd] => 2025-02-21 00:21:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:21:05' and `end` < '2025-02-21 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-21 00:21:17] Production.INFO: count ==238 [2025-02-21 00:21:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:21:05 - End Time 2025-02-21 00:21:05 [2025-02-21 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521367', 'tblTempUsageDetail_20' ) start [2025-02-21 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521367', 'tblTempUsageDetail_20' ) end [2025-02-21 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521367', 'tblTempVendorCDR_20' ) start [2025-02-21 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521367', 'tblTempVendorCDR_20' ) end [2025-02-21 00:21:17] Production.INFO: ProcessCDR(1,14521367,1,1,2) [2025-02-21 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521367', 'tblTempUsageDetail_20' ) start [2025-02-21 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521367', 'tblTempUsageDetail_20' ) end [2025-02-21 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:21:20] Production.INFO: ==7381== Releasing lock... [2025-02-21 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:21:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:22:05 [end_date_ymd] => 2025-02-21 00:22:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:22:05' and `end` < '2025-02-21 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-21 00:22:17] Production.INFO: count ==235 [2025-02-21 00:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:22:05 - End Time 2025-02-21 00:22:05 [2025-02-21 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521372', 'tblTempUsageDetail_20' ) start [2025-02-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521372', 'tblTempUsageDetail_20' ) end [2025-02-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521372', 'tblTempVendorCDR_20' ) start [2025-02-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521372', 'tblTempVendorCDR_20' ) end [2025-02-21 00:22:17] Production.INFO: ProcessCDR(1,14521372,1,1,2) [2025-02-21 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521372', 'tblTempUsageDetail_20' ) start [2025-02-21 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521372', 'tblTempUsageDetail_20' ) end [2025-02-21 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:22:20] Production.INFO: ==7455== Releasing lock... [2025-02-21 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:22:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:23:05 [end_date_ymd] => 2025-02-21 00:23:05 [RateCDR] => 1 ) [2025-02-21 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:23:05' and `end` < '2025-02-21 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:23:17] Production.INFO: count ==235 [2025-02-21 00:23:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:23:05 - End Time 2025-02-21 00:23:05 [2025-02-21 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521377', 'tblTempUsageDetail_20' ) start [2025-02-21 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521377', 'tblTempUsageDetail_20' ) end [2025-02-21 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521377', 'tblTempVendorCDR_20' ) start [2025-02-21 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521377', 'tblTempVendorCDR_20' ) end [2025-02-21 00:23:17] Production.INFO: ProcessCDR(1,14521377,1,1,2) [2025-02-21 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521377', 'tblTempUsageDetail_20' ) start [2025-02-21 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521377', 'tblTempUsageDetail_20' ) end [2025-02-21 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:23:20] Production.INFO: ==7532== Releasing lock... [2025-02-21 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:23:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:24:04 [end_date_ymd] => 2025-02-21 00:24:04 [RateCDR] => 1 ) [2025-02-21 00:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:24:04' and `end` < '2025-02-21 00:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:24:16] Production.INFO: count ==234 [2025-02-21 00:24:16] Production.ERROR: pbx CDR StartTime 2025-02-20 21:24:04 - End Time 2025-02-21 00:24:04 [2025-02-21 00:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521382', 'tblTempUsageDetail_20' ) start [2025-02-21 00:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521382', 'tblTempUsageDetail_20' ) end [2025-02-21 00:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521382', 'tblTempVendorCDR_20' ) start [2025-02-21 00:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521382', 'tblTempVendorCDR_20' ) end [2025-02-21 00:24:16] Production.INFO: ProcessCDR(1,14521382,1,1,2) [2025-02-21 00:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:24:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:24:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:24:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521382', 'tblTempUsageDetail_20' ) start [2025-02-21 00:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521382', 'tblTempUsageDetail_20' ) end [2025-02-21 00:24:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:24:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:24:19] Production.INFO: ==7605== Releasing lock... [2025-02-21 00:24:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:24:19] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:25:05 [end_date_ymd] => 2025-02-21 00:25:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:25:05' and `end` < '2025-02-21 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-21 00:25:17] Production.INFO: count ==234 [2025-02-21 00:25:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:25:05 - End Time 2025-02-21 00:25:05 [2025-02-21 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521387', 'tblTempUsageDetail_20' ) start [2025-02-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521387', 'tblTempUsageDetail_20' ) end [2025-02-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521387', 'tblTempVendorCDR_20' ) start [2025-02-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521387', 'tblTempVendorCDR_20' ) end [2025-02-21 00:25:17] Production.INFO: ProcessCDR(1,14521387,1,1,2) [2025-02-21 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521387', 'tblTempUsageDetail_20' ) start [2025-02-21 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521387', 'tblTempUsageDetail_20' ) end [2025-02-21 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:25:20] Production.INFO: ==7680== Releasing lock... [2025-02-21 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:25:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:26:05 [end_date_ymd] => 2025-02-21 00:26:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:26:05' and `end` < '2025-02-21 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-21 00:26:17] Production.INFO: count ==234 [2025-02-21 00:26:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:26:05 - End Time 2025-02-21 00:26:05 [2025-02-21 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521392', 'tblTempUsageDetail_20' ) start [2025-02-21 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521392', 'tblTempUsageDetail_20' ) end [2025-02-21 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521392', 'tblTempVendorCDR_20' ) start [2025-02-21 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521392', 'tblTempVendorCDR_20' ) end [2025-02-21 00:26:17] Production.INFO: ProcessCDR(1,14521392,1,1,2) [2025-02-21 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521392', 'tblTempUsageDetail_20' ) start [2025-02-21 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521392', 'tblTempUsageDetail_20' ) end [2025-02-21 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:26:22] Production.INFO: ==7753== Releasing lock... [2025-02-21 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:26:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:27:05 [end_date_ymd] => 2025-02-21 00:27:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:27:05' and `end` < '2025-02-21 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-21 00:27:17] Production.INFO: count ==234 [2025-02-21 00:27:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:27:05 - End Time 2025-02-21 00:27:05 [2025-02-21 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521397', 'tblTempUsageDetail_20' ) start [2025-02-21 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521397', 'tblTempUsageDetail_20' ) end [2025-02-21 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521397', 'tblTempVendorCDR_20' ) start [2025-02-21 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521397', 'tblTempVendorCDR_20' ) end [2025-02-21 00:27:17] Production.INFO: ProcessCDR(1,14521397,1,1,2) [2025-02-21 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521397', 'tblTempUsageDetail_20' ) start [2025-02-21 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521397', 'tblTempUsageDetail_20' ) end [2025-02-21 00:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:27:20] Production.INFO: ==7827== Releasing lock... [2025-02-21 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:27:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:28:05 [end_date_ymd] => 2025-02-21 00:28:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:28:05' and `end` < '2025-02-21 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-21 00:28:17] Production.INFO: count ==232 [2025-02-21 00:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:28:05 - End Time 2025-02-21 00:28:05 [2025-02-21 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521402', 'tblTempUsageDetail_20' ) start [2025-02-21 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521402', 'tblTempUsageDetail_20' ) end [2025-02-21 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521402', 'tblTempVendorCDR_20' ) start [2025-02-21 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521402', 'tblTempVendorCDR_20' ) end [2025-02-21 00:28:17] Production.INFO: ProcessCDR(1,14521402,1,1,2) [2025-02-21 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521402', 'tblTempUsageDetail_20' ) start [2025-02-21 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521402', 'tblTempUsageDetail_20' ) end [2025-02-21 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:28:20] Production.INFO: ==7902== Releasing lock... [2025-02-21 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:28:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:29:04 [end_date_ymd] => 2025-02-21 00:29:04 [RateCDR] => 1 ) [2025-02-21 00:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:29:04' and `end` < '2025-02-21 00:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:29:16] Production.INFO: count ==235 [2025-02-21 00:29:16] Production.ERROR: pbx CDR StartTime 2025-02-20 21:29:04 - End Time 2025-02-21 00:29:04 [2025-02-21 00:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521407', 'tblTempUsageDetail_20' ) start [2025-02-21 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521407', 'tblTempUsageDetail_20' ) end [2025-02-21 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521407', 'tblTempVendorCDR_20' ) start [2025-02-21 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521407', 'tblTempVendorCDR_20' ) end [2025-02-21 00:29:16] Production.INFO: ProcessCDR(1,14521407,1,1,2) [2025-02-21 00:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521407', 'tblTempUsageDetail_20' ) start [2025-02-21 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521407', 'tblTempUsageDetail_20' ) end [2025-02-21 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:29:20] Production.INFO: ==7976== Releasing lock... [2025-02-21 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:29:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:30:06 [end_date_ymd] => 2025-02-21 00:30:06 [RateCDR] => 1 ) [2025-02-21 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:30:06' and `end` < '2025-02-21 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:30:18] Production.INFO: count ==246 [2025-02-21 00:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:30:06 - End Time 2025-02-21 00:30:06 [2025-02-21 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521412', 'tblTempUsageDetail_20' ) start [2025-02-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521412', 'tblTempUsageDetail_20' ) end [2025-02-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521412', 'tblTempVendorCDR_20' ) start [2025-02-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521412', 'tblTempVendorCDR_20' ) end [2025-02-21 00:30:18] Production.INFO: ProcessCDR(1,14521412,1,1,2) [2025-02-21 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521412', 'tblTempUsageDetail_20' ) start [2025-02-21 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521412', 'tblTempUsageDetail_20' ) end [2025-02-21 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:30:22] Production.INFO: ==8055== Releasing lock... [2025-02-21 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:31:05 [end_date_ymd] => 2025-02-21 00:31:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:31:05' and `end` < '2025-02-21 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-21 00:31:17] Production.INFO: count ==257 [2025-02-21 00:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:31:05 - End Time 2025-02-21 00:31:05 [2025-02-21 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521418', 'tblTempUsageDetail_20' ) start [2025-02-21 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521418', 'tblTempUsageDetail_20' ) end [2025-02-21 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521418', 'tblTempVendorCDR_20' ) start [2025-02-21 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521418', 'tblTempVendorCDR_20' ) end [2025-02-21 00:31:17] Production.INFO: ProcessCDR(1,14521418,1,1,2) [2025-02-21 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521418', 'tblTempUsageDetail_20' ) start [2025-02-21 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521418', 'tblTempUsageDetail_20' ) end [2025-02-21 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:31:20] Production.INFO: ==8130== Releasing lock... [2025-02-21 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:31:20] Production.INFO: 31 MB #Memory Used# [2025-02-21 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:32:05 [end_date_ymd] => 2025-02-21 00:32:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:32:05' and `end` < '2025-02-21 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-21 00:32:17] Production.INFO: count ==259 [2025-02-21 00:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:32:05 - End Time 2025-02-21 00:32:05 [2025-02-21 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521423', 'tblTempUsageDetail_20' ) start [2025-02-21 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521423', 'tblTempUsageDetail_20' ) end [2025-02-21 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521423', 'tblTempVendorCDR_20' ) start [2025-02-21 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521423', 'tblTempVendorCDR_20' ) end [2025-02-21 00:32:17] Production.INFO: ProcessCDR(1,14521423,1,1,2) [2025-02-21 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521423', 'tblTempUsageDetail_20' ) start [2025-02-21 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521423', 'tblTempUsageDetail_20' ) end [2025-02-21 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:32:22] Production.INFO: ==8203== Releasing lock... [2025-02-21 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:33:05 [end_date_ymd] => 2025-02-21 00:33:05 [RateCDR] => 1 ) [2025-02-21 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:33:05' and `end` < '2025-02-21 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:33:16] Production.INFO: count ==254 [2025-02-21 00:33:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:33:05 - End Time 2025-02-21 00:33:05 [2025-02-21 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521428', 'tblTempUsageDetail_20' ) start [2025-02-21 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521428', 'tblTempUsageDetail_20' ) end [2025-02-21 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521428', 'tblTempVendorCDR_20' ) start [2025-02-21 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521428', 'tblTempVendorCDR_20' ) end [2025-02-21 00:33:17] Production.INFO: ProcessCDR(1,14521428,1,1,2) [2025-02-21 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521428', 'tblTempUsageDetail_20' ) start [2025-02-21 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521428', 'tblTempUsageDetail_20' ) end [2025-02-21 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:33:21] Production.INFO: ==8278== Releasing lock... [2025-02-21 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:33:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:34:05 [end_date_ymd] => 2025-02-21 00:34:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:34:05' and `end` < '2025-02-21 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-21 00:34:17] Production.INFO: count ==254 [2025-02-21 00:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:34:05 - End Time 2025-02-21 00:34:05 [2025-02-21 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521433', 'tblTempUsageDetail_20' ) start [2025-02-21 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521433', 'tblTempUsageDetail_20' ) end [2025-02-21 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521433', 'tblTempVendorCDR_20' ) start [2025-02-21 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521433', 'tblTempVendorCDR_20' ) end [2025-02-21 00:34:17] Production.INFO: ProcessCDR(1,14521433,1,1,2) [2025-02-21 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521433', 'tblTempUsageDetail_20' ) start [2025-02-21 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521433', 'tblTempUsageDetail_20' ) end [2025-02-21 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:34:20] Production.INFO: ==8351== Releasing lock... [2025-02-21 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:34:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:35:06 [end_date_ymd] => 2025-02-21 00:35:06 [RateCDR] => 1 ) [2025-02-21 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-20 21:35:06' and `end` < '2025-02-21 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-21 00:35:18] Production.INFO: count ==254 [2025-02-21 00:35:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:35:06 - End Time 2025-02-21 00:35:06 [2025-02-21 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521438', 'tblTempUsageDetail_20' ) start [2025-02-21 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521438', 'tblTempUsageDetail_20' ) end [2025-02-21 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521438', 'tblTempVendorCDR_20' ) start [2025-02-21 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521438', 'tblTempVendorCDR_20' ) end [2025-02-21 00:35:18] Production.INFO: ProcessCDR(1,14521438,1,1,2) [2025-02-21 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521438', 'tblTempUsageDetail_20' ) start [2025-02-21 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521438', 'tblTempUsageDetail_20' ) end [2025-02-21 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:35:21] Production.INFO: ==8428== Releasing lock... [2025-02-21 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:35:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:36:05 [end_date_ymd] => 2025-02-21 00:36:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:36:05' and `end` < '2025-02-21 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-21 00:36:17] Production.INFO: count ==255 [2025-02-21 00:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:36:05 - End Time 2025-02-21 00:36:05 [2025-02-21 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521443', 'tblTempUsageDetail_20' ) start [2025-02-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521443', 'tblTempUsageDetail_20' ) end [2025-02-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521443', 'tblTempVendorCDR_20' ) start [2025-02-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521443', 'tblTempVendorCDR_20' ) end [2025-02-21 00:36:17] Production.INFO: ProcessCDR(1,14521443,1,1,2) [2025-02-21 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521443', 'tblTempUsageDetail_20' ) start [2025-02-21 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521443', 'tblTempUsageDetail_20' ) end [2025-02-21 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:36:21] Production.INFO: ==8499== Releasing lock... [2025-02-21 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:37:04 [end_date_ymd] => 2025-02-21 00:37:04 [RateCDR] => 1 ) [2025-02-21 00: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-20 21:37:04' and `end` < '2025-02-21 00: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-21 00:37:16] Production.INFO: count ==249 [2025-02-21 00:37:16] Production.ERROR: pbx CDR StartTime 2025-02-20 21:37:04 - End Time 2025-02-21 00:37:04 [2025-02-21 00:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521448', 'tblTempUsageDetail_20' ) start [2025-02-21 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521448', 'tblTempUsageDetail_20' ) end [2025-02-21 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521448', 'tblTempVendorCDR_20' ) start [2025-02-21 00:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521448', 'tblTempVendorCDR_20' ) end [2025-02-21 00:37:16] Production.INFO: ProcessCDR(1,14521448,1,1,2) [2025-02-21 00:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521448', 'tblTempUsageDetail_20' ) start [2025-02-21 00:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521448', 'tblTempUsageDetail_20' ) end [2025-02-21 00:37:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:37:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:37:19] Production.INFO: ==8608== Releasing lock... [2025-02-21 00:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:37:19] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:38:05 [end_date_ymd] => 2025-02-21 00:38:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:38:05' and `end` < '2025-02-21 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-21 00:38:17] Production.INFO: count ==248 [2025-02-21 00:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:38:05 - End Time 2025-02-21 00:38:05 [2025-02-21 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521453', 'tblTempUsageDetail_20' ) start [2025-02-21 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521453', 'tblTempUsageDetail_20' ) end [2025-02-21 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521453', 'tblTempVendorCDR_20' ) start [2025-02-21 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521453', 'tblTempVendorCDR_20' ) end [2025-02-21 00:38:17] Production.INFO: ProcessCDR(1,14521453,1,1,2) [2025-02-21 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521453', 'tblTempUsageDetail_20' ) start [2025-02-21 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521453', 'tblTempUsageDetail_20' ) end [2025-02-21 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:38:20] Production.INFO: ==8684== Releasing lock... [2025-02-21 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:38:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:39:05 [end_date_ymd] => 2025-02-21 00:39:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:39:05' and `end` < '2025-02-21 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-21 00:39:17] Production.INFO: count ==253 [2025-02-21 00:39:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:39:05 - End Time 2025-02-21 00:39:05 [2025-02-21 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521458', 'tblTempUsageDetail_20' ) start [2025-02-21 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521458', 'tblTempUsageDetail_20' ) end [2025-02-21 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521458', 'tblTempVendorCDR_20' ) start [2025-02-21 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521458', 'tblTempVendorCDR_20' ) end [2025-02-21 00:39:17] Production.INFO: ProcessCDR(1,14521458,1,1,2) [2025-02-21 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521458', 'tblTempUsageDetail_20' ) start [2025-02-21 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521458', 'tblTempUsageDetail_20' ) end [2025-02-21 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:39:22] Production.INFO: ==8754== Releasing lock... [2025-02-21 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:39:22] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:40:07 [end_date_ymd] => 2025-02-21 00:40:07 [RateCDR] => 1 ) [2025-02-21 00:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:40:07' and `end` < '2025-02-21 00:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:40:18] Production.INFO: count ==263 [2025-02-21 00:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:40:07 - End Time 2025-02-21 00:40:07 [2025-02-21 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521464', 'tblTempUsageDetail_20' ) start [2025-02-21 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521464', 'tblTempUsageDetail_20' ) end [2025-02-21 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521464', 'tblTempVendorCDR_20' ) start [2025-02-21 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521464', 'tblTempVendorCDR_20' ) end [2025-02-21 00:40:18] Production.INFO: ProcessCDR(1,14521464,1,1,2) [2025-02-21 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521464', 'tblTempUsageDetail_20' ) start [2025-02-21 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521464', 'tblTempUsageDetail_20' ) end [2025-02-21 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:40:22] Production.INFO: ==8828== Releasing lock... [2025-02-21 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:41:06 [end_date_ymd] => 2025-02-21 00:41:06 [RateCDR] => 1 ) [2025-02-21 00: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-20 21:41:06' and `end` < '2025-02-21 00: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-21 00:41:18] Production.INFO: count ==263 [2025-02-21 00:41:18] Production.ERROR: pbx CDR StartTime 2025-02-20 21:41:06 - End Time 2025-02-21 00:41:06 [2025-02-21 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521469', 'tblTempUsageDetail_20' ) start [2025-02-21 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521469', 'tblTempUsageDetail_20' ) end [2025-02-21 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521469', 'tblTempVendorCDR_20' ) start [2025-02-21 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521469', 'tblTempVendorCDR_20' ) end [2025-02-21 00:41:18] Production.INFO: ProcessCDR(1,14521469,1,1,2) [2025-02-21 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521469', 'tblTempUsageDetail_20' ) start [2025-02-21 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521469', 'tblTempUsageDetail_20' ) end [2025-02-21 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:41:21] Production.INFO: ==8902== Releasing lock... [2025-02-21 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:42:05 [end_date_ymd] => 2025-02-21 00:42:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:42:05' and `end` < '2025-02-21 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-21 00:42:17] Production.INFO: count ==263 [2025-02-21 00:42:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:42:05 - End Time 2025-02-21 00:42:05 [2025-02-21 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521474', 'tblTempUsageDetail_20' ) start [2025-02-21 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521474', 'tblTempUsageDetail_20' ) end [2025-02-21 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521474', 'tblTempVendorCDR_20' ) start [2025-02-21 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521474', 'tblTempVendorCDR_20' ) end [2025-02-21 00:42:17] Production.INFO: ProcessCDR(1,14521474,1,1,2) [2025-02-21 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521474', 'tblTempUsageDetail_20' ) start [2025-02-21 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521474', 'tblTempUsageDetail_20' ) end [2025-02-21 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:42:20] Production.INFO: ==8972== Releasing lock... [2025-02-21 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:42:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:43:06 [end_date_ymd] => 2025-02-21 00:43:06 [RateCDR] => 1 ) [2025-02-21 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:43:06' and `end` < '2025-02-21 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:43:17] Production.INFO: count ==263 [2025-02-21 00:43:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:43:06 - End Time 2025-02-21 00:43:06 [2025-02-21 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521479', 'tblTempUsageDetail_20' ) start [2025-02-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521479', 'tblTempUsageDetail_20' ) end [2025-02-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521479', 'tblTempVendorCDR_20' ) start [2025-02-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521479', 'tblTempVendorCDR_20' ) end [2025-02-21 00:43:17] Production.INFO: ProcessCDR(1,14521479,1,1,2) [2025-02-21 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521479', 'tblTempUsageDetail_20' ) start [2025-02-21 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521479', 'tblTempUsageDetail_20' ) end [2025-02-21 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:43:20] Production.INFO: ==9047== Releasing lock... [2025-02-21 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:43:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:44:05 [end_date_ymd] => 2025-02-21 00:44:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:44:05' and `end` < '2025-02-21 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-21 00:44:17] Production.INFO: count ==262 [2025-02-21 00:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:44:05 - End Time 2025-02-21 00:44:05 [2025-02-21 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521484', 'tblTempUsageDetail_20' ) start [2025-02-21 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521484', 'tblTempUsageDetail_20' ) end [2025-02-21 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521484', 'tblTempVendorCDR_20' ) start [2025-02-21 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521484', 'tblTempVendorCDR_20' ) end [2025-02-21 00:44:17] Production.INFO: ProcessCDR(1,14521484,1,1,2) [2025-02-21 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521484', 'tblTempUsageDetail_20' ) start [2025-02-21 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521484', 'tblTempUsageDetail_20' ) end [2025-02-21 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:44:20] Production.INFO: ==9118== Releasing lock... [2025-02-21 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:44:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:45:05 [end_date_ymd] => 2025-02-21 00:45:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:45:05' and `end` < '2025-02-21 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-21 00:45:17] Production.INFO: count ==258 [2025-02-21 00:45:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:45:05 - End Time 2025-02-21 00:45:05 [2025-02-21 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521489', 'tblTempUsageDetail_20' ) start [2025-02-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521489', 'tblTempUsageDetail_20' ) end [2025-02-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521489', 'tblTempVendorCDR_20' ) start [2025-02-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521489', 'tblTempVendorCDR_20' ) end [2025-02-21 00:45:17] Production.INFO: ProcessCDR(1,14521489,1,1,2) [2025-02-21 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521489', 'tblTempUsageDetail_20' ) start [2025-02-21 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521489', 'tblTempUsageDetail_20' ) end [2025-02-21 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:45:21] Production.INFO: ==9191== Releasing lock... [2025-02-21 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:45:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:46:05 [end_date_ymd] => 2025-02-21 00:46:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:46:05' and `end` < '2025-02-21 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:46:17] Production.INFO: count ==251 [2025-02-21 00:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:46:05 - End Time 2025-02-21 00:46:05 [2025-02-21 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521494', 'tblTempUsageDetail_20' ) start [2025-02-21 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521494', 'tblTempUsageDetail_20' ) end [2025-02-21 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521494', 'tblTempVendorCDR_20' ) start [2025-02-21 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521494', 'tblTempVendorCDR_20' ) end [2025-02-21 00:46:17] Production.INFO: ProcessCDR(1,14521494,1,1,2) [2025-02-21 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521494', 'tblTempUsageDetail_20' ) start [2025-02-21 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521494', 'tblTempUsageDetail_20' ) end [2025-02-21 00:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:46:20] Production.INFO: ==9262== Releasing lock... [2025-02-21 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:46:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:47:05 [end_date_ymd] => 2025-02-21 00:47:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:47:05' and `end` < '2025-02-21 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-21 00:47:17] Production.INFO: count ==249 [2025-02-21 00:47:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:47:05 - End Time 2025-02-21 00:47:05 [2025-02-21 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521499', 'tblTempUsageDetail_20' ) start [2025-02-21 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521499', 'tblTempUsageDetail_20' ) end [2025-02-21 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521499', 'tblTempVendorCDR_20' ) start [2025-02-21 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521499', 'tblTempVendorCDR_20' ) end [2025-02-21 00:47:17] Production.INFO: ProcessCDR(1,14521499,1,1,2) [2025-02-21 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521499', 'tblTempUsageDetail_20' ) start [2025-02-21 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521499', 'tblTempUsageDetail_20' ) end [2025-02-21 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:47:20] Production.INFO: ==9338== Releasing lock... [2025-02-21 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:47:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:48:05 [end_date_ymd] => 2025-02-21 00:48:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:48:05' and `end` < '2025-02-21 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-21 00:48:17] Production.INFO: count ==249 [2025-02-21 00:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:48:05 - End Time 2025-02-21 00:48:05 [2025-02-21 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521504', 'tblTempUsageDetail_20' ) start [2025-02-21 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521504', 'tblTempUsageDetail_20' ) end [2025-02-21 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521504', 'tblTempVendorCDR_20' ) start [2025-02-21 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521504', 'tblTempVendorCDR_20' ) end [2025-02-21 00:48:17] Production.INFO: ProcessCDR(1,14521504,1,1,2) [2025-02-21 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521504', 'tblTempUsageDetail_20' ) start [2025-02-21 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521504', 'tblTempUsageDetail_20' ) end [2025-02-21 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:48:22] Production.INFO: ==9409== Releasing lock... [2025-02-21 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:48:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:49:05 [end_date_ymd] => 2025-02-21 00:49:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:49:05' and `end` < '2025-02-21 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-21 00:49:17] Production.INFO: count ==248 [2025-02-21 00:49:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:49:05 - End Time 2025-02-21 00:49:05 [2025-02-21 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521509', 'tblTempUsageDetail_20' ) start [2025-02-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521509', 'tblTempUsageDetail_20' ) end [2025-02-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521509', 'tblTempVendorCDR_20' ) start [2025-02-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521509', 'tblTempVendorCDR_20' ) end [2025-02-21 00:49:17] Production.INFO: ProcessCDR(1,14521509,1,1,2) [2025-02-21 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521509', 'tblTempUsageDetail_20' ) start [2025-02-21 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521509', 'tblTempUsageDetail_20' ) end [2025-02-21 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:49:20] Production.INFO: ==9479== Releasing lock... [2025-02-21 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:49:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:50:05 [end_date_ymd] => 2025-02-21 00:50:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:50:05' and `end` < '2025-02-21 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-21 00:50:17] Production.INFO: count ==251 [2025-02-21 00:50:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:50:05 - End Time 2025-02-21 00:50:05 [2025-02-21 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521515', 'tblTempUsageDetail_20' ) start [2025-02-21 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521515', 'tblTempUsageDetail_20' ) end [2025-02-21 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521515', 'tblTempVendorCDR_20' ) start [2025-02-21 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521515', 'tblTempVendorCDR_20' ) end [2025-02-21 00:50:17] Production.INFO: ProcessCDR(1,14521515,1,1,2) [2025-02-21 00:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521515', 'tblTempUsageDetail_20' ) start [2025-02-21 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521515', 'tblTempUsageDetail_20' ) end [2025-02-21 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:50:22] Production.INFO: ==9553== Releasing lock... [2025-02-21 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:51:05 [end_date_ymd] => 2025-02-21 00:51:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:51:05' and `end` < '2025-02-21 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-21 00:51:17] Production.INFO: count ==246 [2025-02-21 00:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:51:05 - End Time 2025-02-21 00:51:05 [2025-02-21 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521520', 'tblTempUsageDetail_20' ) start [2025-02-21 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521520', 'tblTempUsageDetail_20' ) end [2025-02-21 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521520', 'tblTempVendorCDR_20' ) start [2025-02-21 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521520', 'tblTempVendorCDR_20' ) end [2025-02-21 00:51:17] Production.INFO: ProcessCDR(1,14521520,1,1,2) [2025-02-21 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521520', 'tblTempUsageDetail_20' ) start [2025-02-21 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521520', 'tblTempUsageDetail_20' ) end [2025-02-21 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:51:20] Production.INFO: ==9631== Releasing lock... [2025-02-21 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:51:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:52:05 [end_date_ymd] => 2025-02-21 00:52:05 [RateCDR] => 1 ) [2025-02-21 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:52:05' and `end` < '2025-02-21 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:52:16] Production.INFO: count ==246 [2025-02-21 00:52:16] Production.ERROR: pbx CDR StartTime 2025-02-20 21:52:05 - End Time 2025-02-21 00:52:05 [2025-02-21 00:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521525', 'tblTempUsageDetail_20' ) start [2025-02-21 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521525', 'tblTempUsageDetail_20' ) end [2025-02-21 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521525', 'tblTempVendorCDR_20' ) start [2025-02-21 00:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521525', 'tblTempVendorCDR_20' ) end [2025-02-21 00:52:16] Production.INFO: ProcessCDR(1,14521525,1,1,2) [2025-02-21 00:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521525', 'tblTempUsageDetail_20' ) start [2025-02-21 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521525', 'tblTempUsageDetail_20' ) end [2025-02-21 00:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:52:20] Production.INFO: ==9746== Releasing lock... [2025-02-21 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:52:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:53:05 [end_date_ymd] => 2025-02-21 00:53:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:53:05' and `end` < '2025-02-21 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-21 00:53:17] Production.INFO: count ==246 [2025-02-21 00:53:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:53:05 - End Time 2025-02-21 00:53:05 [2025-02-21 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521530', 'tblTempUsageDetail_20' ) start [2025-02-21 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521530', 'tblTempUsageDetail_20' ) end [2025-02-21 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521530', 'tblTempVendorCDR_20' ) start [2025-02-21 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521530', 'tblTempVendorCDR_20' ) end [2025-02-21 00:53:17] Production.INFO: ProcessCDR(1,14521530,1,1,2) [2025-02-21 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521530', 'tblTempUsageDetail_20' ) start [2025-02-21 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521530', 'tblTempUsageDetail_20' ) end [2025-02-21 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:53:20] Production.INFO: ==9818== Releasing lock... [2025-02-21 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:53:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:54:05 [end_date_ymd] => 2025-02-21 00:54:05 [RateCDR] => 1 ) [2025-02-21 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:54:05' and `end` < '2025-02-21 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:54:17] Production.INFO: count ==246 [2025-02-21 00:54:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:54:05 - End Time 2025-02-21 00:54:05 [2025-02-21 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521535', 'tblTempUsageDetail_20' ) start [2025-02-21 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521535', 'tblTempUsageDetail_20' ) end [2025-02-21 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521535', 'tblTempVendorCDR_20' ) start [2025-02-21 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521535', 'tblTempVendorCDR_20' ) end [2025-02-21 00:54:17] Production.INFO: ProcessCDR(1,14521535,1,1,2) [2025-02-21 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521535', 'tblTempUsageDetail_20' ) start [2025-02-21 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521535', 'tblTempUsageDetail_20' ) end [2025-02-21 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:54:21] Production.INFO: ==9897== Releasing lock... [2025-02-21 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:55:05 [end_date_ymd] => 2025-02-21 00:55:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:55:05' and `end` < '2025-02-21 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-21 00:55:17] Production.INFO: count ==250 [2025-02-21 00:55:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:55:05 - End Time 2025-02-21 00:55:05 [2025-02-21 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521540', 'tblTempUsageDetail_20' ) start [2025-02-21 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521540', 'tblTempUsageDetail_20' ) end [2025-02-21 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521540', 'tblTempVendorCDR_20' ) start [2025-02-21 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521540', 'tblTempVendorCDR_20' ) end [2025-02-21 00:55:17] Production.INFO: ProcessCDR(1,14521540,1,1,2) [2025-02-21 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521540', 'tblTempUsageDetail_20' ) start [2025-02-21 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521540', 'tblTempUsageDetail_20' ) end [2025-02-21 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:55:23] Production.INFO: ==9970== Releasing lock... [2025-02-21 00:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:55:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:56:06 [end_date_ymd] => 2025-02-21 00:56:06 [RateCDR] => 1 ) [2025-02-21 00: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-20 21:56:06' and `end` < '2025-02-21 00: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-21 00:56:17] Production.INFO: count ==253 [2025-02-21 00:56:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:56:06 - End Time 2025-02-21 00:56:06 [2025-02-21 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521545', 'tblTempUsageDetail_20' ) start [2025-02-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521545', 'tblTempUsageDetail_20' ) end [2025-02-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521545', 'tblTempVendorCDR_20' ) start [2025-02-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521545', 'tblTempVendorCDR_20' ) end [2025-02-21 00:56:17] Production.INFO: ProcessCDR(1,14521545,1,1,2) [2025-02-21 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521545', 'tblTempUsageDetail_20' ) start [2025-02-21 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521545', 'tblTempUsageDetail_20' ) end [2025-02-21 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:56:21] Production.INFO: ==10045== Releasing lock... [2025-02-21 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:57:05 [end_date_ymd] => 2025-02-21 00:57:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:57:05' and `end` < '2025-02-21 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-21 00:57:17] Production.INFO: count ==258 [2025-02-21 00:57:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:57:05 - End Time 2025-02-21 00:57:05 [2025-02-21 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521550', 'tblTempUsageDetail_20' ) start [2025-02-21 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521550', 'tblTempUsageDetail_20' ) end [2025-02-21 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521550', 'tblTempVendorCDR_20' ) start [2025-02-21 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521550', 'tblTempVendorCDR_20' ) end [2025-02-21 00:57:17] Production.INFO: ProcessCDR(1,14521550,1,1,2) [2025-02-21 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521550', 'tblTempUsageDetail_20' ) start [2025-02-21 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521550', 'tblTempUsageDetail_20' ) end [2025-02-21 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:57:20] Production.INFO: ==10118== Releasing lock... [2025-02-21 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:57:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:58:06 [end_date_ymd] => 2025-02-21 00:58:06 [RateCDR] => 1 ) [2025-02-21 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 21:58:06' and `end` < '2025-02-21 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 00:58:17] Production.INFO: count ==257 [2025-02-21 00:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:58:06 - End Time 2025-02-21 00:58:06 [2025-02-21 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521555', 'tblTempUsageDetail_20' ) start [2025-02-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521555', 'tblTempUsageDetail_20' ) end [2025-02-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521555', 'tblTempVendorCDR_20' ) start [2025-02-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521555', 'tblTempVendorCDR_20' ) end [2025-02-21 00:58:17] Production.INFO: ProcessCDR(1,14521555,1,1,2) [2025-02-21 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521555', 'tblTempUsageDetail_20' ) start [2025-02-21 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521555', 'tblTempUsageDetail_20' ) end [2025-02-21 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:58:21] Production.INFO: ==10190== Releasing lock... [2025-02-21 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 21:59:05 [end_date_ymd] => 2025-02-21 00:59:05 [RateCDR] => 1 ) [2025-02-21 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-20 21:59:05' and `end` < '2025-02-21 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-21 00:59:17] Production.INFO: count ==256 [2025-02-21 00:59:17] Production.ERROR: pbx CDR StartTime 2025-02-20 21:59:05 - End Time 2025-02-21 00:59:05 [2025-02-21 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521560', 'tblTempUsageDetail_20' ) start [2025-02-21 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521560', 'tblTempUsageDetail_20' ) end [2025-02-21 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521560', 'tblTempVendorCDR_20' ) start [2025-02-21 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521560', 'tblTempVendorCDR_20' ) end [2025-02-21 00:59:17] Production.INFO: ProcessCDR(1,14521560,1,1,2) [2025-02-21 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521560', 'tblTempUsageDetail_20' ) start [2025-02-21 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521560', 'tblTempUsageDetail_20' ) end [2025-02-21 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 00:59:20] Production.INFO: ==10261== Releasing lock... [2025-02-21 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 00:59:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:00:07 [end_date_ymd] => 2025-02-21 01:00:07 [RateCDR] => 1 ) [2025-02-21 01: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-20 22:00:07' and `end` < '2025-02-21 01: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-21 01:00:18] Production.INFO: count ==254 [2025-02-21 01:00:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:00:07 - End Time 2025-02-21 01:00:07 [2025-02-21 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521565', 'tblTempUsageDetail_20' ) start [2025-02-21 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521565', 'tblTempUsageDetail_20' ) end [2025-02-21 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521565', 'tblTempVendorCDR_20' ) start [2025-02-21 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521565', 'tblTempVendorCDR_20' ) end [2025-02-21 01:00:18] Production.INFO: ProcessCDR(1,14521565,1,1,2) [2025-02-21 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521565', 'tblTempUsageDetail_20' ) start [2025-02-21 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521565', 'tblTempUsageDetail_20' ) end [2025-02-21 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:00:22] Production.INFO: ==10346== Releasing lock... [2025-02-21 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:01:05 [end_date_ymd] => 2025-02-21 01:01:05 [RateCDR] => 1 ) [2025-02-21 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:01:05' and `end` < '2025-02-21 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:01:17] Production.INFO: count ==253 [2025-02-21 01:01:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:01:05 - End Time 2025-02-21 01:01:05 [2025-02-21 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521571', 'tblTempUsageDetail_20' ) start [2025-02-21 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521571', 'tblTempUsageDetail_20' ) end [2025-02-21 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521571', 'tblTempVendorCDR_20' ) start [2025-02-21 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521571', 'tblTempVendorCDR_20' ) end [2025-02-21 01:01:17] Production.INFO: ProcessCDR(1,14521571,1,1,2) [2025-02-21 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521571', 'tblTempUsageDetail_20' ) start [2025-02-21 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521571', 'tblTempUsageDetail_20' ) end [2025-02-21 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:01:20] Production.INFO: ==10433== Releasing lock... [2025-02-21 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:01:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:02:05 [end_date_ymd] => 2025-02-21 01:02:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:02:05' and `end` < '2025-02-21 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-21 01:02:17] Production.INFO: count ==245 [2025-02-21 01:02:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:02:05 - End Time 2025-02-21 01:02:05 [2025-02-21 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521576', 'tblTempUsageDetail_20' ) start [2025-02-21 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521576', 'tblTempUsageDetail_20' ) end [2025-02-21 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521576', 'tblTempVendorCDR_20' ) start [2025-02-21 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521576', 'tblTempVendorCDR_20' ) end [2025-02-21 01:02:17] Production.INFO: ProcessCDR(1,14521576,1,1,2) [2025-02-21 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521576', 'tblTempUsageDetail_20' ) start [2025-02-21 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521576', 'tblTempUsageDetail_20' ) end [2025-02-21 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:02:21] Production.INFO: ==10506== Releasing lock... [2025-02-21 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:03:05 [end_date_ymd] => 2025-02-21 01:03:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:03:05' and `end` < '2025-02-21 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-21 01:03:17] Production.INFO: count ==242 [2025-02-21 01:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:03:05 - End Time 2025-02-21 01:03:05 [2025-02-21 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521581', 'tblTempUsageDetail_20' ) start [2025-02-21 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521581', 'tblTempUsageDetail_20' ) end [2025-02-21 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521581', 'tblTempVendorCDR_20' ) start [2025-02-21 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521581', 'tblTempVendorCDR_20' ) end [2025-02-21 01:03:17] Production.INFO: ProcessCDR(1,14521581,1,1,2) [2025-02-21 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521581', 'tblTempUsageDetail_20' ) start [2025-02-21 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521581', 'tblTempUsageDetail_20' ) end [2025-02-21 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:03:20] Production.INFO: ==10577== Releasing lock... [2025-02-21 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:03:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:04:05 [end_date_ymd] => 2025-02-21 01:04:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:04:05' and `end` < '2025-02-21 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-21 01:04:17] Production.INFO: count ==238 [2025-02-21 01:04:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:04:05 - End Time 2025-02-21 01:04:05 [2025-02-21 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521586', 'tblTempUsageDetail_20' ) start [2025-02-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521586', 'tblTempUsageDetail_20' ) end [2025-02-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521586', 'tblTempVendorCDR_20' ) start [2025-02-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521586', 'tblTempVendorCDR_20' ) end [2025-02-21 01:04:17] Production.INFO: ProcessCDR(1,14521586,1,1,2) [2025-02-21 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521586', 'tblTempUsageDetail_20' ) start [2025-02-21 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521586', 'tblTempUsageDetail_20' ) end [2025-02-21 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:04:22] Production.INFO: ==10651== Releasing lock... [2025-02-21 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:05:05 [end_date_ymd] => 2025-02-21 01:05:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:05:05' and `end` < '2025-02-21 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-21 01:05:17] Production.INFO: count ==236 [2025-02-21 01:05:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:05:05 - End Time 2025-02-21 01:05:05 [2025-02-21 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521591', 'tblTempUsageDetail_20' ) start [2025-02-21 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521591', 'tblTempUsageDetail_20' ) end [2025-02-21 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521591', 'tblTempVendorCDR_20' ) start [2025-02-21 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521591', 'tblTempVendorCDR_20' ) end [2025-02-21 01:05:17] Production.INFO: ProcessCDR(1,14521591,1,1,2) [2025-02-21 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521591', 'tblTempUsageDetail_20' ) start [2025-02-21 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521591', 'tblTempUsageDetail_20' ) end [2025-02-21 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:05:20] Production.INFO: ==10724== Releasing lock... [2025-02-21 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:05:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:06:05 [end_date_ymd] => 2025-02-21 01:06:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:06:05' and `end` < '2025-02-21 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-21 01:06:17] Production.INFO: count ==239 [2025-02-21 01:06:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:06:05 - End Time 2025-02-21 01:06:05 [2025-02-21 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521596', 'tblTempUsageDetail_20' ) start [2025-02-21 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521596', 'tblTempUsageDetail_20' ) end [2025-02-21 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521596', 'tblTempVendorCDR_20' ) start [2025-02-21 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521596', 'tblTempVendorCDR_20' ) end [2025-02-21 01:06:17] Production.INFO: ProcessCDR(1,14521596,1,1,2) [2025-02-21 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521596', 'tblTempUsageDetail_20' ) start [2025-02-21 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521596', 'tblTempUsageDetail_20' ) end [2025-02-21 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:06:20] Production.INFO: ==10798== Releasing lock... [2025-02-21 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:06:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:07:05 [end_date_ymd] => 2025-02-21 01:07:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:07:05' and `end` < '2025-02-21 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-21 01:07:17] Production.INFO: count ==235 [2025-02-21 01:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:07:05 - End Time 2025-02-21 01:07:05 [2025-02-21 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521601', 'tblTempUsageDetail_20' ) start [2025-02-21 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521601', 'tblTempUsageDetail_20' ) end [2025-02-21 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521601', 'tblTempVendorCDR_20' ) start [2025-02-21 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521601', 'tblTempVendorCDR_20' ) end [2025-02-21 01:07:17] Production.INFO: ProcessCDR(1,14521601,1,1,2) [2025-02-21 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521601', 'tblTempUsageDetail_20' ) start [2025-02-21 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521601', 'tblTempUsageDetail_20' ) end [2025-02-21 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:07:20] Production.INFO: ==10870== Releasing lock... [2025-02-21 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:07:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:08:05 [end_date_ymd] => 2025-02-21 01:08:05 [RateCDR] => 1 ) [2025-02-21 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:08:05' and `end` < '2025-02-21 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:08:17] Production.INFO: count ==235 [2025-02-21 01:08:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:08:05 - End Time 2025-02-21 01:08:05 [2025-02-21 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521606', 'tblTempUsageDetail_20' ) start [2025-02-21 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521606', 'tblTempUsageDetail_20' ) end [2025-02-21 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521606', 'tblTempVendorCDR_20' ) start [2025-02-21 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521606', 'tblTempVendorCDR_20' ) end [2025-02-21 01:08:17] Production.INFO: ProcessCDR(1,14521606,1,1,2) [2025-02-21 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521606', 'tblTempUsageDetail_20' ) start [2025-02-21 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521606', 'tblTempUsageDetail_20' ) end [2025-02-21 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:08:20] Production.INFO: ==10984== Releasing lock... [2025-02-21 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:08:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:09:05 [end_date_ymd] => 2025-02-21 01:09:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:09:05' and `end` < '2025-02-21 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-21 01:09:17] Production.INFO: count ==235 [2025-02-21 01:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:09:05 - End Time 2025-02-21 01:09:05 [2025-02-21 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521611', 'tblTempUsageDetail_20' ) start [2025-02-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521611', 'tblTempUsageDetail_20' ) end [2025-02-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521611', 'tblTempVendorCDR_20' ) start [2025-02-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521611', 'tblTempVendorCDR_20' ) end [2025-02-21 01:09:17] Production.INFO: ProcessCDR(1,14521611,1,1,2) [2025-02-21 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521611', 'tblTempUsageDetail_20' ) start [2025-02-21 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521611', 'tblTempUsageDetail_20' ) end [2025-02-21 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:09:20] Production.INFO: ==11056== Releasing lock... [2025-02-21 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:09:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:10:06 [end_date_ymd] => 2025-02-21 01:10:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:10:06' and `end` < '2025-02-21 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-21 01:10:18] Production.INFO: count ==247 [2025-02-21 01:10:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:10:06 - End Time 2025-02-21 01:10:06 [2025-02-21 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521616', 'tblTempUsageDetail_20' ) start [2025-02-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521616', 'tblTempUsageDetail_20' ) end [2025-02-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521616', 'tblTempVendorCDR_20' ) start [2025-02-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521616', 'tblTempVendorCDR_20' ) end [2025-02-21 01:10:18] Production.INFO: ProcessCDR(1,14521616,1,1,2) [2025-02-21 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521616', 'tblTempUsageDetail_20' ) start [2025-02-21 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521616', 'tblTempUsageDetail_20' ) end [2025-02-21 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:10:21] Production.INFO: ==11133== Releasing lock... [2025-02-21 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:10:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:11:05 [end_date_ymd] => 2025-02-21 01:11:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:11:05' and `end` < '2025-02-21 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-21 01:11:16] Production.INFO: count ==249 [2025-02-21 01:11:16] Production.ERROR: pbx CDR StartTime 2025-02-20 22:11:05 - End Time 2025-02-21 01:11:05 [2025-02-21 01:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521622', 'tblTempUsageDetail_20' ) start [2025-02-21 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521622', 'tblTempUsageDetail_20' ) end [2025-02-21 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521622', 'tblTempVendorCDR_20' ) start [2025-02-21 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521622', 'tblTempVendorCDR_20' ) end [2025-02-21 01:11:17] Production.INFO: ProcessCDR(1,14521622,1,1,2) [2025-02-21 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521622', 'tblTempUsageDetail_20' ) start [2025-02-21 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521622', 'tblTempUsageDetail_20' ) end [2025-02-21 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:11:20] Production.INFO: ==11209== Releasing lock... [2025-02-21 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:11:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:12:05 [end_date_ymd] => 2025-02-21 01:12:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:12:05' and `end` < '2025-02-21 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-21 01:12:17] Production.INFO: count ==249 [2025-02-21 01:12:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:12:05 - End Time 2025-02-21 01:12:05 [2025-02-21 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521627', 'tblTempUsageDetail_20' ) start [2025-02-21 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521627', 'tblTempUsageDetail_20' ) end [2025-02-21 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521627', 'tblTempVendorCDR_20' ) start [2025-02-21 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521627', 'tblTempVendorCDR_20' ) end [2025-02-21 01:12:17] Production.INFO: ProcessCDR(1,14521627,1,1,2) [2025-02-21 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521627', 'tblTempUsageDetail_20' ) start [2025-02-21 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521627', 'tblTempUsageDetail_20' ) end [2025-02-21 01:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:12:20] Production.INFO: ==11281== Releasing lock... [2025-02-21 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:12:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:13:05 [end_date_ymd] => 2025-02-21 01:13:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:13:05' and `end` < '2025-02-21 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-21 01:13:17] Production.INFO: count ==249 [2025-02-21 01:13:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:13:05 - End Time 2025-02-21 01:13:05 [2025-02-21 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521632', 'tblTempUsageDetail_20' ) start [2025-02-21 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521632', 'tblTempUsageDetail_20' ) end [2025-02-21 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521632', 'tblTempVendorCDR_20' ) start [2025-02-21 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521632', 'tblTempVendorCDR_20' ) end [2025-02-21 01:13:17] Production.INFO: ProcessCDR(1,14521632,1,1,2) [2025-02-21 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521632', 'tblTempUsageDetail_20' ) start [2025-02-21 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521632', 'tblTempUsageDetail_20' ) end [2025-02-21 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:13:20] Production.INFO: ==11363== Releasing lock... [2025-02-21 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:13:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:14:05 [end_date_ymd] => 2025-02-21 01:14:05 [RateCDR] => 1 ) [2025-02-21 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:14:05' and `end` < '2025-02-21 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:14:17] Production.INFO: count ==249 [2025-02-21 01:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:14:05 - End Time 2025-02-21 01:14:05 [2025-02-21 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521637', 'tblTempUsageDetail_20' ) start [2025-02-21 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521637', 'tblTempUsageDetail_20' ) end [2025-02-21 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521637', 'tblTempVendorCDR_20' ) start [2025-02-21 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521637', 'tblTempVendorCDR_20' ) end [2025-02-21 01:14:17] Production.INFO: ProcessCDR(1,14521637,1,1,2) [2025-02-21 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521637', 'tblTempUsageDetail_20' ) start [2025-02-21 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521637', 'tblTempUsageDetail_20' ) end [2025-02-21 01:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:14:20] Production.INFO: ==11437== Releasing lock... [2025-02-21 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:14:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:15:05 [end_date_ymd] => 2025-02-21 01:15:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:15:05' and `end` < '2025-02-21 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-21 01:15:17] Production.INFO: count ==249 [2025-02-21 01:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:15:05 - End Time 2025-02-21 01:15:05 [2025-02-21 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521642', 'tblTempUsageDetail_20' ) start [2025-02-21 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521642', 'tblTempUsageDetail_20' ) end [2025-02-21 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521642', 'tblTempVendorCDR_20' ) start [2025-02-21 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521642', 'tblTempVendorCDR_20' ) end [2025-02-21 01:15:17] Production.INFO: ProcessCDR(1,14521642,1,1,2) [2025-02-21 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521642', 'tblTempUsageDetail_20' ) start [2025-02-21 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521642', 'tblTempUsageDetail_20' ) end [2025-02-21 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:15:20] Production.INFO: ==11512== Releasing lock... [2025-02-21 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:15:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:16:05 [end_date_ymd] => 2025-02-21 01:16:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:16:05' and `end` < '2025-02-21 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-21 01:16:17] Production.INFO: count ==249 [2025-02-21 01:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:16:05 - End Time 2025-02-21 01:16:05 [2025-02-21 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521647', 'tblTempUsageDetail_20' ) start [2025-02-21 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521647', 'tblTempUsageDetail_20' ) end [2025-02-21 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521647', 'tblTempVendorCDR_20' ) start [2025-02-21 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521647', 'tblTempVendorCDR_20' ) end [2025-02-21 01:16:17] Production.INFO: ProcessCDR(1,14521647,1,1,2) [2025-02-21 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521647', 'tblTempUsageDetail_20' ) start [2025-02-21 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521647', 'tblTempUsageDetail_20' ) end [2025-02-21 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:16:20] Production.INFO: ==11587== Releasing lock... [2025-02-21 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:16:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:17:05 [end_date_ymd] => 2025-02-21 01:17:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:17:05' and `end` < '2025-02-21 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-21 01:17:16] Production.INFO: count ==249 [2025-02-21 01:17:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:17:05 - End Time 2025-02-21 01:17:05 [2025-02-21 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521652', 'tblTempUsageDetail_20' ) start [2025-02-21 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521652', 'tblTempUsageDetail_20' ) end [2025-02-21 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521652', 'tblTempVendorCDR_20' ) start [2025-02-21 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521652', 'tblTempVendorCDR_20' ) end [2025-02-21 01:17:17] Production.INFO: ProcessCDR(1,14521652,1,1,2) [2025-02-21 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521652', 'tblTempUsageDetail_20' ) start [2025-02-21 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521652', 'tblTempUsageDetail_20' ) end [2025-02-21 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:17:20] Production.INFO: ==11659== Releasing lock... [2025-02-21 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:17:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:18:05 [end_date_ymd] => 2025-02-21 01:18:05 [RateCDR] => 1 ) [2025-02-21 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:18:05' and `end` < '2025-02-21 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:18:17] Production.INFO: count ==248 [2025-02-21 01:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:18:05 - End Time 2025-02-21 01:18:05 [2025-02-21 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521657', 'tblTempUsageDetail_20' ) start [2025-02-21 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521657', 'tblTempUsageDetail_20' ) end [2025-02-21 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521657', 'tblTempVendorCDR_20' ) start [2025-02-21 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521657', 'tblTempVendorCDR_20' ) end [2025-02-21 01:18:17] Production.INFO: ProcessCDR(1,14521657,1,1,2) [2025-02-21 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521657', 'tblTempUsageDetail_20' ) start [2025-02-21 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521657', 'tblTempUsageDetail_20' ) end [2025-02-21 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:18:20] Production.INFO: ==11732== Releasing lock... [2025-02-21 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:18:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:19:04 [end_date_ymd] => 2025-02-21 01:19:04 [RateCDR] => 1 ) [2025-02-21 01: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-20 22:19:04' and `end` < '2025-02-21 01: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-21 01:19:16] Production.INFO: count ==248 [2025-02-21 01:19:16] Production.ERROR: pbx CDR StartTime 2025-02-20 22:19:04 - End Time 2025-02-21 01:19:04 [2025-02-21 01:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521662', 'tblTempUsageDetail_20' ) start [2025-02-21 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521662', 'tblTempUsageDetail_20' ) end [2025-02-21 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521662', 'tblTempVendorCDR_20' ) start [2025-02-21 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521662', 'tblTempVendorCDR_20' ) end [2025-02-21 01:19:16] Production.INFO: ProcessCDR(1,14521662,1,1,2) [2025-02-21 01:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521662', 'tblTempUsageDetail_20' ) start [2025-02-21 01:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521662', 'tblTempUsageDetail_20' ) end [2025-02-21 01:19:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:19:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:19:19] Production.INFO: ==11802== Releasing lock... [2025-02-21 01:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:19:19] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:20:06 [end_date_ymd] => 2025-02-21 01:20:06 [RateCDR] => 1 ) [2025-02-21 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:20:06' and `end` < '2025-02-21 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:20:18] Production.INFO: count ==249 [2025-02-21 01:20:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:20:06 - End Time 2025-02-21 01:20:06 [2025-02-21 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521668', 'tblTempUsageDetail_20' ) start [2025-02-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521668', 'tblTempUsageDetail_20' ) end [2025-02-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521668', 'tblTempVendorCDR_20' ) start [2025-02-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521668', 'tblTempVendorCDR_20' ) end [2025-02-21 01:20:18] Production.INFO: ProcessCDR(1,14521668,1,1,2) [2025-02-21 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521668', 'tblTempUsageDetail_20' ) start [2025-02-21 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521668', 'tblTempUsageDetail_20' ) end [2025-02-21 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:20:22] Production.INFO: ==11878== Releasing lock... [2025-02-21 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:20:22] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:21:05 [end_date_ymd] => 2025-02-21 01:21:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:21:05' and `end` < '2025-02-21 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-21 01:21:17] Production.INFO: count ==249 [2025-02-21 01:21:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:21:05 - End Time 2025-02-21 01:21:05 [2025-02-21 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521673', 'tblTempUsageDetail_20' ) start [2025-02-21 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521673', 'tblTempUsageDetail_20' ) end [2025-02-21 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521673', 'tblTempVendorCDR_20' ) start [2025-02-21 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521673', 'tblTempVendorCDR_20' ) end [2025-02-21 01:21:17] Production.INFO: ProcessCDR(1,14521673,1,1,2) [2025-02-21 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521673', 'tblTempUsageDetail_20' ) start [2025-02-21 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521673', 'tblTempUsageDetail_20' ) end [2025-02-21 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:21:20] Production.INFO: ==11954== Releasing lock... [2025-02-21 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:21:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:22:05 [end_date_ymd] => 2025-02-21 01:22:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:22:05' and `end` < '2025-02-21 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-21 01:22:17] Production.INFO: count ==243 [2025-02-21 01:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:22:05 - End Time 2025-02-21 01:22:05 [2025-02-21 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521678', 'tblTempUsageDetail_20' ) start [2025-02-21 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521678', 'tblTempUsageDetail_20' ) end [2025-02-21 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521678', 'tblTempVendorCDR_20' ) start [2025-02-21 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521678', 'tblTempVendorCDR_20' ) end [2025-02-21 01:22:17] Production.INFO: ProcessCDR(1,14521678,1,1,2) [2025-02-21 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521678', 'tblTempUsageDetail_20' ) start [2025-02-21 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521678', 'tblTempUsageDetail_20' ) end [2025-02-21 01:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:22:20] Production.INFO: ==12026== Releasing lock... [2025-02-21 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:22:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:23:04 [end_date_ymd] => 2025-02-21 01:23:04 [RateCDR] => 1 ) [2025-02-21 01:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:23:04' and `end` < '2025-02-21 01:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:23:16] Production.INFO: count ==242 [2025-02-21 01:23:16] Production.ERROR: pbx CDR StartTime 2025-02-20 22:23:04 - End Time 2025-02-21 01:23:04 [2025-02-21 01:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521683', 'tblTempUsageDetail_20' ) start [2025-02-21 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521683', 'tblTempUsageDetail_20' ) end [2025-02-21 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521683', 'tblTempVendorCDR_20' ) start [2025-02-21 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521683', 'tblTempVendorCDR_20' ) end [2025-02-21 01:23:16] Production.INFO: ProcessCDR(1,14521683,1,1,2) [2025-02-21 01:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521683', 'tblTempUsageDetail_20' ) start [2025-02-21 01:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521683', 'tblTempUsageDetail_20' ) end [2025-02-21 01:23:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:23:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:23:19] Production.INFO: ==12136== Releasing lock... [2025-02-21 01:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:23:19] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:24:05 [end_date_ymd] => 2025-02-21 01:24:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:24:05' and `end` < '2025-02-21 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-21 01:24:17] Production.INFO: count ==242 [2025-02-21 01:24:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:24:05 - End Time 2025-02-21 01:24:05 [2025-02-21 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521688', 'tblTempUsageDetail_20' ) start [2025-02-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521688', 'tblTempUsageDetail_20' ) end [2025-02-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521688', 'tblTempVendorCDR_20' ) start [2025-02-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521688', 'tblTempVendorCDR_20' ) end [2025-02-21 01:24:17] Production.INFO: ProcessCDR(1,14521688,1,1,2) [2025-02-21 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521688', 'tblTempUsageDetail_20' ) start [2025-02-21 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521688', 'tblTempUsageDetail_20' ) end [2025-02-21 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:24:20] Production.INFO: ==12208== Releasing lock... [2025-02-21 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:24:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:25:06 [end_date_ymd] => 2025-02-21 01:25:06 [RateCDR] => 1 ) [2025-02-21 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:25:06' and `end` < '2025-02-21 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:25:17] Production.INFO: count ==241 [2025-02-21 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:25:06 - End Time 2025-02-21 01:25:06 [2025-02-21 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521693', 'tblTempUsageDetail_20' ) start [2025-02-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521693', 'tblTempUsageDetail_20' ) end [2025-02-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521693', 'tblTempVendorCDR_20' ) start [2025-02-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521693', 'tblTempVendorCDR_20' ) end [2025-02-21 01:25:18] Production.INFO: ProcessCDR(1,14521693,1,1,2) [2025-02-21 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521693', 'tblTempUsageDetail_20' ) start [2025-02-21 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521693', 'tblTempUsageDetail_20' ) end [2025-02-21 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:25:21] Production.INFO: ==12284== Releasing lock... [2025-02-21 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:26:05 [end_date_ymd] => 2025-02-21 01:26:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:26:05' and `end` < '2025-02-21 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-21 01:26:17] Production.INFO: count ==240 [2025-02-21 01:26:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:26:05 - End Time 2025-02-21 01:26:05 [2025-02-21 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521698', 'tblTempUsageDetail_20' ) start [2025-02-21 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521698', 'tblTempUsageDetail_20' ) end [2025-02-21 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521698', 'tblTempVendorCDR_20' ) start [2025-02-21 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521698', 'tblTempVendorCDR_20' ) end [2025-02-21 01:26:17] Production.INFO: ProcessCDR(1,14521698,1,1,2) [2025-02-21 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521698', 'tblTempUsageDetail_20' ) start [2025-02-21 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521698', 'tblTempUsageDetail_20' ) end [2025-02-21 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:26:20] Production.INFO: ==12366== Releasing lock... [2025-02-21 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:26:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:27:06 [end_date_ymd] => 2025-02-21 01:27:06 [RateCDR] => 1 ) [2025-02-21 01: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-20 22:27:06' and `end` < '2025-02-21 01: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-21 01:27:17] Production.INFO: count ==240 [2025-02-21 01:27:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:27:06 - End Time 2025-02-21 01:27:06 [2025-02-21 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521703', 'tblTempUsageDetail_20' ) start [2025-02-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521703', 'tblTempUsageDetail_20' ) end [2025-02-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521703', 'tblTempVendorCDR_20' ) start [2025-02-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521703', 'tblTempVendorCDR_20' ) end [2025-02-21 01:27:17] Production.INFO: ProcessCDR(1,14521703,1,1,2) [2025-02-21 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521703', 'tblTempUsageDetail_20' ) start [2025-02-21 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521703', 'tblTempUsageDetail_20' ) end [2025-02-21 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:27:21] Production.INFO: ==12444== Releasing lock... [2025-02-21 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:28:05 [end_date_ymd] => 2025-02-21 01:28:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:28:05' and `end` < '2025-02-21 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-21 01:28:17] Production.INFO: count ==240 [2025-02-21 01:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:28:05 - End Time 2025-02-21 01:28:05 [2025-02-21 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521708', 'tblTempUsageDetail_20' ) start [2025-02-21 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521708', 'tblTempUsageDetail_20' ) end [2025-02-21 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521708', 'tblTempVendorCDR_20' ) start [2025-02-21 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521708', 'tblTempVendorCDR_20' ) end [2025-02-21 01:28:17] Production.INFO: ProcessCDR(1,14521708,1,1,2) [2025-02-21 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521708', 'tblTempUsageDetail_20' ) start [2025-02-21 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521708', 'tblTempUsageDetail_20' ) end [2025-02-21 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:28:20] Production.INFO: ==12515== Releasing lock... [2025-02-21 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:28:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:29:05 [end_date_ymd] => 2025-02-21 01:29:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:29:05' and `end` < '2025-02-21 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-21 01:29:17] Production.INFO: count ==240 [2025-02-21 01:29:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:29:05 - End Time 2025-02-21 01:29:05 [2025-02-21 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521713', 'tblTempUsageDetail_20' ) start [2025-02-21 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521713', 'tblTempUsageDetail_20' ) end [2025-02-21 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521713', 'tblTempVendorCDR_20' ) start [2025-02-21 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521713', 'tblTempVendorCDR_20' ) end [2025-02-21 01:29:17] Production.INFO: ProcessCDR(1,14521713,1,1,2) [2025-02-21 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521713', 'tblTempUsageDetail_20' ) start [2025-02-21 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521713', 'tblTempUsageDetail_20' ) end [2025-02-21 01:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:29:20] Production.INFO: ==12588== Releasing lock... [2025-02-21 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:29:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:30:06 [end_date_ymd] => 2025-02-21 01:30:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:30:06' and `end` < '2025-02-21 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-21 01:30:18] Production.INFO: count ==252 [2025-02-21 01:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:30:06 - End Time 2025-02-21 01:30:06 [2025-02-21 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521719', 'tblTempUsageDetail_20' ) start [2025-02-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521719', 'tblTempUsageDetail_20' ) end [2025-02-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521719', 'tblTempVendorCDR_20' ) start [2025-02-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521719', 'tblTempVendorCDR_20' ) end [2025-02-21 01:30:18] Production.INFO: ProcessCDR(1,14521719,1,1,2) [2025-02-21 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521719', 'tblTempUsageDetail_20' ) start [2025-02-21 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521719', 'tblTempUsageDetail_20' ) end [2025-02-21 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:30:21] Production.INFO: ==12662== Releasing lock... [2025-02-21 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:31:05 [end_date_ymd] => 2025-02-21 01:31:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:31:05' and `end` < '2025-02-21 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-21 01:31:17] Production.INFO: count ==260 [2025-02-21 01:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:31:05 - End Time 2025-02-21 01:31:05 [2025-02-21 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521724', 'tblTempUsageDetail_20' ) start [2025-02-21 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521724', 'tblTempUsageDetail_20' ) end [2025-02-21 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521724', 'tblTempVendorCDR_20' ) start [2025-02-21 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521724', 'tblTempVendorCDR_20' ) end [2025-02-21 01:31:17] Production.INFO: ProcessCDR(1,14521724,1,1,2) [2025-02-21 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521724', 'tblTempUsageDetail_20' ) start [2025-02-21 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521724', 'tblTempUsageDetail_20' ) end [2025-02-21 01:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:31:20] Production.INFO: ==12736== Releasing lock... [2025-02-21 01:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:31:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:32:05 [end_date_ymd] => 2025-02-21 01:32:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:32:05' and `end` < '2025-02-21 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-21 01:32:17] Production.INFO: count ==257 [2025-02-21 01:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:32:05 - End Time 2025-02-21 01:32:05 [2025-02-21 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521729', 'tblTempUsageDetail_20' ) start [2025-02-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521729', 'tblTempUsageDetail_20' ) end [2025-02-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521729', 'tblTempVendorCDR_20' ) start [2025-02-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521729', 'tblTempVendorCDR_20' ) end [2025-02-21 01:32:17] Production.INFO: ProcessCDR(1,14521729,1,1,2) [2025-02-21 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521729', 'tblTempUsageDetail_20' ) start [2025-02-21 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521729', 'tblTempUsageDetail_20' ) end [2025-02-21 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:32:21] Production.INFO: ==12805== Releasing lock... [2025-02-21 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:33:05 [end_date_ymd] => 2025-02-21 01:33:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:33:05' and `end` < '2025-02-21 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-21 01:33:17] Production.INFO: count ==254 [2025-02-21 01:33:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:33:05 - End Time 2025-02-21 01:33:05 [2025-02-21 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521734', 'tblTempUsageDetail_20' ) start [2025-02-21 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521734', 'tblTempUsageDetail_20' ) end [2025-02-21 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521734', 'tblTempVendorCDR_20' ) start [2025-02-21 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521734', 'tblTempVendorCDR_20' ) end [2025-02-21 01:33:17] Production.INFO: ProcessCDR(1,14521734,1,1,2) [2025-02-21 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521734', 'tblTempUsageDetail_20' ) start [2025-02-21 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521734', 'tblTempUsageDetail_20' ) end [2025-02-21 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:33:20] Production.INFO: ==12881== Releasing lock... [2025-02-21 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:33:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:34:05 [end_date_ymd] => 2025-02-21 01:34:05 [RateCDR] => 1 ) [2025-02-21 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:34:05' and `end` < '2025-02-21 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:34:17] Production.INFO: count ==252 [2025-02-21 01:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:34:05 - End Time 2025-02-21 01:34:05 [2025-02-21 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521739', 'tblTempUsageDetail_20' ) start [2025-02-21 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521739', 'tblTempUsageDetail_20' ) end [2025-02-21 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521739', 'tblTempVendorCDR_20' ) start [2025-02-21 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521739', 'tblTempVendorCDR_20' ) end [2025-02-21 01:34:17] Production.INFO: ProcessCDR(1,14521739,1,1,2) [2025-02-21 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521739', 'tblTempUsageDetail_20' ) start [2025-02-21 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521739', 'tblTempUsageDetail_20' ) end [2025-02-21 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:34:21] Production.INFO: ==12952== Releasing lock... [2025-02-21 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:35:05 [end_date_ymd] => 2025-02-21 01:35:05 [RateCDR] => 1 ) [2025-02-21 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:35:05' and `end` < '2025-02-21 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:35:17] Production.INFO: count ==252 [2025-02-21 01:35:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:35:05 - End Time 2025-02-21 01:35:05 [2025-02-21 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521744', 'tblTempUsageDetail_20' ) start [2025-02-21 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521744', 'tblTempUsageDetail_20' ) end [2025-02-21 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521744', 'tblTempVendorCDR_20' ) start [2025-02-21 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521744', 'tblTempVendorCDR_20' ) end [2025-02-21 01:35:17] Production.INFO: ProcessCDR(1,14521744,1,1,2) [2025-02-21 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521744', 'tblTempUsageDetail_20' ) start [2025-02-21 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521744', 'tblTempUsageDetail_20' ) end [2025-02-21 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:35:21] Production.INFO: ==13024== Releasing lock... [2025-02-21 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:36:05 [end_date_ymd] => 2025-02-21 01:36:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:36:05' and `end` < '2025-02-21 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-21 01:36:17] Production.INFO: count ==249 [2025-02-21 01:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:36:05 - End Time 2025-02-21 01:36:05 [2025-02-21 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521749', 'tblTempUsageDetail_20' ) start [2025-02-21 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521749', 'tblTempUsageDetail_20' ) end [2025-02-21 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521749', 'tblTempVendorCDR_20' ) start [2025-02-21 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521749', 'tblTempVendorCDR_20' ) end [2025-02-21 01:36:17] Production.INFO: ProcessCDR(1,14521749,1,1,2) [2025-02-21 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521749', 'tblTempUsageDetail_20' ) start [2025-02-21 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521749', 'tblTempUsageDetail_20' ) end [2025-02-21 01:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:36:20] Production.INFO: ==13096== Releasing lock... [2025-02-21 01:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:36:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:37:06 [end_date_ymd] => 2025-02-21 01:37:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:37:06' and `end` < '2025-02-21 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-21 01:37:17] Production.INFO: count ==253 [2025-02-21 01:37:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:37:06 - End Time 2025-02-21 01:37:06 [2025-02-21 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521754', 'tblTempUsageDetail_20' ) start [2025-02-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521754', 'tblTempUsageDetail_20' ) end [2025-02-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521754', 'tblTempVendorCDR_20' ) start [2025-02-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521754', 'tblTempVendorCDR_20' ) end [2025-02-21 01:37:17] Production.INFO: ProcessCDR(1,14521754,1,1,2) [2025-02-21 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521754', 'tblTempUsageDetail_20' ) start [2025-02-21 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521754', 'tblTempUsageDetail_20' ) end [2025-02-21 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:37:21] Production.INFO: ==13168== Releasing lock... [2025-02-21 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:38:05 [end_date_ymd] => 2025-02-21 01:38:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:38:05' and `end` < '2025-02-21 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-21 01:38:16] Production.INFO: count ==252 [2025-02-21 01:38:16] Production.ERROR: pbx CDR StartTime 2025-02-20 22:38:05 - End Time 2025-02-21 01:38:05 [2025-02-21 01:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521759', 'tblTempUsageDetail_20' ) start [2025-02-21 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521759', 'tblTempUsageDetail_20' ) end [2025-02-21 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521759', 'tblTempVendorCDR_20' ) start [2025-02-21 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521759', 'tblTempVendorCDR_20' ) end [2025-02-21 01:38:17] Production.INFO: ProcessCDR(1,14521759,1,1,2) [2025-02-21 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521759', 'tblTempUsageDetail_20' ) start [2025-02-21 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521759', 'tblTempUsageDetail_20' ) end [2025-02-21 01:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:38:20] Production.INFO: ==13279== Releasing lock... [2025-02-21 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:38:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:39:06 [end_date_ymd] => 2025-02-21 01:39:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:39:06' and `end` < '2025-02-21 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-21 01:39:17] Production.INFO: count ==251 [2025-02-21 01:39:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:39:06 - End Time 2025-02-21 01:39:06 [2025-02-21 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521764', 'tblTempUsageDetail_20' ) start [2025-02-21 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521764', 'tblTempUsageDetail_20' ) end [2025-02-21 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521764', 'tblTempVendorCDR_20' ) start [2025-02-21 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521764', 'tblTempVendorCDR_20' ) end [2025-02-21 01:39:17] Production.INFO: ProcessCDR(1,14521764,1,1,2) [2025-02-21 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521764', 'tblTempUsageDetail_20' ) start [2025-02-21 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521764', 'tblTempUsageDetail_20' ) end [2025-02-21 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:39:21] Production.INFO: ==13351== Releasing lock... [2025-02-21 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:40:06 [end_date_ymd] => 2025-02-21 01:40:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:40:06' and `end` < '2025-02-21 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-21 01:40:18] Production.INFO: count ==255 [2025-02-21 01:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:40:06 - End Time 2025-02-21 01:40:06 [2025-02-21 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521770', 'tblTempUsageDetail_20' ) start [2025-02-21 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521770', 'tblTempUsageDetail_20' ) end [2025-02-21 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521770', 'tblTempVendorCDR_20' ) start [2025-02-21 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521770', 'tblTempVendorCDR_20' ) end [2025-02-21 01:40:18] Production.INFO: ProcessCDR(1,14521770,1,1,2) [2025-02-21 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521770', 'tblTempUsageDetail_20' ) start [2025-02-21 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521770', 'tblTempUsageDetail_20' ) end [2025-02-21 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:40:22] Production.INFO: ==13422== Releasing lock... [2025-02-21 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:41:05 [end_date_ymd] => 2025-02-21 01:41:05 [RateCDR] => 1 ) [2025-02-21 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:41:05' and `end` < '2025-02-21 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:41:17] Production.INFO: count ==255 [2025-02-21 01:41:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:41:05 - End Time 2025-02-21 01:41:05 [2025-02-21 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521775', 'tblTempUsageDetail_20' ) start [2025-02-21 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521775', 'tblTempUsageDetail_20' ) end [2025-02-21 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521775', 'tblTempVendorCDR_20' ) start [2025-02-21 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521775', 'tblTempVendorCDR_20' ) end [2025-02-21 01:41:17] Production.INFO: ProcessCDR(1,14521775,1,1,2) [2025-02-21 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521775', 'tblTempUsageDetail_20' ) start [2025-02-21 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521775', 'tblTempUsageDetail_20' ) end [2025-02-21 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:41:21] Production.INFO: ==13499== Releasing lock... [2025-02-21 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:42:05 [end_date_ymd] => 2025-02-21 01:42:05 [RateCDR] => 1 ) [2025-02-21 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:42:05' and `end` < '2025-02-21 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:42:17] Production.INFO: count ==255 [2025-02-21 01:42:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:42:05 - End Time 2025-02-21 01:42:05 [2025-02-21 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521780', 'tblTempUsageDetail_20' ) start [2025-02-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521780', 'tblTempUsageDetail_20' ) end [2025-02-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521780', 'tblTempVendorCDR_20' ) start [2025-02-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521780', 'tblTempVendorCDR_20' ) end [2025-02-21 01:42:17] Production.INFO: ProcessCDR(1,14521780,1,1,2) [2025-02-21 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521780', 'tblTempUsageDetail_20' ) start [2025-02-21 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521780', 'tblTempUsageDetail_20' ) end [2025-02-21 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:42:21] Production.INFO: ==13571== Releasing lock... [2025-02-21 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:43:05 [end_date_ymd] => 2025-02-21 01:43:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:43:05' and `end` < '2025-02-21 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-21 01:43:17] Production.INFO: count ==253 [2025-02-21 01:43:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:43:05 - End Time 2025-02-21 01:43:05 [2025-02-21 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521785', 'tblTempUsageDetail_20' ) start [2025-02-21 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521785', 'tblTempUsageDetail_20' ) end [2025-02-21 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521785', 'tblTempVendorCDR_20' ) start [2025-02-21 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521785', 'tblTempVendorCDR_20' ) end [2025-02-21 01:43:17] Production.INFO: ProcessCDR(1,14521785,1,1,2) [2025-02-21 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521785', 'tblTempUsageDetail_20' ) start [2025-02-21 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521785', 'tblTempUsageDetail_20' ) end [2025-02-21 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:43:21] Production.INFO: ==13645== Releasing lock... [2025-02-21 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:44:05 [end_date_ymd] => 2025-02-21 01:44:05 [RateCDR] => 1 ) [2025-02-21 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:44:05' and `end` < '2025-02-21 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:44:17] Production.INFO: count ==252 [2025-02-21 01:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:44:05 - End Time 2025-02-21 01:44:05 [2025-02-21 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521790', 'tblTempUsageDetail_20' ) start [2025-02-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521790', 'tblTempUsageDetail_20' ) end [2025-02-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521790', 'tblTempVendorCDR_20' ) start [2025-02-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521790', 'tblTempVendorCDR_20' ) end [2025-02-21 01:44:17] Production.INFO: ProcessCDR(1,14521790,1,1,2) [2025-02-21 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521790', 'tblTempUsageDetail_20' ) start [2025-02-21 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521790', 'tblTempUsageDetail_20' ) end [2025-02-21 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:44:21] Production.INFO: ==13715== Releasing lock... [2025-02-21 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:44:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:45:06 [end_date_ymd] => 2025-02-21 01:45:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:45:06' and `end` < '2025-02-21 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-21 01:45:17] Production.INFO: count ==252 [2025-02-21 01:45:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:45:06 - End Time 2025-02-21 01:45:06 [2025-02-21 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521795', 'tblTempUsageDetail_20' ) start [2025-02-21 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521795', 'tblTempUsageDetail_20' ) end [2025-02-21 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521795', 'tblTempVendorCDR_20' ) start [2025-02-21 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521795', 'tblTempVendorCDR_20' ) end [2025-02-21 01:45:17] Production.INFO: ProcessCDR(1,14521795,1,1,2) [2025-02-21 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521795', 'tblTempUsageDetail_20' ) start [2025-02-21 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521795', 'tblTempUsageDetail_20' ) end [2025-02-21 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:45:21] Production.INFO: ==13786== Releasing lock... [2025-02-21 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:45:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:46:05 [end_date_ymd] => 2025-02-21 01:46:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:46:05' and `end` < '2025-02-21 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-21 01:46:17] Production.INFO: count ==252 [2025-02-21 01:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:46:05 - End Time 2025-02-21 01:46:05 [2025-02-21 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521800', 'tblTempUsageDetail_20' ) start [2025-02-21 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521800', 'tblTempUsageDetail_20' ) end [2025-02-21 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521800', 'tblTempVendorCDR_20' ) start [2025-02-21 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521800', 'tblTempVendorCDR_20' ) end [2025-02-21 01:46:17] Production.INFO: ProcessCDR(1,14521800,1,1,2) [2025-02-21 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521800', 'tblTempUsageDetail_20' ) start [2025-02-21 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521800', 'tblTempUsageDetail_20' ) end [2025-02-21 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:46:21] Production.INFO: ==13856== Releasing lock... [2025-02-21 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:46:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:47:06 [end_date_ymd] => 2025-02-21 01:47:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:47:06' and `end` < '2025-02-21 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-21 01:47:18] Production.INFO: count ==252 [2025-02-21 01:47:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:47:06 - End Time 2025-02-21 01:47:06 [2025-02-21 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521805', 'tblTempUsageDetail_20' ) start [2025-02-21 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521805', 'tblTempUsageDetail_20' ) end [2025-02-21 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521805', 'tblTempVendorCDR_20' ) start [2025-02-21 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521805', 'tblTempVendorCDR_20' ) end [2025-02-21 01:47:18] Production.INFO: ProcessCDR(1,14521805,1,1,2) [2025-02-21 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521805', 'tblTempUsageDetail_20' ) start [2025-02-21 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521805', 'tblTempUsageDetail_20' ) end [2025-02-21 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:47:21] Production.INFO: ==13927== Releasing lock... [2025-02-21 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:47:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:48:05 [end_date_ymd] => 2025-02-21 01:48:05 [RateCDR] => 1 ) [2025-02-21 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-20 22:48:05' and `end` < '2025-02-21 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-21 01:48:17] Production.INFO: count ==252 [2025-02-21 01:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:48:05 - End Time 2025-02-21 01:48:05 [2025-02-21 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521810', 'tblTempUsageDetail_20' ) start [2025-02-21 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521810', 'tblTempUsageDetail_20' ) end [2025-02-21 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521810', 'tblTempVendorCDR_20' ) start [2025-02-21 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521810', 'tblTempVendorCDR_20' ) end [2025-02-21 01:48:17] Production.INFO: ProcessCDR(1,14521810,1,1,2) [2025-02-21 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521810', 'tblTempUsageDetail_20' ) start [2025-02-21 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521810', 'tblTempUsageDetail_20' ) end [2025-02-21 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:48:21] Production.INFO: ==13999== Releasing lock... [2025-02-21 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:48:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:49:06 [end_date_ymd] => 2025-02-21 01:49:06 [RateCDR] => 1 ) [2025-02-21 01: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-20 22:49:06' and `end` < '2025-02-21 01: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-21 01:49:17] Production.INFO: count ==256 [2025-02-21 01:49:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:49:06 - End Time 2025-02-21 01:49:06 [2025-02-21 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521815', 'tblTempUsageDetail_20' ) start [2025-02-21 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521815', 'tblTempUsageDetail_20' ) end [2025-02-21 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521815', 'tblTempVendorCDR_20' ) start [2025-02-21 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521815', 'tblTempVendorCDR_20' ) end [2025-02-21 01:49:17] Production.INFO: ProcessCDR(1,14521815,1,1,2) [2025-02-21 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521815', 'tblTempUsageDetail_20' ) start [2025-02-21 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521815', 'tblTempUsageDetail_20' ) end [2025-02-21 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:49:21] Production.INFO: ==14070== Releasing lock... [2025-02-21 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:50:06 [end_date_ymd] => 2025-02-21 01:50:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:50:06' and `end` < '2025-02-21 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-21 01:50:17] Production.INFO: count ==256 [2025-02-21 01:50:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:50:06 - End Time 2025-02-21 01:50:06 [2025-02-21 01:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521820', 'tblTempUsageDetail_20' ) start [2025-02-21 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521820', 'tblTempUsageDetail_20' ) end [2025-02-21 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521820', 'tblTempVendorCDR_20' ) start [2025-02-21 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521820', 'tblTempVendorCDR_20' ) end [2025-02-21 01:50:17] Production.INFO: ProcessCDR(1,14521820,1,1,2) [2025-02-21 01:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521820', 'tblTempUsageDetail_20' ) start [2025-02-21 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521820', 'tblTempUsageDetail_20' ) end [2025-02-21 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:50:21] Production.INFO: ==14141== Releasing lock... [2025-02-21 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:51:06 [end_date_ymd] => 2025-02-21 01:51:06 [RateCDR] => 1 ) [2025-02-21 01:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:51:06' and `end` < '2025-02-21 01:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:51:18] Production.INFO: count ==255 [2025-02-21 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:51:06 - End Time 2025-02-21 01:51:06 [2025-02-21 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521826', 'tblTempUsageDetail_20' ) start [2025-02-21 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521826', 'tblTempUsageDetail_20' ) end [2025-02-21 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521826', 'tblTempVendorCDR_20' ) start [2025-02-21 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521826', 'tblTempVendorCDR_20' ) end [2025-02-21 01:51:18] Production.INFO: ProcessCDR(1,14521826,1,1,2) [2025-02-21 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521826', 'tblTempUsageDetail_20' ) start [2025-02-21 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521826', 'tblTempUsageDetail_20' ) end [2025-02-21 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:51:21] Production.INFO: ==14216== Releasing lock... [2025-02-21 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:52:05 [end_date_ymd] => 2025-02-21 01:52:05 [RateCDR] => 1 ) [2025-02-21 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:52:05' and `end` < '2025-02-21 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:52:17] Production.INFO: count ==255 [2025-02-21 01:52:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:52:05 - End Time 2025-02-21 01:52:05 [2025-02-21 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521831', 'tblTempUsageDetail_20' ) start [2025-02-21 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521831', 'tblTempUsageDetail_20' ) end [2025-02-21 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521831', 'tblTempVendorCDR_20' ) start [2025-02-21 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521831', 'tblTempVendorCDR_20' ) end [2025-02-21 01:52:17] Production.INFO: ProcessCDR(1,14521831,1,1,2) [2025-02-21 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521831', 'tblTempUsageDetail_20' ) start [2025-02-21 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521831', 'tblTempUsageDetail_20' ) end [2025-02-21 01:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:52:20] Production.INFO: ==14291== Releasing lock... [2025-02-21 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:52:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:53:06 [end_date_ymd] => 2025-02-21 01:53:06 [RateCDR] => 1 ) [2025-02-21 01: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-20 22:53:06' and `end` < '2025-02-21 01: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-21 01:53:18] Production.INFO: count ==259 [2025-02-21 01:53:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:53:06 - End Time 2025-02-21 01:53:06 [2025-02-21 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521836', 'tblTempUsageDetail_20' ) start [2025-02-21 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521836', 'tblTempUsageDetail_20' ) end [2025-02-21 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521836', 'tblTempVendorCDR_20' ) start [2025-02-21 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521836', 'tblTempVendorCDR_20' ) end [2025-02-21 01:53:18] Production.INFO: ProcessCDR(1,14521836,1,1,2) [2025-02-21 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521836', 'tblTempUsageDetail_20' ) start [2025-02-21 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521836', 'tblTempUsageDetail_20' ) end [2025-02-21 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:53:21] Production.INFO: ==14364== Releasing lock... [2025-02-21 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:53:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:54:06 [end_date_ymd] => 2025-02-21 01:54:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:54:06' and `end` < '2025-02-21 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-21 01:54:17] Production.INFO: count ==261 [2025-02-21 01:54:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:54:06 - End Time 2025-02-21 01:54:06 [2025-02-21 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521841', 'tblTempUsageDetail_20' ) start [2025-02-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521841', 'tblTempUsageDetail_20' ) end [2025-02-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521841', 'tblTempVendorCDR_20' ) start [2025-02-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521841', 'tblTempVendorCDR_20' ) end [2025-02-21 01:54:18] Production.INFO: ProcessCDR(1,14521841,1,1,2) [2025-02-21 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521841', 'tblTempUsageDetail_20' ) start [2025-02-21 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521841', 'tblTempUsageDetail_20' ) end [2025-02-21 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:54:21] Production.INFO: ==14484== Releasing lock... [2025-02-21 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:55:06 [end_date_ymd] => 2025-02-21 01:55:06 [RateCDR] => 1 ) [2025-02-21 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:55:06' and `end` < '2025-02-21 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:55:17] Production.INFO: count ==253 [2025-02-21 01:55:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:55:06 - End Time 2025-02-21 01:55:06 [2025-02-21 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521846', 'tblTempUsageDetail_20' ) start [2025-02-21 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521846', 'tblTempUsageDetail_20' ) end [2025-02-21 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521846', 'tblTempVendorCDR_20' ) start [2025-02-21 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521846', 'tblTempVendorCDR_20' ) end [2025-02-21 01:55:17] Production.INFO: ProcessCDR(1,14521846,1,1,2) [2025-02-21 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521846', 'tblTempUsageDetail_20' ) start [2025-02-21 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521846', 'tblTempUsageDetail_20' ) end [2025-02-21 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:55:21] Production.INFO: ==14559== Releasing lock... [2025-02-21 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:55:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:56:06 [end_date_ymd] => 2025-02-21 01:56:06 [RateCDR] => 1 ) [2025-02-21 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:56:06' and `end` < '2025-02-21 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:56:18] Production.INFO: count ==253 [2025-02-21 01:56:18] Production.ERROR: pbx CDR StartTime 2025-02-20 22:56:06 - End Time 2025-02-21 01:56:06 [2025-02-21 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521851', 'tblTempUsageDetail_20' ) start [2025-02-21 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521851', 'tblTempUsageDetail_20' ) end [2025-02-21 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521851', 'tblTempVendorCDR_20' ) start [2025-02-21 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521851', 'tblTempVendorCDR_20' ) end [2025-02-21 01:56:18] Production.INFO: ProcessCDR(1,14521851,1,1,2) [2025-02-21 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521851', 'tblTempUsageDetail_20' ) start [2025-02-21 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521851', 'tblTempUsageDetail_20' ) end [2025-02-21 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:56:21] Production.INFO: ==14633== Releasing lock... [2025-02-21 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:56:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:57:05 [end_date_ymd] => 2025-02-21 01:57:05 [RateCDR] => 1 ) [2025-02-21 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:57:05' and `end` < '2025-02-21 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:57:17] Production.INFO: count ==253 [2025-02-21 01:57:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:57:05 - End Time 2025-02-21 01:57:05 [2025-02-21 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521856', 'tblTempUsageDetail_20' ) start [2025-02-21 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521856', 'tblTempUsageDetail_20' ) end [2025-02-21 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521856', 'tblTempVendorCDR_20' ) start [2025-02-21 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521856', 'tblTempVendorCDR_20' ) end [2025-02-21 01:57:17] Production.INFO: ProcessCDR(1,14521856,1,1,2) [2025-02-21 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521856', 'tblTempUsageDetail_20' ) start [2025-02-21 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521856', 'tblTempUsageDetail_20' ) end [2025-02-21 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:57:21] Production.INFO: ==14705== Releasing lock... [2025-02-21 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:57:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:58:06 [end_date_ymd] => 2025-02-21 01:58:06 [RateCDR] => 1 ) [2025-02-21 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-20 22:58:06' and `end` < '2025-02-21 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-21 01:58:17] Production.INFO: count ==253 [2025-02-21 01:58:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:58:06 - End Time 2025-02-21 01:58:06 [2025-02-21 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521861', 'tblTempUsageDetail_20' ) start [2025-02-21 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521861', 'tblTempUsageDetail_20' ) end [2025-02-21 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521861', 'tblTempVendorCDR_20' ) start [2025-02-21 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521861', 'tblTempVendorCDR_20' ) end [2025-02-21 01:58:17] Production.INFO: ProcessCDR(1,14521861,1,1,2) [2025-02-21 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521861', 'tblTempUsageDetail_20' ) start [2025-02-21 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521861', 'tblTempUsageDetail_20' ) end [2025-02-21 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:58:21] Production.INFO: ==14781== Releasing lock... [2025-02-21 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:58:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 22:59:05 [end_date_ymd] => 2025-02-21 01:59:05 [RateCDR] => 1 ) [2025-02-21 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 22:59:05' and `end` < '2025-02-21 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 01:59:17] Production.INFO: count ==251 [2025-02-21 01:59:17] Production.ERROR: pbx CDR StartTime 2025-02-20 22:59:05 - End Time 2025-02-21 01:59:05 [2025-02-21 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521866', 'tblTempUsageDetail_20' ) start [2025-02-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521866', 'tblTempUsageDetail_20' ) end [2025-02-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521866', 'tblTempVendorCDR_20' ) start [2025-02-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521866', 'tblTempVendorCDR_20' ) end [2025-02-21 01:59:17] Production.INFO: ProcessCDR(1,14521866,1,1,2) [2025-02-21 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521866', 'tblTempUsageDetail_20' ) start [2025-02-21 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521866', 'tblTempUsageDetail_20' ) end [2025-02-21 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 01:59:20] Production.INFO: ==14851== Releasing lock... [2025-02-21 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 01:59:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:00:07 [end_date_ymd] => 2025-02-21 02:00:07 [RateCDR] => 1 ) [2025-02-21 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-20 23:00:07' and `end` < '2025-02-21 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-21 02:00:19] Production.INFO: count ==254 [2025-02-21 02:00:19] Production.ERROR: pbx CDR StartTime 2025-02-20 23:00:07 - End Time 2025-02-21 02:00:07 [2025-02-21 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521872', 'tblTempUsageDetail_20' ) start [2025-02-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521872', 'tblTempUsageDetail_20' ) end [2025-02-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521872', 'tblTempVendorCDR_20' ) start [2025-02-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521872', 'tblTempVendorCDR_20' ) end [2025-02-21 02:00:19] Production.INFO: ProcessCDR(1,14521872,1,1,2) [2025-02-21 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521872', 'tblTempUsageDetail_20' ) start [2025-02-21 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521872', 'tblTempUsageDetail_20' ) end [2025-02-21 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:00:24] Production.INFO: ==14927== Releasing lock... [2025-02-21 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:00:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:01:05 [end_date_ymd] => 2025-02-21 02:01:05 [RateCDR] => 1 ) [2025-02-21 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:01:05' and `end` < '2025-02-21 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:01:17] Production.INFO: count ==254 [2025-02-21 02:01:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:01:05 - End Time 2025-02-21 02:01:05 [2025-02-21 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521877', 'tblTempUsageDetail_20' ) start [2025-02-21 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521877', 'tblTempUsageDetail_20' ) end [2025-02-21 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521877', 'tblTempVendorCDR_20' ) start [2025-02-21 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521877', 'tblTempVendorCDR_20' ) end [2025-02-21 02:01:17] Production.INFO: ProcessCDR(1,14521877,1,1,2) [2025-02-21 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521877', 'tblTempUsageDetail_20' ) start [2025-02-21 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521877', 'tblTempUsageDetail_20' ) end [2025-02-21 02:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:01:21] Production.INFO: ==15099== Releasing lock... [2025-02-21 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:02:06 [end_date_ymd] => 2025-02-21 02:02:06 [RateCDR] => 1 ) [2025-02-21 02: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-20 23:02:06' and `end` < '2025-02-21 02: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-21 02:02:17] Production.INFO: count ==251 [2025-02-21 02:02:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:02:06 - End Time 2025-02-21 02:02:06 [2025-02-21 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521881', 'tblTempUsageDetail_20' ) start [2025-02-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521881', 'tblTempUsageDetail_20' ) end [2025-02-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521881', 'tblTempVendorCDR_20' ) start [2025-02-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521881', 'tblTempVendorCDR_20' ) end [2025-02-21 02:02:17] Production.INFO: ProcessCDR(1,14521881,1,1,2) [2025-02-21 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521881', 'tblTempUsageDetail_20' ) start [2025-02-21 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521881', 'tblTempUsageDetail_20' ) end [2025-02-21 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:02:21] Production.INFO: ==15168== Releasing lock... [2025-02-21 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:03:05 [end_date_ymd] => 2025-02-21 02:03:05 [RateCDR] => 1 ) [2025-02-21 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:03:05' and `end` < '2025-02-21 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:03:17] Production.INFO: count ==242 [2025-02-21 02:03:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:03:05 - End Time 2025-02-21 02:03:05 [2025-02-21 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521887', 'tblTempUsageDetail_20' ) start [2025-02-21 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521887', 'tblTempUsageDetail_20' ) end [2025-02-21 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521887', 'tblTempVendorCDR_20' ) start [2025-02-21 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521887', 'tblTempVendorCDR_20' ) end [2025-02-21 02:03:17] Production.INFO: ProcessCDR(1,14521887,1,1,2) [2025-02-21 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521887', 'tblTempUsageDetail_20' ) start [2025-02-21 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521887', 'tblTempUsageDetail_20' ) end [2025-02-21 02:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:03:20] Production.INFO: ==15238== Releasing lock... [2025-02-21 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:03:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:04:05 [end_date_ymd] => 2025-02-21 02:04:05 [RateCDR] => 1 ) [2025-02-21 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:04:05' and `end` < '2025-02-21 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-21 02:04:17] Production.INFO: count ==235 [2025-02-21 02:04:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:04:05 - End Time 2025-02-21 02:04:05 [2025-02-21 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521892', 'tblTempUsageDetail_20' ) start [2025-02-21 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521892', 'tblTempUsageDetail_20' ) end [2025-02-21 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521892', 'tblTempVendorCDR_20' ) start [2025-02-21 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521892', 'tblTempVendorCDR_20' ) end [2025-02-21 02:04:17] Production.INFO: ProcessCDR(1,14521892,1,1,2) [2025-02-21 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521892', 'tblTempUsageDetail_20' ) start [2025-02-21 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521892', 'tblTempUsageDetail_20' ) end [2025-02-21 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:04:21] Production.INFO: ==15309== Releasing lock... [2025-02-21 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:05:05 [end_date_ymd] => 2025-02-21 02:05:05 [RateCDR] => 1 ) [2025-02-21 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:05:05' and `end` < '2025-02-21 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:05:17] Production.INFO: count ==234 [2025-02-21 02:05:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:05:05 - End Time 2025-02-21 02:05:05 [2025-02-21 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521897', 'tblTempUsageDetail_20' ) start [2025-02-21 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521897', 'tblTempUsageDetail_20' ) end [2025-02-21 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521897', 'tblTempVendorCDR_20' ) start [2025-02-21 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521897', 'tblTempVendorCDR_20' ) end [2025-02-21 02:05:17] Production.INFO: ProcessCDR(1,14521897,1,1,2) [2025-02-21 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521897', 'tblTempUsageDetail_20' ) start [2025-02-21 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521897', 'tblTempUsageDetail_20' ) end [2025-02-21 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:05:20] Production.INFO: ==15379== Releasing lock... [2025-02-21 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:05:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:06:05 [end_date_ymd] => 2025-02-21 02:06:05 [RateCDR] => 1 ) [2025-02-21 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:06:05' and `end` < '2025-02-21 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:06:17] Production.INFO: count ==233 [2025-02-21 02:06:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:06:05 - End Time 2025-02-21 02:06:05 [2025-02-21 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521902', 'tblTempUsageDetail_20' ) start [2025-02-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521902', 'tblTempUsageDetail_20' ) end [2025-02-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521902', 'tblTempVendorCDR_20' ) start [2025-02-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521902', 'tblTempVendorCDR_20' ) end [2025-02-21 02:06:17] Production.INFO: ProcessCDR(1,14521902,1,1,2) [2025-02-21 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521902', 'tblTempUsageDetail_20' ) start [2025-02-21 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521902', 'tblTempUsageDetail_20' ) end [2025-02-21 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:06:21] Production.INFO: ==15449== Releasing lock... [2025-02-21 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:07:05 [end_date_ymd] => 2025-02-21 02:07:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:07:05' and `end` < '2025-02-21 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-21 02:07:17] Production.INFO: count ==237 [2025-02-21 02:07:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:07:05 - End Time 2025-02-21 02:07:05 [2025-02-21 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521907', 'tblTempUsageDetail_20' ) start [2025-02-21 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521907', 'tblTempUsageDetail_20' ) end [2025-02-21 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521907', 'tblTempVendorCDR_20' ) start [2025-02-21 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521907', 'tblTempVendorCDR_20' ) end [2025-02-21 02:07:17] Production.INFO: ProcessCDR(1,14521907,1,1,2) [2025-02-21 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521907', 'tblTempUsageDetail_20' ) start [2025-02-21 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521907', 'tblTempUsageDetail_20' ) end [2025-02-21 02:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:07:20] Production.INFO: ==15521== Releasing lock... [2025-02-21 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:07:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:08:05 [end_date_ymd] => 2025-02-21 02:08:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:08:05' and `end` < '2025-02-21 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-21 02:08:17] Production.INFO: count ==237 [2025-02-21 02:08:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:08:05 - End Time 2025-02-21 02:08:05 [2025-02-21 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521912', 'tblTempUsageDetail_20' ) start [2025-02-21 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521912', 'tblTempUsageDetail_20' ) end [2025-02-21 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521912', 'tblTempVendorCDR_20' ) start [2025-02-21 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521912', 'tblTempVendorCDR_20' ) end [2025-02-21 02:08:17] Production.INFO: ProcessCDR(1,14521912,1,1,2) [2025-02-21 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521912', 'tblTempUsageDetail_20' ) start [2025-02-21 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521912', 'tblTempUsageDetail_20' ) end [2025-02-21 02:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:08:20] Production.INFO: ==15597== Releasing lock... [2025-02-21 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:08:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:09:05 [end_date_ymd] => 2025-02-21 02:09:05 [RateCDR] => 1 ) [2025-02-21 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:09:05' and `end` < '2025-02-21 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:09:17] Production.INFO: count ==233 [2025-02-21 02:09:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:09:05 - End Time 2025-02-21 02:09:05 [2025-02-21 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521917', 'tblTempUsageDetail_20' ) start [2025-02-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521917', 'tblTempUsageDetail_20' ) end [2025-02-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521917', 'tblTempVendorCDR_20' ) start [2025-02-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521917', 'tblTempVendorCDR_20' ) end [2025-02-21 02:09:17] Production.INFO: ProcessCDR(1,14521917,1,1,2) [2025-02-21 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521917', 'tblTempUsageDetail_20' ) start [2025-02-21 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521917', 'tblTempUsageDetail_20' ) end [2025-02-21 02:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:09:20] Production.INFO: ==15712== Releasing lock... [2025-02-21 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:09:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:10:06 [end_date_ymd] => 2025-02-21 02:10:06 [RateCDR] => 1 ) [2025-02-21 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-20 23:10:06' and `end` < '2025-02-21 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-21 02:10:17] Production.INFO: count ==239 [2025-02-21 02:10:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:10:06 - End Time 2025-02-21 02:10:06 [2025-02-21 02:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521923', 'tblTempUsageDetail_20' ) start [2025-02-21 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521923', 'tblTempUsageDetail_20' ) end [2025-02-21 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521923', 'tblTempVendorCDR_20' ) start [2025-02-21 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521923', 'tblTempVendorCDR_20' ) end [2025-02-21 02:10:17] Production.INFO: ProcessCDR(1,14521923,1,1,2) [2025-02-21 02:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521923', 'tblTempUsageDetail_20' ) start [2025-02-21 02:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521923', 'tblTempUsageDetail_20' ) end [2025-02-21 02:10:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:10:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:10:20] Production.INFO: ==15788== Releasing lock... [2025-02-21 02:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:10:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:11:05 [end_date_ymd] => 2025-02-21 02:11:05 [RateCDR] => 1 ) [2025-02-21 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:11:05' and `end` < '2025-02-21 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:11:17] Production.INFO: count ==238 [2025-02-21 02:11:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:11:05 - End Time 2025-02-21 02:11:05 [2025-02-21 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521928', 'tblTempUsageDetail_20' ) start [2025-02-21 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521928', 'tblTempUsageDetail_20' ) end [2025-02-21 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521928', 'tblTempVendorCDR_20' ) start [2025-02-21 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521928', 'tblTempVendorCDR_20' ) end [2025-02-21 02:11:17] Production.INFO: ProcessCDR(1,14521928,1,1,2) [2025-02-21 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521928', 'tblTempUsageDetail_20' ) start [2025-02-21 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521928', 'tblTempUsageDetail_20' ) end [2025-02-21 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:11:20] Production.INFO: ==15867== Releasing lock... [2025-02-21 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:12:05 [end_date_ymd] => 2025-02-21 02:12:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:12:05' and `end` < '2025-02-21 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-21 02:12:16] Production.INFO: count ==237 [2025-02-21 02:12:16] Production.ERROR: pbx CDR StartTime 2025-02-20 23:12:05 - End Time 2025-02-21 02:12:05 [2025-02-21 02:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521933', 'tblTempUsageDetail_20' ) start [2025-02-21 02:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521933', 'tblTempUsageDetail_20' ) end [2025-02-21 02:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521933', 'tblTempVendorCDR_20' ) start [2025-02-21 02:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521933', 'tblTempVendorCDR_20' ) end [2025-02-21 02:12:16] Production.INFO: ProcessCDR(1,14521933,1,1,2) [2025-02-21 02:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521933', 'tblTempUsageDetail_20' ) start [2025-02-21 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521933', 'tblTempUsageDetail_20' ) end [2025-02-21 02:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:12:20] Production.INFO: ==15937== Releasing lock... [2025-02-21 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:12:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:13:05 [end_date_ymd] => 2025-02-21 02:13:05 [RateCDR] => 1 ) [2025-02-21 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:13:05' and `end` < '2025-02-21 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:13:17] Production.INFO: count ==237 [2025-02-21 02:13:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:13:05 - End Time 2025-02-21 02:13:05 [2025-02-21 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521938', 'tblTempUsageDetail_20' ) start [2025-02-21 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521938', 'tblTempUsageDetail_20' ) end [2025-02-21 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521938', 'tblTempVendorCDR_20' ) start [2025-02-21 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521938', 'tblTempVendorCDR_20' ) end [2025-02-21 02:13:17] Production.INFO: ProcessCDR(1,14521938,1,1,2) [2025-02-21 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521938', 'tblTempUsageDetail_20' ) start [2025-02-21 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521938', 'tblTempUsageDetail_20' ) end [2025-02-21 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:13:20] Production.INFO: ==16007== Releasing lock... [2025-02-21 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:13:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:14:05 [end_date_ymd] => 2025-02-21 02:14:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:14:05' and `end` < '2025-02-21 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-21 02:14:17] Production.INFO: count ==237 [2025-02-21 02:14:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:14:05 - End Time 2025-02-21 02:14:05 [2025-02-21 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521943', 'tblTempUsageDetail_20' ) start [2025-02-21 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521943', 'tblTempUsageDetail_20' ) end [2025-02-21 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521943', 'tblTempVendorCDR_20' ) start [2025-02-21 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521943', 'tblTempVendorCDR_20' ) end [2025-02-21 02:14:17] Production.INFO: ProcessCDR(1,14521943,1,1,2) [2025-02-21 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521943', 'tblTempUsageDetail_20' ) start [2025-02-21 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521943', 'tblTempUsageDetail_20' ) end [2025-02-21 02:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:14:20] Production.INFO: ==16078== Releasing lock... [2025-02-21 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:14:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:15:05 [end_date_ymd] => 2025-02-21 02:15:05 [RateCDR] => 1 ) [2025-02-21 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:15:05' and `end` < '2025-02-21 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:15:17] Production.INFO: count ==238 [2025-02-21 02:15:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:15:05 - End Time 2025-02-21 02:15:05 [2025-02-21 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521948', 'tblTempUsageDetail_20' ) start [2025-02-21 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521948', 'tblTempUsageDetail_20' ) end [2025-02-21 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521948', 'tblTempVendorCDR_20' ) start [2025-02-21 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521948', 'tblTempVendorCDR_20' ) end [2025-02-21 02:15:17] Production.INFO: ProcessCDR(1,14521948,1,1,2) [2025-02-21 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521948', 'tblTempUsageDetail_20' ) start [2025-02-21 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521948', 'tblTempUsageDetail_20' ) end [2025-02-21 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:15:22] Production.INFO: ==16150== Releasing lock... [2025-02-21 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:16:05 [end_date_ymd] => 2025-02-21 02:16:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:16:05' and `end` < '2025-02-21 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-21 02:16:16] Production.INFO: count ==238 [2025-02-21 02:16:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:16:05 - End Time 2025-02-21 02:16:05 [2025-02-21 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521953', 'tblTempUsageDetail_20' ) start [2025-02-21 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521953', 'tblTempUsageDetail_20' ) end [2025-02-21 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521953', 'tblTempVendorCDR_20' ) start [2025-02-21 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521953', 'tblTempVendorCDR_20' ) end [2025-02-21 02:16:17] Production.INFO: ProcessCDR(1,14521953,1,1,2) [2025-02-21 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521953', 'tblTempUsageDetail_20' ) start [2025-02-21 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521953', 'tblTempUsageDetail_20' ) end [2025-02-21 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:16:20] Production.INFO: ==16220== Releasing lock... [2025-02-21 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:17:05 [end_date_ymd] => 2025-02-21 02:17:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:17:05' and `end` < '2025-02-21 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-21 02:17:16] Production.INFO: count ==238 [2025-02-21 02:17:16] Production.ERROR: pbx CDR StartTime 2025-02-20 23:17:05 - End Time 2025-02-21 02:17:05 [2025-02-21 02:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521958', 'tblTempUsageDetail_20' ) start [2025-02-21 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521958', 'tblTempUsageDetail_20' ) end [2025-02-21 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521958', 'tblTempVendorCDR_20' ) start [2025-02-21 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521958', 'tblTempVendorCDR_20' ) end [2025-02-21 02:17:16] Production.INFO: ProcessCDR(1,14521958,1,1,2) [2025-02-21 02:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521958', 'tblTempUsageDetail_20' ) start [2025-02-21 02:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521958', 'tblTempUsageDetail_20' ) end [2025-02-21 02:17:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:17:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:17:19] Production.INFO: ==16291== Releasing lock... [2025-02-21 02:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:17:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:18:05 [end_date_ymd] => 2025-02-21 02:18:05 [RateCDR] => 1 ) [2025-02-21 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:18:05' and `end` < '2025-02-21 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:18:17] Production.INFO: count ==238 [2025-02-21 02:18:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:18:05 - End Time 2025-02-21 02:18:05 [2025-02-21 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521963', 'tblTempUsageDetail_20' ) start [2025-02-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521963', 'tblTempUsageDetail_20' ) end [2025-02-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521963', 'tblTempVendorCDR_20' ) start [2025-02-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521963', 'tblTempVendorCDR_20' ) end [2025-02-21 02:18:17] Production.INFO: ProcessCDR(1,14521963,1,1,2) [2025-02-21 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521963', 'tblTempUsageDetail_20' ) start [2025-02-21 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521963', 'tblTempUsageDetail_20' ) end [2025-02-21 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:18:20] Production.INFO: ==16362== Releasing lock... [2025-02-21 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:18:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:19:05 [end_date_ymd] => 2025-02-21 02:19:05 [RateCDR] => 1 ) [2025-02-21 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:19:05' and `end` < '2025-02-21 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-21 02:19:16] Production.INFO: count ==238 [2025-02-21 02:19:16] Production.ERROR: pbx CDR StartTime 2025-02-20 23:19:05 - End Time 2025-02-21 02:19:05 [2025-02-21 02:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521968', 'tblTempUsageDetail_20' ) start [2025-02-21 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521968', 'tblTempUsageDetail_20' ) end [2025-02-21 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521968', 'tblTempVendorCDR_20' ) start [2025-02-21 02:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521968', 'tblTempVendorCDR_20' ) end [2025-02-21 02:19:16] Production.INFO: ProcessCDR(1,14521968,1,1,2) [2025-02-21 02:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521968', 'tblTempUsageDetail_20' ) start [2025-02-21 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521968', 'tblTempUsageDetail_20' ) end [2025-02-21 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:19:20] Production.INFO: ==16433== Releasing lock... [2025-02-21 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:19:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:20:06 [end_date_ymd] => 2025-02-21 02:20:06 [RateCDR] => 1 ) [2025-02-21 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:20:06' and `end` < '2025-02-21 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:20:17] Production.INFO: count ==238 [2025-02-21 02:20:18] Production.ERROR: pbx CDR StartTime 2025-02-20 23:20:06 - End Time 2025-02-21 02:20:06 [2025-02-21 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521974', 'tblTempUsageDetail_20' ) start [2025-02-21 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521974', 'tblTempUsageDetail_20' ) end [2025-02-21 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521974', 'tblTempVendorCDR_20' ) start [2025-02-21 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521974', 'tblTempVendorCDR_20' ) end [2025-02-21 02:20:18] Production.INFO: ProcessCDR(1,14521974,1,1,2) [2025-02-21 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521974', 'tblTempUsageDetail_20' ) start [2025-02-21 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521974', 'tblTempUsageDetail_20' ) end [2025-02-21 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:20:21] Production.INFO: ==16505== Releasing lock... [2025-02-21 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:21:05 [end_date_ymd] => 2025-02-21 02:21:05 [RateCDR] => 1 ) [2025-02-21 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:21:05' and `end` < '2025-02-21 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:21:17] Production.INFO: count ==238 [2025-02-21 02:21:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:21:05 - End Time 2025-02-21 02:21:05 [2025-02-21 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521979', 'tblTempUsageDetail_20' ) start [2025-02-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521979', 'tblTempUsageDetail_20' ) end [2025-02-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521979', 'tblTempVendorCDR_20' ) start [2025-02-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521979', 'tblTempVendorCDR_20' ) end [2025-02-21 02:21:17] Production.INFO: ProcessCDR(1,14521979,1,1,2) [2025-02-21 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521979', 'tblTempUsageDetail_20' ) start [2025-02-21 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521979', 'tblTempUsageDetail_20' ) end [2025-02-21 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:21:20] Production.INFO: ==16579== Releasing lock... [2025-02-21 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:21:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:22:06 [end_date_ymd] => 2025-02-21 02:22:06 [RateCDR] => 1 ) [2025-02-21 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:22:06' and `end` < '2025-02-21 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:22:17] Production.INFO: count ==238 [2025-02-21 02:22:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:22:06 - End Time 2025-02-21 02:22:06 [2025-02-21 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521984', 'tblTempUsageDetail_20' ) start [2025-02-21 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521984', 'tblTempUsageDetail_20' ) end [2025-02-21 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521984', 'tblTempVendorCDR_20' ) start [2025-02-21 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521984', 'tblTempVendorCDR_20' ) end [2025-02-21 02:22:17] Production.INFO: ProcessCDR(1,14521984,1,1,2) [2025-02-21 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521984', 'tblTempUsageDetail_20' ) start [2025-02-21 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521984', 'tblTempUsageDetail_20' ) end [2025-02-21 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:22:21] Production.INFO: ==16652== Releasing lock... [2025-02-21 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:23:05 [end_date_ymd] => 2025-02-21 02:23:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:23:05' and `end` < '2025-02-21 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-21 02:23:17] Production.INFO: count ==238 [2025-02-21 02:23:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:23:05 - End Time 2025-02-21 02:23:05 [2025-02-21 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521989', 'tblTempUsageDetail_20' ) start [2025-02-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521989', 'tblTempUsageDetail_20' ) end [2025-02-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521989', 'tblTempVendorCDR_20' ) start [2025-02-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521989', 'tblTempVendorCDR_20' ) end [2025-02-21 02:23:17] Production.INFO: ProcessCDR(1,14521989,1,1,2) [2025-02-21 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521989', 'tblTempUsageDetail_20' ) start [2025-02-21 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521989', 'tblTempUsageDetail_20' ) end [2025-02-21 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:23:20] Production.INFO: ==16722== Releasing lock... [2025-02-21 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:23:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:24:05 [end_date_ymd] => 2025-02-21 02:24:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:24:05' and `end` < '2025-02-21 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-21 02:24:17] Production.INFO: count ==238 [2025-02-21 02:24:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:24:05 - End Time 2025-02-21 02:24:05 [2025-02-21 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521994', 'tblTempUsageDetail_20' ) start [2025-02-21 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521994', 'tblTempUsageDetail_20' ) end [2025-02-21 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521994', 'tblTempVendorCDR_20' ) start [2025-02-21 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521994', 'tblTempVendorCDR_20' ) end [2025-02-21 02:24:17] Production.INFO: ProcessCDR(1,14521994,1,1,2) [2025-02-21 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521994', 'tblTempUsageDetail_20' ) start [2025-02-21 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521994', 'tblTempUsageDetail_20' ) end [2025-02-21 02:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:24:20] Production.INFO: ==16791== Releasing lock... [2025-02-21 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:24:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:25:05 [end_date_ymd] => 2025-02-21 02:25:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:25:05' and `end` < '2025-02-21 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-21 02:25:17] Production.INFO: count ==238 [2025-02-21 02:25:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:25:05 - End Time 2025-02-21 02:25:05 [2025-02-21 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521999', 'tblTempUsageDetail_20' ) start [2025-02-21 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14521999', 'tblTempUsageDetail_20' ) end [2025-02-21 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521999', 'tblTempVendorCDR_20' ) start [2025-02-21 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14521999', 'tblTempVendorCDR_20' ) end [2025-02-21 02:25:17] Production.INFO: ProcessCDR(1,14521999,1,1,2) [2025-02-21 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14521999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14521999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14521999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14521999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521999', 'tblTempUsageDetail_20' ) start [2025-02-21 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14521999', 'tblTempUsageDetail_20' ) end [2025-02-21 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:25:20] Production.INFO: ==16903== Releasing lock... [2025-02-21 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:25:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:26:05 [end_date_ymd] => 2025-02-21 02:26:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:26:05' and `end` < '2025-02-21 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-21 02:26:17] Production.INFO: count ==238 [2025-02-21 02:26:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:26:05 - End Time 2025-02-21 02:26:05 [2025-02-21 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522004', 'tblTempUsageDetail_20' ) start [2025-02-21 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522004', 'tblTempUsageDetail_20' ) end [2025-02-21 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522004', 'tblTempVendorCDR_20' ) start [2025-02-21 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522004', 'tblTempVendorCDR_20' ) end [2025-02-21 02:26:17] Production.INFO: ProcessCDR(1,14522004,1,1,2) [2025-02-21 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522004', 'tblTempUsageDetail_20' ) start [2025-02-21 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522004', 'tblTempUsageDetail_20' ) end [2025-02-21 02:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:26:20] Production.INFO: ==16975== Releasing lock... [2025-02-21 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:26:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:27:04 [end_date_ymd] => 2025-02-21 02:27:04 [RateCDR] => 1 ) [2025-02-21 02:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:27:04' and `end` < '2025-02-21 02:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:27:16] Production.INFO: count ==238 [2025-02-21 02:27:16] Production.ERROR: pbx CDR StartTime 2025-02-20 23:27:04 - End Time 2025-02-21 02:27:04 [2025-02-21 02:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522009', 'tblTempUsageDetail_20' ) start [2025-02-21 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522009', 'tblTempUsageDetail_20' ) end [2025-02-21 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522009', 'tblTempVendorCDR_20' ) start [2025-02-21 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522009', 'tblTempVendorCDR_20' ) end [2025-02-21 02:27:16] Production.INFO: ProcessCDR(1,14522009,1,1,2) [2025-02-21 02:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522009', 'tblTempUsageDetail_20' ) start [2025-02-21 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522009', 'tblTempUsageDetail_20' ) end [2025-02-21 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:27:20] Production.INFO: ==17045== Releasing lock... [2025-02-21 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:27:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:28:05 [end_date_ymd] => 2025-02-21 02:28:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:28:05' and `end` < '2025-02-21 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-21 02:28:17] Production.INFO: count ==238 [2025-02-21 02:28:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:28:05 - End Time 2025-02-21 02:28:05 [2025-02-21 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522014', 'tblTempUsageDetail_20' ) start [2025-02-21 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522014', 'tblTempUsageDetail_20' ) end [2025-02-21 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522014', 'tblTempVendorCDR_20' ) start [2025-02-21 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522014', 'tblTempVendorCDR_20' ) end [2025-02-21 02:28:17] Production.INFO: ProcessCDR(1,14522014,1,1,2) [2025-02-21 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522014', 'tblTempUsageDetail_20' ) start [2025-02-21 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522014', 'tblTempUsageDetail_20' ) end [2025-02-21 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:28:21] Production.INFO: ==17115== Releasing lock... [2025-02-21 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:29:05 [end_date_ymd] => 2025-02-21 02:29:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:29:05' and `end` < '2025-02-21 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-21 02:29:17] Production.INFO: count ==234 [2025-02-21 02:29:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:29:05 - End Time 2025-02-21 02:29:05 [2025-02-21 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522019', 'tblTempUsageDetail_20' ) start [2025-02-21 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522019', 'tblTempUsageDetail_20' ) end [2025-02-21 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522019', 'tblTempVendorCDR_20' ) start [2025-02-21 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522019', 'tblTempVendorCDR_20' ) end [2025-02-21 02:29:17] Production.INFO: ProcessCDR(1,14522019,1,1,2) [2025-02-21 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522019', 'tblTempUsageDetail_20' ) start [2025-02-21 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522019', 'tblTempUsageDetail_20' ) end [2025-02-21 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:29:20] Production.INFO: ==17185== Releasing lock... [2025-02-21 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:29:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:30:06 [end_date_ymd] => 2025-02-21 02:30:06 [RateCDR] => 1 ) [2025-02-21 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:30:06' and `end` < '2025-02-21 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:30:18] Production.INFO: count ==238 [2025-02-21 02:30:18] Production.ERROR: pbx CDR StartTime 2025-02-20 23:30:06 - End Time 2025-02-21 02:30:06 [2025-02-21 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522025', 'tblTempUsageDetail_20' ) start [2025-02-21 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522025', 'tblTempUsageDetail_20' ) end [2025-02-21 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522025', 'tblTempVendorCDR_20' ) start [2025-02-21 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522025', 'tblTempVendorCDR_20' ) end [2025-02-21 02:30:18] Production.INFO: ProcessCDR(1,14522025,1,1,2) [2025-02-21 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522025', 'tblTempUsageDetail_20' ) start [2025-02-21 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522025', 'tblTempUsageDetail_20' ) end [2025-02-21 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:30:21] Production.INFO: ==17258== Releasing lock... [2025-02-21 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:30:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:31:05 [end_date_ymd] => 2025-02-21 02:31:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:31:05' and `end` < '2025-02-21 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-21 02:31:17] Production.INFO: count ==239 [2025-02-21 02:31:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:31:05 - End Time 2025-02-21 02:31:05 [2025-02-21 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522030', 'tblTempUsageDetail_20' ) start [2025-02-21 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522030', 'tblTempUsageDetail_20' ) end [2025-02-21 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522030', 'tblTempVendorCDR_20' ) start [2025-02-21 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522030', 'tblTempVendorCDR_20' ) end [2025-02-21 02:31:17] Production.INFO: ProcessCDR(1,14522030,1,1,2) [2025-02-21 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522030', 'tblTempUsageDetail_20' ) start [2025-02-21 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522030', 'tblTempUsageDetail_20' ) end [2025-02-21 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:31:22] Production.INFO: ==17334== Releasing lock... [2025-02-21 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:32:05 [end_date_ymd] => 2025-02-21 02:32:05 [RateCDR] => 1 ) [2025-02-21 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:32:05' and `end` < '2025-02-21 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:32:17] Production.INFO: count ==239 [2025-02-21 02:32:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:32:05 - End Time 2025-02-21 02:32:05 [2025-02-21 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522035', 'tblTempUsageDetail_20' ) start [2025-02-21 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522035', 'tblTempUsageDetail_20' ) end [2025-02-21 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522035', 'tblTempVendorCDR_20' ) start [2025-02-21 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522035', 'tblTempVendorCDR_20' ) end [2025-02-21 02:32:17] Production.INFO: ProcessCDR(1,14522035,1,1,2) [2025-02-21 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522035', 'tblTempUsageDetail_20' ) start [2025-02-21 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522035', 'tblTempUsageDetail_20' ) end [2025-02-21 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:32:20] Production.INFO: ==17404== Releasing lock... [2025-02-21 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:32:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:33:05 [end_date_ymd] => 2025-02-21 02:33:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:33:05' and `end` < '2025-02-21 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-21 02:33:17] Production.INFO: count ==239 [2025-02-21 02:33:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:33:05 - End Time 2025-02-21 02:33:05 [2025-02-21 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522040', 'tblTempUsageDetail_20' ) start [2025-02-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522040', 'tblTempUsageDetail_20' ) end [2025-02-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522040', 'tblTempVendorCDR_20' ) start [2025-02-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522040', 'tblTempVendorCDR_20' ) end [2025-02-21 02:33:17] Production.INFO: ProcessCDR(1,14522040,1,1,2) [2025-02-21 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522040', 'tblTempUsageDetail_20' ) start [2025-02-21 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522040', 'tblTempUsageDetail_20' ) end [2025-02-21 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:33:20] Production.INFO: ==17475== Releasing lock... [2025-02-21 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:33:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:34:05 [end_date_ymd] => 2025-02-21 02:34:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:34:05' and `end` < '2025-02-21 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-21 02:34:16] Production.INFO: count ==240 [2025-02-21 02:34:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:34:05 - End Time 2025-02-21 02:34:05 [2025-02-21 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522045', 'tblTempUsageDetail_20' ) start [2025-02-21 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522045', 'tblTempUsageDetail_20' ) end [2025-02-21 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522045', 'tblTempVendorCDR_20' ) start [2025-02-21 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522045', 'tblTempVendorCDR_20' ) end [2025-02-21 02:34:17] Production.INFO: ProcessCDR(1,14522045,1,1,2) [2025-02-21 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522045', 'tblTempUsageDetail_20' ) start [2025-02-21 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522045', 'tblTempUsageDetail_20' ) end [2025-02-21 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:34:21] Production.INFO: ==17550== Releasing lock... [2025-02-21 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:35:06 [end_date_ymd] => 2025-02-21 02:35:06 [RateCDR] => 1 ) [2025-02-21 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-20 23:35:06' and `end` < '2025-02-21 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-21 02:35:18] Production.INFO: count ==240 [2025-02-21 02:35:18] Production.ERROR: pbx CDR StartTime 2025-02-20 23:35:06 - End Time 2025-02-21 02:35:06 [2025-02-21 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522050', 'tblTempUsageDetail_20' ) start [2025-02-21 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522050', 'tblTempUsageDetail_20' ) end [2025-02-21 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522050', 'tblTempVendorCDR_20' ) start [2025-02-21 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522050', 'tblTempVendorCDR_20' ) end [2025-02-21 02:35:18] Production.INFO: ProcessCDR(1,14522050,1,1,2) [2025-02-21 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522050', 'tblTempUsageDetail_20' ) start [2025-02-21 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522050', 'tblTempUsageDetail_20' ) end [2025-02-21 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:35:21] Production.INFO: ==17627== Releasing lock... [2025-02-21 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:36:05 [end_date_ymd] => 2025-02-21 02:36:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:36:05' and `end` < '2025-02-21 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-21 02:36:17] Production.INFO: count ==240 [2025-02-21 02:36:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:36:05 - End Time 2025-02-21 02:36:05 [2025-02-21 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522055', 'tblTempUsageDetail_20' ) start [2025-02-21 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522055', 'tblTempUsageDetail_20' ) end [2025-02-21 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522055', 'tblTempVendorCDR_20' ) start [2025-02-21 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522055', 'tblTempVendorCDR_20' ) end [2025-02-21 02:36:17] Production.INFO: ProcessCDR(1,14522055,1,1,2) [2025-02-21 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522055', 'tblTempUsageDetail_20' ) start [2025-02-21 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522055', 'tblTempUsageDetail_20' ) end [2025-02-21 02:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:36:20] Production.INFO: ==17704== Releasing lock... [2025-02-21 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:36:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:37:05 [end_date_ymd] => 2025-02-21 02:37:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:37:05' and `end` < '2025-02-21 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-21 02:37:17] Production.INFO: count ==238 [2025-02-21 02:37:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:37:05 - End Time 2025-02-21 02:37:05 [2025-02-21 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522060', 'tblTempUsageDetail_20' ) start [2025-02-21 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522060', 'tblTempUsageDetail_20' ) end [2025-02-21 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522060', 'tblTempVendorCDR_20' ) start [2025-02-21 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522060', 'tblTempVendorCDR_20' ) end [2025-02-21 02:37:17] Production.INFO: ProcessCDR(1,14522060,1,1,2) [2025-02-21 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522060', 'tblTempUsageDetail_20' ) start [2025-02-21 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522060', 'tblTempUsageDetail_20' ) end [2025-02-21 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:37:20] Production.INFO: ==17775== Releasing lock... [2025-02-21 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:37:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:38:05 [end_date_ymd] => 2025-02-21 02:38:05 [RateCDR] => 1 ) [2025-02-21 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:38:05' and `end` < '2025-02-21 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-21 02:38:17] Production.INFO: count ==235 [2025-02-21 02:38:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:38:05 - End Time 2025-02-21 02:38:05 [2025-02-21 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522065', 'tblTempUsageDetail_20' ) start [2025-02-21 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522065', 'tblTempUsageDetail_20' ) end [2025-02-21 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522065', 'tblTempVendorCDR_20' ) start [2025-02-21 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522065', 'tblTempVendorCDR_20' ) end [2025-02-21 02:38:17] Production.INFO: ProcessCDR(1,14522065,1,1,2) [2025-02-21 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522065', 'tblTempUsageDetail_20' ) start [2025-02-21 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522065', 'tblTempUsageDetail_20' ) end [2025-02-21 02:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:38:20] Production.INFO: ==17850== Releasing lock... [2025-02-21 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:38:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:39:05 [end_date_ymd] => 2025-02-21 02:39:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:39:05' and `end` < '2025-02-21 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-21 02:39:17] Production.INFO: count ==235 [2025-02-21 02:39:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:39:05 - End Time 2025-02-21 02:39:05 [2025-02-21 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522070', 'tblTempUsageDetail_20' ) start [2025-02-21 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522070', 'tblTempUsageDetail_20' ) end [2025-02-21 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522070', 'tblTempVendorCDR_20' ) start [2025-02-21 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522070', 'tblTempVendorCDR_20' ) end [2025-02-21 02:39:17] Production.INFO: ProcessCDR(1,14522070,1,1,2) [2025-02-21 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522070', 'tblTempUsageDetail_20' ) start [2025-02-21 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522070', 'tblTempUsageDetail_20' ) end [2025-02-21 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:39:20] Production.INFO: ==17924== Releasing lock... [2025-02-21 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:39:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:40:06 [end_date_ymd] => 2025-02-21 02:40:06 [RateCDR] => 1 ) [2025-02-21 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-20 23:40:06' and `end` < '2025-02-21 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-21 02:40:18] Production.INFO: count ==237 [2025-02-21 02:40:18] Production.ERROR: pbx CDR StartTime 2025-02-20 23:40:06 - End Time 2025-02-21 02:40:06 [2025-02-21 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522076', 'tblTempUsageDetail_20' ) start [2025-02-21 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522076', 'tblTempUsageDetail_20' ) end [2025-02-21 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522076', 'tblTempVendorCDR_20' ) start [2025-02-21 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522076', 'tblTempVendorCDR_20' ) end [2025-02-21 02:40:18] Production.INFO: ProcessCDR(1,14522076,1,1,2) [2025-02-21 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522076', 'tblTempUsageDetail_20' ) start [2025-02-21 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522076', 'tblTempUsageDetail_20' ) end [2025-02-21 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:40:21] Production.INFO: ==18043== Releasing lock... [2025-02-21 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:41:05 [end_date_ymd] => 2025-02-21 02:41:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:41:05' and `end` < '2025-02-21 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-21 02:41:17] Production.INFO: count ==237 [2025-02-21 02:41:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:41:05 - End Time 2025-02-21 02:41:05 [2025-02-21 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522081', 'tblTempUsageDetail_20' ) start [2025-02-21 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522081', 'tblTempUsageDetail_20' ) end [2025-02-21 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522081', 'tblTempVendorCDR_20' ) start [2025-02-21 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522081', 'tblTempVendorCDR_20' ) end [2025-02-21 02:41:17] Production.INFO: ProcessCDR(1,14522081,1,1,2) [2025-02-21 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522081', 'tblTempUsageDetail_20' ) start [2025-02-21 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522081', 'tblTempUsageDetail_20' ) end [2025-02-21 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:41:20] Production.INFO: ==18124== Releasing lock... [2025-02-21 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:42:05 [end_date_ymd] => 2025-02-21 02:42:05 [RateCDR] => 1 ) [2025-02-21 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:42:05' and `end` < '2025-02-21 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:42:17] Production.INFO: count ==237 [2025-02-21 02:42:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:42:05 - End Time 2025-02-21 02:42:05 [2025-02-21 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522086', 'tblTempUsageDetail_20' ) start [2025-02-21 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522086', 'tblTempUsageDetail_20' ) end [2025-02-21 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522086', 'tblTempVendorCDR_20' ) start [2025-02-21 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522086', 'tblTempVendorCDR_20' ) end [2025-02-21 02:42:17] Production.INFO: ProcessCDR(1,14522086,1,1,2) [2025-02-21 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522086', 'tblTempUsageDetail_20' ) start [2025-02-21 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522086', 'tblTempUsageDetail_20' ) end [2025-02-21 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:42:21] Production.INFO: ==18204== Releasing lock... [2025-02-21 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:43:05 [end_date_ymd] => 2025-02-21 02:43:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:43:05' and `end` < '2025-02-21 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-21 02:43:17] Production.INFO: count ==237 [2025-02-21 02:43:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:43:05 - End Time 2025-02-21 02:43:05 [2025-02-21 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522091', 'tblTempUsageDetail_20' ) start [2025-02-21 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522091', 'tblTempUsageDetail_20' ) end [2025-02-21 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522091', 'tblTempVendorCDR_20' ) start [2025-02-21 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522091', 'tblTempVendorCDR_20' ) end [2025-02-21 02:43:17] Production.INFO: ProcessCDR(1,14522091,1,1,2) [2025-02-21 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522091', 'tblTempUsageDetail_20' ) start [2025-02-21 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522091', 'tblTempUsageDetail_20' ) end [2025-02-21 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:43:20] Production.INFO: ==18282== Releasing lock... [2025-02-21 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:44:05 [end_date_ymd] => 2025-02-21 02:44:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:44:05' and `end` < '2025-02-21 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-21 02:44:17] Production.INFO: count ==237 [2025-02-21 02:44:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:44:05 - End Time 2025-02-21 02:44:05 [2025-02-21 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522096', 'tblTempUsageDetail_20' ) start [2025-02-21 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522096', 'tblTempUsageDetail_20' ) end [2025-02-21 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522096', 'tblTempVendorCDR_20' ) start [2025-02-21 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522096', 'tblTempVendorCDR_20' ) end [2025-02-21 02:44:17] Production.INFO: ProcessCDR(1,14522096,1,1,2) [2025-02-21 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522096', 'tblTempUsageDetail_20' ) start [2025-02-21 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522096', 'tblTempUsageDetail_20' ) end [2025-02-21 02:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:44:20] Production.INFO: ==18368== Releasing lock... [2025-02-21 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:44:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:45:05 [end_date_ymd] => 2025-02-21 02:45:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:45:05' and `end` < '2025-02-21 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-21 02:45:16] Production.INFO: count ==237 [2025-02-21 02:45:16] Production.ERROR: pbx CDR StartTime 2025-02-20 23:45:05 - End Time 2025-02-21 02:45:05 [2025-02-21 02:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522101', 'tblTempUsageDetail_20' ) start [2025-02-21 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522101', 'tblTempUsageDetail_20' ) end [2025-02-21 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522101', 'tblTempVendorCDR_20' ) start [2025-02-21 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522101', 'tblTempVendorCDR_20' ) end [2025-02-21 02:45:16] Production.INFO: ProcessCDR(1,14522101,1,1,2) [2025-02-21 02:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522101', 'tblTempUsageDetail_20' ) start [2025-02-21 02:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522101', 'tblTempUsageDetail_20' ) end [2025-02-21 02:45:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:45:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:45:19] Production.INFO: ==18453== Releasing lock... [2025-02-21 02:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:45:19] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:46:05 [end_date_ymd] => 2025-02-21 02:46:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:46:05' and `end` < '2025-02-21 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-21 02:46:17] Production.INFO: count ==237 [2025-02-21 02:46:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:46:05 - End Time 2025-02-21 02:46:05 [2025-02-21 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522106', 'tblTempUsageDetail_20' ) start [2025-02-21 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522106', 'tblTempUsageDetail_20' ) end [2025-02-21 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522106', 'tblTempVendorCDR_20' ) start [2025-02-21 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522106', 'tblTempVendorCDR_20' ) end [2025-02-21 02:46:17] Production.INFO: ProcessCDR(1,14522106,1,1,2) [2025-02-21 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522106', 'tblTempUsageDetail_20' ) start [2025-02-21 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522106', 'tblTempUsageDetail_20' ) end [2025-02-21 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:46:21] Production.INFO: ==18538== Releasing lock... [2025-02-21 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:47:05 [end_date_ymd] => 2025-02-21 02:47:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:47:05' and `end` < '2025-02-21 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-21 02:47:17] Production.INFO: count ==237 [2025-02-21 02:47:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:47:05 - End Time 2025-02-21 02:47:05 [2025-02-21 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522111', 'tblTempUsageDetail_20' ) start [2025-02-21 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522111', 'tblTempUsageDetail_20' ) end [2025-02-21 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522111', 'tblTempVendorCDR_20' ) start [2025-02-21 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522111', 'tblTempVendorCDR_20' ) end [2025-02-21 02:47:17] Production.INFO: ProcessCDR(1,14522111,1,1,2) [2025-02-21 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522111', 'tblTempUsageDetail_20' ) start [2025-02-21 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522111', 'tblTempUsageDetail_20' ) end [2025-02-21 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:47:20] Production.INFO: ==18613== Releasing lock... [2025-02-21 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:47:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:48:05 [end_date_ymd] => 2025-02-21 02:48:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:48:05' and `end` < '2025-02-21 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-21 02:48:17] Production.INFO: count ==237 [2025-02-21 02:48:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:48:05 - End Time 2025-02-21 02:48:05 [2025-02-21 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522116', 'tblTempUsageDetail_20' ) start [2025-02-21 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522116', 'tblTempUsageDetail_20' ) end [2025-02-21 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522116', 'tblTempVendorCDR_20' ) start [2025-02-21 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522116', 'tblTempVendorCDR_20' ) end [2025-02-21 02:48:17] Production.INFO: ProcessCDR(1,14522116,1,1,2) [2025-02-21 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522116', 'tblTempUsageDetail_20' ) start [2025-02-21 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522116', 'tblTempUsageDetail_20' ) end [2025-02-21 02:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:48:20] Production.INFO: ==18697== Releasing lock... [2025-02-21 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:48:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:49:05 [end_date_ymd] => 2025-02-21 02:49:05 [RateCDR] => 1 ) [2025-02-21 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:49:05' and `end` < '2025-02-21 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:49:17] Production.INFO: count ==241 [2025-02-21 02:49:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:49:05 - End Time 2025-02-21 02:49:05 [2025-02-21 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522121', 'tblTempUsageDetail_20' ) start [2025-02-21 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522121', 'tblTempUsageDetail_20' ) end [2025-02-21 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522121', 'tblTempVendorCDR_20' ) start [2025-02-21 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522121', 'tblTempVendorCDR_20' ) end [2025-02-21 02:49:17] Production.INFO: ProcessCDR(1,14522121,1,1,2) [2025-02-21 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522121', 'tblTempUsageDetail_20' ) start [2025-02-21 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522121', 'tblTempUsageDetail_20' ) end [2025-02-21 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:49:20] Production.INFO: ==18785== Releasing lock... [2025-02-21 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:49:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:50:06 [end_date_ymd] => 2025-02-21 02:50:06 [RateCDR] => 1 ) [2025-02-21 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-20 23:50:06' and `end` < '2025-02-21 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-21 02:50:18] Production.INFO: count ==241 [2025-02-21 02:50:18] Production.ERROR: pbx CDR StartTime 2025-02-20 23:50:06 - End Time 2025-02-21 02:50:06 [2025-02-21 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522127', 'tblTempUsageDetail_20' ) start [2025-02-21 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522127', 'tblTempUsageDetail_20' ) end [2025-02-21 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522127', 'tblTempVendorCDR_20' ) start [2025-02-21 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522127', 'tblTempVendorCDR_20' ) end [2025-02-21 02:50:18] Production.INFO: ProcessCDR(1,14522127,1,1,2) [2025-02-21 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522127', 'tblTempUsageDetail_20' ) start [2025-02-21 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522127', 'tblTempUsageDetail_20' ) end [2025-02-21 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:50:21] Production.INFO: ==18885== Releasing lock... [2025-02-21 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:50:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:51:06 [end_date_ymd] => 2025-02-21 02:51:06 [RateCDR] => 1 ) [2025-02-21 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:51:06' and `end` < '2025-02-21 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:51:17] Production.INFO: count ==241 [2025-02-21 02:51:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:51:06 - End Time 2025-02-21 02:51:06 [2025-02-21 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522132', 'tblTempUsageDetail_20' ) start [2025-02-21 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522132', 'tblTempUsageDetail_20' ) end [2025-02-21 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522132', 'tblTempVendorCDR_20' ) start [2025-02-21 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522132', 'tblTempVendorCDR_20' ) end [2025-02-21 02:51:17] Production.INFO: ProcessCDR(1,14522132,1,1,2) [2025-02-21 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522132', 'tblTempUsageDetail_20' ) start [2025-02-21 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522132', 'tblTempUsageDetail_20' ) end [2025-02-21 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:51:21] Production.INFO: ==18967== Releasing lock... [2025-02-21 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:52:05 [end_date_ymd] => 2025-02-21 02:52:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:52:05' and `end` < '2025-02-21 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-21 02:52:17] Production.INFO: count ==241 [2025-02-21 02:52:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:52:05 - End Time 2025-02-21 02:52:05 [2025-02-21 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522137', 'tblTempUsageDetail_20' ) start [2025-02-21 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522137', 'tblTempUsageDetail_20' ) end [2025-02-21 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522137', 'tblTempVendorCDR_20' ) start [2025-02-21 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522137', 'tblTempVendorCDR_20' ) end [2025-02-21 02:52:17] Production.INFO: ProcessCDR(1,14522137,1,1,2) [2025-02-21 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522137', 'tblTempUsageDetail_20' ) start [2025-02-21 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522137', 'tblTempUsageDetail_20' ) end [2025-02-21 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:52:20] Production.INFO: ==19047== Releasing lock... [2025-02-21 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:52:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:53:06 [end_date_ymd] => 2025-02-21 02:53:06 [RateCDR] => 1 ) [2025-02-21 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-20 23:53:06' and `end` < '2025-02-21 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-21 02:53:17] Production.INFO: count ==241 [2025-02-21 02:53:18] Production.ERROR: pbx CDR StartTime 2025-02-20 23:53:06 - End Time 2025-02-21 02:53:06 [2025-02-21 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522142', 'tblTempUsageDetail_20' ) start [2025-02-21 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522142', 'tblTempUsageDetail_20' ) end [2025-02-21 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522142', 'tblTempVendorCDR_20' ) start [2025-02-21 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522142', 'tblTempVendorCDR_20' ) end [2025-02-21 02:53:18] Production.INFO: ProcessCDR(1,14522142,1,1,2) [2025-02-21 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522142', 'tblTempUsageDetail_20' ) start [2025-02-21 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522142', 'tblTempUsageDetail_20' ) end [2025-02-21 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:53:21] Production.INFO: ==19137== Releasing lock... [2025-02-21 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:54:05 [end_date_ymd] => 2025-02-21 02:54:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:54:05' and `end` < '2025-02-21 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-21 02:54:17] Production.INFO: count ==241 [2025-02-21 02:54:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:54:05 - End Time 2025-02-21 02:54:05 [2025-02-21 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522147', 'tblTempUsageDetail_20' ) start [2025-02-21 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522147', 'tblTempUsageDetail_20' ) end [2025-02-21 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522147', 'tblTempVendorCDR_20' ) start [2025-02-21 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522147', 'tblTempVendorCDR_20' ) end [2025-02-21 02:54:17] Production.INFO: ProcessCDR(1,14522147,1,1,2) [2025-02-21 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522147', 'tblTempUsageDetail_20' ) start [2025-02-21 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522147', 'tblTempUsageDetail_20' ) end [2025-02-21 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:54:20] Production.INFO: ==19216== Releasing lock... [2025-02-21 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:54:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:55:05 [end_date_ymd] => 2025-02-21 02:55:05 [RateCDR] => 1 ) [2025-02-21 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:55:05' and `end` < '2025-02-21 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:55:17] Production.INFO: count ==241 [2025-02-21 02:55:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:55:05 - End Time 2025-02-21 02:55:05 [2025-02-21 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522152', 'tblTempUsageDetail_20' ) start [2025-02-21 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522152', 'tblTempUsageDetail_20' ) end [2025-02-21 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522152', 'tblTempVendorCDR_20' ) start [2025-02-21 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522152', 'tblTempVendorCDR_20' ) end [2025-02-21 02:55:17] Production.INFO: ProcessCDR(1,14522152,1,1,2) [2025-02-21 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522152', 'tblTempUsageDetail_20' ) start [2025-02-21 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522152', 'tblTempUsageDetail_20' ) end [2025-02-21 02:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:55:20] Production.INFO: ==19296== Releasing lock... [2025-02-21 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:55:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:56:05 [end_date_ymd] => 2025-02-21 02:56:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:56:05' and `end` < '2025-02-21 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-21 02:56:16] Production.INFO: count ==241 [2025-02-21 02:56:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:56:05 - End Time 2025-02-21 02:56:05 [2025-02-21 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522157', 'tblTempUsageDetail_20' ) start [2025-02-21 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522157', 'tblTempUsageDetail_20' ) end [2025-02-21 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522157', 'tblTempVendorCDR_20' ) start [2025-02-21 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522157', 'tblTempVendorCDR_20' ) end [2025-02-21 02:56:17] Production.INFO: ProcessCDR(1,14522157,1,1,2) [2025-02-21 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522157', 'tblTempUsageDetail_20' ) start [2025-02-21 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522157', 'tblTempUsageDetail_20' ) end [2025-02-21 02:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:56:20] Production.INFO: ==19413== Releasing lock... [2025-02-21 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:56:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:57:05 [end_date_ymd] => 2025-02-21 02:57:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:57:05' and `end` < '2025-02-21 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-21 02:57:17] Production.INFO: count ==241 [2025-02-21 02:57:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:57:05 - End Time 2025-02-21 02:57:05 [2025-02-21 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522162', 'tblTempUsageDetail_20' ) start [2025-02-21 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522162', 'tblTempUsageDetail_20' ) end [2025-02-21 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522162', 'tblTempVendorCDR_20' ) start [2025-02-21 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522162', 'tblTempVendorCDR_20' ) end [2025-02-21 02:57:17] Production.INFO: ProcessCDR(1,14522162,1,1,2) [2025-02-21 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522162', 'tblTempUsageDetail_20' ) start [2025-02-21 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522162', 'tblTempUsageDetail_20' ) end [2025-02-21 02:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:57:20] Production.INFO: ==19511== Releasing lock... [2025-02-21 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:57:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:58:04 [end_date_ymd] => 2025-02-21 02:58:04 [RateCDR] => 1 ) [2025-02-21 02:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-20 23:58:04' and `end` < '2025-02-21 02:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 02:58:16] Production.INFO: count ==241 [2025-02-21 02:58:16] Production.ERROR: pbx CDR StartTime 2025-02-20 23:58:04 - End Time 2025-02-21 02:58:04 [2025-02-21 02:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522167', 'tblTempUsageDetail_20' ) start [2025-02-21 02:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522167', 'tblTempUsageDetail_20' ) end [2025-02-21 02:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522167', 'tblTempVendorCDR_20' ) start [2025-02-21 02:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522167', 'tblTempVendorCDR_20' ) end [2025-02-21 02:58:16] Production.INFO: ProcessCDR(1,14522167,1,1,2) [2025-02-21 02:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522167', 'tblTempUsageDetail_20' ) start [2025-02-21 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522167', 'tblTempUsageDetail_20' ) end [2025-02-21 02:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:58:20] Production.INFO: ==19607== Releasing lock... [2025-02-21 02:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:58:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-20 23:59:05 [end_date_ymd] => 2025-02-21 02:59:05 [RateCDR] => 1 ) [2025-02-21 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-20 23:59:05' and `end` < '2025-02-21 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-21 02:59:17] Production.INFO: count ==241 [2025-02-21 02:59:17] Production.ERROR: pbx CDR StartTime 2025-02-20 23:59:05 - End Time 2025-02-21 02:59:05 [2025-02-21 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522172', 'tblTempUsageDetail_20' ) start [2025-02-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522172', 'tblTempUsageDetail_20' ) end [2025-02-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522172', 'tblTempVendorCDR_20' ) start [2025-02-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522172', 'tblTempVendorCDR_20' ) end [2025-02-21 02:59:17] Production.INFO: ProcessCDR(1,14522172,1,1,2) [2025-02-21 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522172', 'tblTempUsageDetail_20' ) start [2025-02-21 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522172', 'tblTempUsageDetail_20' ) end [2025-02-21 02:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 02:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 02:59:20] Production.INFO: ==19710== Releasing lock... [2025-02-21 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 02:59:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:00:07 [end_date_ymd] => 2025-02-21 03:00:07 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:00:07' and `end` < '2025-02-21 03: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-21 03:00:19] Production.INFO: count ==247 [2025-02-21 03:00:19] Production.ERROR: pbx CDR StartTime 2025-02-21 00:00:07 - End Time 2025-02-21 03:00:07 [2025-02-21 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522178', 'tblTempUsageDetail_20' ) start [2025-02-21 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522178', 'tblTempUsageDetail_20' ) end [2025-02-21 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522178', 'tblTempVendorCDR_20' ) start [2025-02-21 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522178', 'tblTempVendorCDR_20' ) end [2025-02-21 03:00:19] Production.INFO: ProcessCDR(1,14522178,1,1,2) [2025-02-21 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522178', 'tblTempUsageDetail_20' ) start [2025-02-21 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522178', 'tblTempUsageDetail_20' ) end [2025-02-21 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:00:22] Production.INFO: ==19822== Releasing lock... [2025-02-21 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:01:05 [end_date_ymd] => 2025-02-21 03:01:05 [RateCDR] => 1 ) [2025-02-21 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:01:05' and `end` < '2025-02-21 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:01:17] Production.INFO: count ==246 [2025-02-21 03:01:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:01:05 - End Time 2025-02-21 03:01:05 [2025-02-21 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522183', 'tblTempUsageDetail_20' ) start [2025-02-21 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522183', 'tblTempUsageDetail_20' ) end [2025-02-21 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522183', 'tblTempVendorCDR_20' ) start [2025-02-21 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522183', 'tblTempVendorCDR_20' ) end [2025-02-21 03:01:17] Production.INFO: ProcessCDR(1,14522183,1,1,2) [2025-02-21 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522183', 'tblTempUsageDetail_20' ) start [2025-02-21 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522183', 'tblTempUsageDetail_20' ) end [2025-02-21 03:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:01:20] Production.INFO: ==19938== Releasing lock... [2025-02-21 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:01:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:02:05 [end_date_ymd] => 2025-02-21 03:02:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:02:05' and `end` < '2025-02-21 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-21 03:02:17] Production.INFO: count ==238 [2025-02-21 03:02:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:02:05 - End Time 2025-02-21 03:02:05 [2025-02-21 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522188', 'tblTempUsageDetail_20' ) start [2025-02-21 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522188', 'tblTempUsageDetail_20' ) end [2025-02-21 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522188', 'tblTempVendorCDR_20' ) start [2025-02-21 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522188', 'tblTempVendorCDR_20' ) end [2025-02-21 03:02:17] Production.INFO: ProcessCDR(1,14522188,1,1,2) [2025-02-21 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522188', 'tblTempUsageDetail_20' ) start [2025-02-21 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522188', 'tblTempUsageDetail_20' ) end [2025-02-21 03:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:02:20] Production.INFO: ==20102== Releasing lock... [2025-02-21 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:02:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:03:05 [end_date_ymd] => 2025-02-21 03:03:05 [RateCDR] => 1 ) [2025-02-21 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:03:05' and `end` < '2025-02-21 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:03:17] Production.INFO: count ==238 [2025-02-21 03:03:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:03:05 - End Time 2025-02-21 03:03:05 [2025-02-21 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522193', 'tblTempUsageDetail_20' ) start [2025-02-21 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522193', 'tblTempUsageDetail_20' ) end [2025-02-21 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522193', 'tblTempVendorCDR_20' ) start [2025-02-21 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522193', 'tblTempVendorCDR_20' ) end [2025-02-21 03:03:17] Production.INFO: ProcessCDR(1,14522193,1,1,2) [2025-02-21 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522193', 'tblTempUsageDetail_20' ) start [2025-02-21 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522193', 'tblTempUsageDetail_20' ) end [2025-02-21 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:03:20] Production.INFO: ==20183== Releasing lock... [2025-02-21 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:03:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:04:06 [end_date_ymd] => 2025-02-21 03:04:06 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:04:06' and `end` < '2025-02-21 03: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-21 03:04:17] Production.INFO: count ==235 [2025-02-21 03:04:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:04:06 - End Time 2025-02-21 03:04:06 [2025-02-21 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522198', 'tblTempUsageDetail_20' ) start [2025-02-21 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522198', 'tblTempUsageDetail_20' ) end [2025-02-21 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522198', 'tblTempVendorCDR_20' ) start [2025-02-21 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522198', 'tblTempVendorCDR_20' ) end [2025-02-21 03:04:17] Production.INFO: ProcessCDR(1,14522198,1,1,2) [2025-02-21 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522198', 'tblTempUsageDetail_20' ) start [2025-02-21 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522198', 'tblTempUsageDetail_20' ) end [2025-02-21 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:04:21] Production.INFO: ==20269== Releasing lock... [2025-02-21 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:04:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:05:05 [end_date_ymd] => 2025-02-21 03:05:05 [RateCDR] => 1 ) [2025-02-21 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:05:05' and `end` < '2025-02-21 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:05:17] Production.INFO: count ==235 [2025-02-21 03:05:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:05:05 - End Time 2025-02-21 03:05:05 [2025-02-21 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522203', 'tblTempUsageDetail_20' ) start [2025-02-21 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522203', 'tblTempUsageDetail_20' ) end [2025-02-21 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522203', 'tblTempVendorCDR_20' ) start [2025-02-21 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522203', 'tblTempVendorCDR_20' ) end [2025-02-21 03:05:17] Production.INFO: ProcessCDR(1,14522203,1,1,2) [2025-02-21 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522203', 'tblTempUsageDetail_20' ) start [2025-02-21 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522203', 'tblTempUsageDetail_20' ) end [2025-02-21 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:05:20] Production.INFO: ==20345== Releasing lock... [2025-02-21 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:05:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:06:05 [end_date_ymd] => 2025-02-21 03:06:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:06:05' and `end` < '2025-02-21 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-21 03:06:17] Production.INFO: count ==232 [2025-02-21 03:06:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:06:05 - End Time 2025-02-21 03:06:05 [2025-02-21 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522208', 'tblTempUsageDetail_20' ) start [2025-02-21 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522208', 'tblTempUsageDetail_20' ) end [2025-02-21 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522208', 'tblTempVendorCDR_20' ) start [2025-02-21 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522208', 'tblTempVendorCDR_20' ) end [2025-02-21 03:06:17] Production.INFO: ProcessCDR(1,14522208,1,1,2) [2025-02-21 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522208', 'tblTempUsageDetail_20' ) start [2025-02-21 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522208', 'tblTempUsageDetail_20' ) end [2025-02-21 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:06:22] Production.INFO: ==20506== Releasing lock... [2025-02-21 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:07:05 [end_date_ymd] => 2025-02-21 03:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:07:05' and `end` < '2025-02-21 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-21 03:07:17] Production.INFO: count ==231 [2025-02-21 03:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:07:05 - End Time 2025-02-21 03:07:05 [2025-02-21 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522213', 'tblTempUsageDetail_20' ) start [2025-02-21 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522213', 'tblTempUsageDetail_20' ) end [2025-02-21 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522213', 'tblTempVendorCDR_20' ) start [2025-02-21 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522213', 'tblTempVendorCDR_20' ) end [2025-02-21 03:07:17] Production.INFO: ProcessCDR(1,14522213,1,1,2) [2025-02-21 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522213', 'tblTempUsageDetail_20' ) start [2025-02-21 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522213', 'tblTempUsageDetail_20' ) end [2025-02-21 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:07:20] Production.INFO: ==20580== Releasing lock... [2025-02-21 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:07:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:08:05 [end_date_ymd] => 2025-02-21 03:08:05 [RateCDR] => 1 ) [2025-02-21 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:08:05' and `end` < '2025-02-21 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:08:17] Production.INFO: count ==228 [2025-02-21 03:08:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:08:05 - End Time 2025-02-21 03:08:05 [2025-02-21 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522218', 'tblTempUsageDetail_20' ) start [2025-02-21 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522218', 'tblTempUsageDetail_20' ) end [2025-02-21 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522218', 'tblTempVendorCDR_20' ) start [2025-02-21 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522218', 'tblTempVendorCDR_20' ) end [2025-02-21 03:08:17] Production.INFO: ProcessCDR(1,14522218,1,1,2) [2025-02-21 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522218', 'tblTempUsageDetail_20' ) start [2025-02-21 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522218', 'tblTempUsageDetail_20' ) end [2025-02-21 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:08:20] Production.INFO: ==20662== Releasing lock... [2025-02-21 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:08:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:09:05 [end_date_ymd] => 2025-02-21 03:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:09:05' and `end` < '2025-02-21 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-21 03:09:16] Production.INFO: count ==228 [2025-02-21 03:09:16] Production.ERROR: pbx CDR StartTime 2025-02-21 00:09:05 - End Time 2025-02-21 03:09:05 [2025-02-21 03:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522223', 'tblTempUsageDetail_20' ) start [2025-02-21 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522223', 'tblTempUsageDetail_20' ) end [2025-02-21 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522223', 'tblTempVendorCDR_20' ) start [2025-02-21 03:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522223', 'tblTempVendorCDR_20' ) end [2025-02-21 03:09:16] Production.INFO: ProcessCDR(1,14522223,1,1,2) [2025-02-21 03:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522223', 'tblTempUsageDetail_20' ) start [2025-02-21 03:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522223', 'tblTempUsageDetail_20' ) end [2025-02-21 03:09:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:09:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:09:20] Production.INFO: ==20823== Releasing lock... [2025-02-21 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:09:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:10:06 [end_date_ymd] => 2025-02-21 03:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 00:10:06' and `end` < '2025-02-21 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-21 03:10:18] Production.INFO: count ==219 [2025-02-21 03:10:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:10:06 - End Time 2025-02-21 03:10:06 [2025-02-21 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522229', 'tblTempUsageDetail_20' ) start [2025-02-21 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522229', 'tblTempUsageDetail_20' ) end [2025-02-21 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522229', 'tblTempVendorCDR_20' ) start [2025-02-21 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522229', 'tblTempVendorCDR_20' ) end [2025-02-21 03:10:18] Production.INFO: ProcessCDR(1,14522229,1,1,2) [2025-02-21 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522229', 'tblTempUsageDetail_20' ) start [2025-02-21 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522229', 'tblTempUsageDetail_20' ) end [2025-02-21 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:10:21] Production.INFO: ==20905== Releasing lock... [2025-02-21 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:11:06 [end_date_ymd] => 2025-02-21 03:11:06 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:11:06' and `end` < '2025-02-21 03: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-21 03:11:18] Production.INFO: count ==210 [2025-02-21 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:11:06 - End Time 2025-02-21 03:11:06 [2025-02-21 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522234', 'tblTempUsageDetail_20' ) start [2025-02-21 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522234', 'tblTempUsageDetail_20' ) end [2025-02-21 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522234', 'tblTempVendorCDR_20' ) start [2025-02-21 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522234', 'tblTempVendorCDR_20' ) end [2025-02-21 03:11:18] Production.INFO: ProcessCDR(1,14522234,1,1,2) [2025-02-21 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522234', 'tblTempUsageDetail_20' ) start [2025-02-21 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522234', 'tblTempUsageDetail_20' ) end [2025-02-21 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:11:21] Production.INFO: ==21028== Releasing lock... [2025-02-21 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:12:05 [end_date_ymd] => 2025-02-21 03:12:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:12:05' and `end` < '2025-02-21 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-21 03:12:17] Production.INFO: count ==208 [2025-02-21 03:12:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:12:05 - End Time 2025-02-21 03:12:05 [2025-02-21 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522239', 'tblTempUsageDetail_20' ) start [2025-02-21 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522239', 'tblTempUsageDetail_20' ) end [2025-02-21 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522239', 'tblTempVendorCDR_20' ) start [2025-02-21 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522239', 'tblTempVendorCDR_20' ) end [2025-02-21 03:12:17] Production.INFO: ProcessCDR(1,14522239,1,1,2) [2025-02-21 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522239', 'tblTempUsageDetail_20' ) start [2025-02-21 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522239', 'tblTempUsageDetail_20' ) end [2025-02-21 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:12:20] Production.INFO: ==21108== Releasing lock... [2025-02-21 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:13:05 [end_date_ymd] => 2025-02-21 03:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:13:05' and `end` < '2025-02-21 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-21 03:13:17] Production.INFO: count ==208 [2025-02-21 03:13:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:13:05 - End Time 2025-02-21 03:13:05 [2025-02-21 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522244', 'tblTempUsageDetail_20' ) start [2025-02-21 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522244', 'tblTempUsageDetail_20' ) end [2025-02-21 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522244', 'tblTempVendorCDR_20' ) start [2025-02-21 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522244', 'tblTempVendorCDR_20' ) end [2025-02-21 03:13:17] Production.INFO: ProcessCDR(1,14522244,1,1,2) [2025-02-21 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522244', 'tblTempUsageDetail_20' ) start [2025-02-21 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522244', 'tblTempUsageDetail_20' ) end [2025-02-21 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:13:22] Production.INFO: ==21268== Releasing lock... [2025-02-21 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:14:05 [end_date_ymd] => 2025-02-21 03:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:14:05' and `end` < '2025-02-21 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-21 03:14:17] Production.INFO: count ==203 [2025-02-21 03:14:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:14:05 - End Time 2025-02-21 03:14:05 [2025-02-21 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522249', 'tblTempUsageDetail_20' ) start [2025-02-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522249', 'tblTempUsageDetail_20' ) end [2025-02-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522249', 'tblTempVendorCDR_20' ) start [2025-02-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522249', 'tblTempVendorCDR_20' ) end [2025-02-21 03:14:17] Production.INFO: ProcessCDR(1,14522249,1,1,2) [2025-02-21 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522249', 'tblTempUsageDetail_20' ) start [2025-02-21 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522249', 'tblTempUsageDetail_20' ) end [2025-02-21 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:14:20] Production.INFO: ==21346== Releasing lock... [2025-02-21 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:14:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:15:05 [end_date_ymd] => 2025-02-21 03:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:15:05' and `end` < '2025-02-21 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-21 03:15:17] Production.INFO: count ==201 [2025-02-21 03:15:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:15:05 - End Time 2025-02-21 03:15:05 [2025-02-21 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522254', 'tblTempUsageDetail_20' ) start [2025-02-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522254', 'tblTempUsageDetail_20' ) end [2025-02-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522254', 'tblTempVendorCDR_20' ) start [2025-02-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522254', 'tblTempVendorCDR_20' ) end [2025-02-21 03:15:17] Production.INFO: ProcessCDR(1,14522254,1,1,2) [2025-02-21 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522254', 'tblTempUsageDetail_20' ) start [2025-02-21 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522254', 'tblTempUsageDetail_20' ) end [2025-02-21 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:15:20] Production.INFO: ==21423== Releasing lock... [2025-02-21 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:16:05 [end_date_ymd] => 2025-02-21 03:16:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:16:05' and `end` < '2025-02-21 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-21 03:16:17] Production.INFO: count ==201 [2025-02-21 03:16:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:16:05 - End Time 2025-02-21 03:16:05 [2025-02-21 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522259', 'tblTempUsageDetail_20' ) start [2025-02-21 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522259', 'tblTempUsageDetail_20' ) end [2025-02-21 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522259', 'tblTempVendorCDR_20' ) start [2025-02-21 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522259', 'tblTempVendorCDR_20' ) end [2025-02-21 03:16:17] Production.INFO: ProcessCDR(1,14522259,1,1,2) [2025-02-21 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522259', 'tblTempUsageDetail_20' ) start [2025-02-21 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522259', 'tblTempUsageDetail_20' ) end [2025-02-21 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:16:20] Production.INFO: ==21504== Releasing lock... [2025-02-21 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:16:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:17:05 [end_date_ymd] => 2025-02-21 03:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:17:05' and `end` < '2025-02-21 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-21 03:17:17] Production.INFO: count ==201 [2025-02-21 03:17:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:17:05 - End Time 2025-02-21 03:17:05 [2025-02-21 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522264', 'tblTempUsageDetail_20' ) start [2025-02-21 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522264', 'tblTempUsageDetail_20' ) end [2025-02-21 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522264', 'tblTempVendorCDR_20' ) start [2025-02-21 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522264', 'tblTempVendorCDR_20' ) end [2025-02-21 03:17:17] Production.INFO: ProcessCDR(1,14522264,1,1,2) [2025-02-21 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522264', 'tblTempUsageDetail_20' ) start [2025-02-21 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522264', 'tblTempUsageDetail_20' ) end [2025-02-21 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:17:20] Production.INFO: ==21659== Releasing lock... [2025-02-21 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:18:05 [end_date_ymd] => 2025-02-21 03:18:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:18:05' and `end` < '2025-02-21 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-21 03:18:17] Production.INFO: count ==198 [2025-02-21 03:18:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:18:05 - End Time 2025-02-21 03:18:05 [2025-02-21 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522269', 'tblTempUsageDetail_20' ) start [2025-02-21 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522269', 'tblTempUsageDetail_20' ) end [2025-02-21 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522269', 'tblTempVendorCDR_20' ) start [2025-02-21 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522269', 'tblTempVendorCDR_20' ) end [2025-02-21 03:18:17] Production.INFO: ProcessCDR(1,14522269,1,1,2) [2025-02-21 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522269', 'tblTempUsageDetail_20' ) start [2025-02-21 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522269', 'tblTempUsageDetail_20' ) end [2025-02-21 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:18:20] Production.INFO: ==21735== Releasing lock... [2025-02-21 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:18:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:19:05 [end_date_ymd] => 2025-02-21 03:19:05 [RateCDR] => 1 ) [2025-02-21 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:19:05' and `end` < '2025-02-21 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:19:16] Production.INFO: count ==196 [2025-02-21 03:19:16] Production.ERROR: pbx CDR StartTime 2025-02-21 00:19:05 - End Time 2025-02-21 03:19:05 [2025-02-21 03:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522274', 'tblTempUsageDetail_20' ) start [2025-02-21 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522274', 'tblTempUsageDetail_20' ) end [2025-02-21 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522274', 'tblTempVendorCDR_20' ) start [2025-02-21 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522274', 'tblTempVendorCDR_20' ) end [2025-02-21 03:19:16] Production.INFO: ProcessCDR(1,14522274,1,1,2) [2025-02-21 03:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522274', 'tblTempUsageDetail_20' ) start [2025-02-21 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522274', 'tblTempUsageDetail_20' ) end [2025-02-21 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:19:20] Production.INFO: ==21812== Releasing lock... [2025-02-21 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:20:06 [end_date_ymd] => 2025-02-21 03:20:06 [RateCDR] => 1 ) [2025-02-21 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-21 00:20:06' and `end` < '2025-02-21 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-21 03:20:18] Production.INFO: count ==188 [2025-02-21 03:20:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:20:06 - End Time 2025-02-21 03:20:06 [2025-02-21 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522279', 'tblTempUsageDetail_20' ) start [2025-02-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522279', 'tblTempUsageDetail_20' ) end [2025-02-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522279', 'tblTempVendorCDR_20' ) start [2025-02-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522279', 'tblTempVendorCDR_20' ) end [2025-02-21 03:20:18] Production.INFO: ProcessCDR(1,14522279,1,1,2) [2025-02-21 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522279', 'tblTempUsageDetail_20' ) start [2025-02-21 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522279', 'tblTempUsageDetail_20' ) end [2025-02-21 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:20:21] Production.INFO: ==21926== Releasing lock... [2025-02-21 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:21:05 [end_date_ymd] => 2025-02-21 03:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:21:05' and `end` < '2025-02-21 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-21 03:21:17] Production.INFO: count ==186 [2025-02-21 03:21:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:21:05 - End Time 2025-02-21 03:21:05 [2025-02-21 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522285', 'tblTempUsageDetail_20' ) start [2025-02-21 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522285', 'tblTempUsageDetail_20' ) end [2025-02-21 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522285', 'tblTempVendorCDR_20' ) start [2025-02-21 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522285', 'tblTempVendorCDR_20' ) end [2025-02-21 03:21:17] Production.INFO: ProcessCDR(1,14522285,1,1,2) [2025-02-21 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522285', 'tblTempUsageDetail_20' ) start [2025-02-21 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522285', 'tblTempUsageDetail_20' ) end [2025-02-21 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:21:21] Production.INFO: ==22007== Releasing lock... [2025-02-21 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:22:05 [end_date_ymd] => 2025-02-21 03:22:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:22:05' and `end` < '2025-02-21 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-21 03:22:17] Production.INFO: count ==186 [2025-02-21 03:22:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:22:05 - End Time 2025-02-21 03:22:05 [2025-02-21 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522290', 'tblTempUsageDetail_20' ) start [2025-02-21 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522290', 'tblTempUsageDetail_20' ) end [2025-02-21 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522290', 'tblTempVendorCDR_20' ) start [2025-02-21 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522290', 'tblTempVendorCDR_20' ) end [2025-02-21 03:22:17] Production.INFO: ProcessCDR(1,14522290,1,1,2) [2025-02-21 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522290', 'tblTempUsageDetail_20' ) start [2025-02-21 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522290', 'tblTempUsageDetail_20' ) end [2025-02-21 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:22:20] Production.INFO: ==22083== Releasing lock... [2025-02-21 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:23:04 [end_date_ymd] => 2025-02-21 03:23:04 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:23:04' and `end` < '2025-02-21 03: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-21 03:23:16] Production.INFO: count ==186 [2025-02-21 03:23:16] Production.ERROR: pbx CDR StartTime 2025-02-21 00:23:04 - End Time 2025-02-21 03:23:04 [2025-02-21 03:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522295', 'tblTempUsageDetail_20' ) start [2025-02-21 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522295', 'tblTempUsageDetail_20' ) end [2025-02-21 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522295', 'tblTempVendorCDR_20' ) start [2025-02-21 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522295', 'tblTempVendorCDR_20' ) end [2025-02-21 03:23:16] Production.INFO: ProcessCDR(1,14522295,1,1,2) [2025-02-21 03:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522295', 'tblTempUsageDetail_20' ) start [2025-02-21 03:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522295', 'tblTempUsageDetail_20' ) end [2025-02-21 03:23:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:23:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:23:19] Production.INFO: ==22156== Releasing lock... [2025-02-21 03:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:23:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:24:06 [end_date_ymd] => 2025-02-21 03:24:06 [RateCDR] => 1 ) [2025-02-21 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:24:06' and `end` < '2025-02-21 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:24:17] Production.INFO: count ==186 [2025-02-21 03:24:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:24:06 - End Time 2025-02-21 03:24:06 [2025-02-21 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522300', 'tblTempUsageDetail_20' ) start [2025-02-21 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522300', 'tblTempUsageDetail_20' ) end [2025-02-21 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522300', 'tblTempVendorCDR_20' ) start [2025-02-21 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522300', 'tblTempVendorCDR_20' ) end [2025-02-21 03:24:18] Production.INFO: ProcessCDR(1,14522300,1,1,2) [2025-02-21 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522300', 'tblTempUsageDetail_20' ) start [2025-02-21 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522300', 'tblTempUsageDetail_20' ) end [2025-02-21 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:24:21] Production.INFO: ==22233== Releasing lock... [2025-02-21 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:25:05 [end_date_ymd] => 2025-02-21 03:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:25:05' and `end` < '2025-02-21 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-21 03:25:16] Production.INFO: count ==186 [2025-02-21 03:25:16] Production.ERROR: pbx CDR StartTime 2025-02-21 00:25:05 - End Time 2025-02-21 03:25:05 [2025-02-21 03:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522305', 'tblTempUsageDetail_20' ) start [2025-02-21 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522305', 'tblTempUsageDetail_20' ) end [2025-02-21 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522305', 'tblTempVendorCDR_20' ) start [2025-02-21 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522305', 'tblTempVendorCDR_20' ) end [2025-02-21 03:25:16] Production.INFO: ProcessCDR(1,14522305,1,1,2) [2025-02-21 03:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522305', 'tblTempUsageDetail_20' ) start [2025-02-21 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522305', 'tblTempUsageDetail_20' ) end [2025-02-21 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:25:20] Production.INFO: ==22304== Releasing lock... [2025-02-21 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:26:05 [end_date_ymd] => 2025-02-21 03:26:05 [RateCDR] => 1 ) [2025-02-21 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:26:05' and `end` < '2025-02-21 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:26:17] Production.INFO: count ==185 [2025-02-21 03:26:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:26:05 - End Time 2025-02-21 03:26:05 [2025-02-21 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522310', 'tblTempUsageDetail_20' ) start [2025-02-21 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522310', 'tblTempUsageDetail_20' ) end [2025-02-21 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522310', 'tblTempVendorCDR_20' ) start [2025-02-21 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522310', 'tblTempVendorCDR_20' ) end [2025-02-21 03:26:17] Production.INFO: ProcessCDR(1,14522310,1,1,2) [2025-02-21 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522310', 'tblTempUsageDetail_20' ) start [2025-02-21 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522310', 'tblTempUsageDetail_20' ) end [2025-02-21 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:26:20] Production.INFO: ==22387== Releasing lock... [2025-02-21 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:26:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:27:05 [end_date_ymd] => 2025-02-21 03:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:27:05' and `end` < '2025-02-21 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-21 03:27:16] Production.INFO: count ==185 [2025-02-21 03:27:16] Production.ERROR: pbx CDR StartTime 2025-02-21 00:27:05 - End Time 2025-02-21 03:27:05 [2025-02-21 03:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522315', 'tblTempUsageDetail_20' ) start [2025-02-21 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522315', 'tblTempUsageDetail_20' ) end [2025-02-21 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522315', 'tblTempVendorCDR_20' ) start [2025-02-21 03:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522315', 'tblTempVendorCDR_20' ) end [2025-02-21 03:27:16] Production.INFO: ProcessCDR(1,14522315,1,1,2) [2025-02-21 03:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522315', 'tblTempUsageDetail_20' ) start [2025-02-21 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522315', 'tblTempUsageDetail_20' ) end [2025-02-21 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:27:20] Production.INFO: ==22457== Releasing lock... [2025-02-21 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:27:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:28:05 [end_date_ymd] => 2025-02-21 03:28:05 [RateCDR] => 1 ) [2025-02-21 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:28:05' and `end` < '2025-02-21 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:28:17] Production.INFO: count ==179 [2025-02-21 03:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:28:05 - End Time 2025-02-21 03:28:05 [2025-02-21 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522320', 'tblTempUsageDetail_20' ) start [2025-02-21 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522320', 'tblTempUsageDetail_20' ) end [2025-02-21 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522320', 'tblTempVendorCDR_20' ) start [2025-02-21 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522320', 'tblTempVendorCDR_20' ) end [2025-02-21 03:28:17] Production.INFO: ProcessCDR(1,14522320,1,1,2) [2025-02-21 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522320', 'tblTempUsageDetail_20' ) start [2025-02-21 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522320', 'tblTempUsageDetail_20' ) end [2025-02-21 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:28:20] Production.INFO: ==22567== Releasing lock... [2025-02-21 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:28:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:29:05 [end_date_ymd] => 2025-02-21 03:29:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:29:05' and `end` < '2025-02-21 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-21 03:29:17] Production.INFO: count ==179 [2025-02-21 03:29:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:29:05 - End Time 2025-02-21 03:29:05 [2025-02-21 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522325', 'tblTempUsageDetail_20' ) start [2025-02-21 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522325', 'tblTempUsageDetail_20' ) end [2025-02-21 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522325', 'tblTempVendorCDR_20' ) start [2025-02-21 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522325', 'tblTempVendorCDR_20' ) end [2025-02-21 03:29:17] Production.INFO: ProcessCDR(1,14522325,1,1,2) [2025-02-21 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522325', 'tblTempUsageDetail_20' ) start [2025-02-21 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522325', 'tblTempUsageDetail_20' ) end [2025-02-21 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:29:20] Production.INFO: ==22647== Releasing lock... [2025-02-21 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:30:06 [end_date_ymd] => 2025-02-21 03:30:06 [RateCDR] => 1 ) [2025-02-21 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:30:06' and `end` < '2025-02-21 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:30:18] Production.INFO: count ==166 [2025-02-21 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:30:06 - End Time 2025-02-21 03:30:06 [2025-02-21 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522331', 'tblTempUsageDetail_20' ) start [2025-02-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522331', 'tblTempUsageDetail_20' ) end [2025-02-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522331', 'tblTempVendorCDR_20' ) start [2025-02-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522331', 'tblTempVendorCDR_20' ) end [2025-02-21 03:30:18] Production.INFO: ProcessCDR(1,14522331,1,1,2) [2025-02-21 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522331', 'tblTempUsageDetail_20' ) start [2025-02-21 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522331', 'tblTempUsageDetail_20' ) end [2025-02-21 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:30:22] Production.INFO: ==22720== Releasing lock... [2025-02-21 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:31:06 [end_date_ymd] => 2025-02-21 03:31:06 [RateCDR] => 1 ) [2025-02-21 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-21 00:31:06' and `end` < '2025-02-21 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-21 03:31:17] Production.INFO: count ==158 [2025-02-21 03:31:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:31:06 - End Time 2025-02-21 03:31:06 [2025-02-21 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522336', 'tblTempUsageDetail_20' ) start [2025-02-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522336', 'tblTempUsageDetail_20' ) end [2025-02-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522336', 'tblTempVendorCDR_20' ) start [2025-02-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522336', 'tblTempVendorCDR_20' ) end [2025-02-21 03:31:18] Production.INFO: ProcessCDR(1,14522336,1,1,2) [2025-02-21 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522336', 'tblTempUsageDetail_20' ) start [2025-02-21 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522336', 'tblTempUsageDetail_20' ) end [2025-02-21 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:31:21] Production.INFO: ==22801== Releasing lock... [2025-02-21 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:31:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:32:05 [end_date_ymd] => 2025-02-21 03:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:32:05' and `end` < '2025-02-21 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-21 03:32:17] Production.INFO: count ==156 [2025-02-21 03:32:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:32:05 - End Time 2025-02-21 03:32:05 [2025-02-21 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522341', 'tblTempUsageDetail_20' ) start [2025-02-21 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522341', 'tblTempUsageDetail_20' ) end [2025-02-21 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522341', 'tblTempVendorCDR_20' ) start [2025-02-21 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522341', 'tblTempVendorCDR_20' ) end [2025-02-21 03:32:17] Production.INFO: ProcessCDR(1,14522341,1,1,2) [2025-02-21 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522341', 'tblTempUsageDetail_20' ) start [2025-02-21 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522341', 'tblTempUsageDetail_20' ) end [2025-02-21 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:32:21] Production.INFO: ==22871== Releasing lock... [2025-02-21 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:33:06 [end_date_ymd] => 2025-02-21 03:33:06 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:33:06' and `end` < '2025-02-21 03: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-21 03:33:18] Production.INFO: count ==154 [2025-02-21 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:33:06 - End Time 2025-02-21 03:33:06 [2025-02-21 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522346', 'tblTempUsageDetail_20' ) start [2025-02-21 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522346', 'tblTempUsageDetail_20' ) end [2025-02-21 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522346', 'tblTempVendorCDR_20' ) start [2025-02-21 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522346', 'tblTempVendorCDR_20' ) end [2025-02-21 03:33:18] Production.INFO: ProcessCDR(1,14522346,1,1,2) [2025-02-21 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522346', 'tblTempUsageDetail_20' ) start [2025-02-21 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522346', 'tblTempUsageDetail_20' ) end [2025-02-21 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:33:21] Production.INFO: ==22941== Releasing lock... [2025-02-21 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:34:05 [end_date_ymd] => 2025-02-21 03:34:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:34:05' and `end` < '2025-02-21 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-21 03:34:17] Production.INFO: count ==154 [2025-02-21 03:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:34:05 - End Time 2025-02-21 03:34:05 [2025-02-21 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522351', 'tblTempUsageDetail_20' ) start [2025-02-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522351', 'tblTempUsageDetail_20' ) end [2025-02-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522351', 'tblTempVendorCDR_20' ) start [2025-02-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522351', 'tblTempVendorCDR_20' ) end [2025-02-21 03:34:17] Production.INFO: ProcessCDR(1,14522351,1,1,2) [2025-02-21 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522351', 'tblTempUsageDetail_20' ) start [2025-02-21 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522351', 'tblTempUsageDetail_20' ) end [2025-02-21 03:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:34:20] Production.INFO: ==23014== Releasing lock... [2025-02-21 03:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:34:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:35:06 [end_date_ymd] => 2025-02-21 03:35:06 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:35:06' and `end` < '2025-02-21 03: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-21 03:35:18] Production.INFO: count ==154 [2025-02-21 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:35:06 - End Time 2025-02-21 03:35:06 [2025-02-21 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522356', 'tblTempUsageDetail_20' ) start [2025-02-21 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522356', 'tblTempUsageDetail_20' ) end [2025-02-21 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522356', 'tblTempVendorCDR_20' ) start [2025-02-21 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522356', 'tblTempVendorCDR_20' ) end [2025-02-21 03:35:18] Production.INFO: ProcessCDR(1,14522356,1,1,2) [2025-02-21 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522356', 'tblTempUsageDetail_20' ) start [2025-02-21 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522356', 'tblTempUsageDetail_20' ) end [2025-02-21 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:35:21] Production.INFO: ==23085== Releasing lock... [2025-02-21 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:36:05 [end_date_ymd] => 2025-02-21 03:36:05 [RateCDR] => 1 ) [2025-02-21 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:36:05' and `end` < '2025-02-21 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-21 03:36:17] Production.INFO: count ==153 [2025-02-21 03:36:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:36:05 - End Time 2025-02-21 03:36:05 [2025-02-21 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522361', 'tblTempUsageDetail_20' ) start [2025-02-21 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522361', 'tblTempUsageDetail_20' ) end [2025-02-21 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522361', 'tblTempVendorCDR_20' ) start [2025-02-21 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522361', 'tblTempVendorCDR_20' ) end [2025-02-21 03:36:17] Production.INFO: ProcessCDR(1,14522361,1,1,2) [2025-02-21 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522361', 'tblTempUsageDetail_20' ) start [2025-02-21 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522361', 'tblTempUsageDetail_20' ) end [2025-02-21 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:36:21] Production.INFO: ==23156== Releasing lock... [2025-02-21 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:37:05 [end_date_ymd] => 2025-02-21 03:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:37:05' and `end` < '2025-02-21 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-21 03:37:17] Production.INFO: count ==148 [2025-02-21 03:37:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:37:05 - End Time 2025-02-21 03:37:05 [2025-02-21 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522366', 'tblTempUsageDetail_20' ) start [2025-02-21 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522366', 'tblTempUsageDetail_20' ) end [2025-02-21 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522366', 'tblTempVendorCDR_20' ) start [2025-02-21 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522366', 'tblTempVendorCDR_20' ) end [2025-02-21 03:37:17] Production.INFO: ProcessCDR(1,14522366,1,1,2) [2025-02-21 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522366', 'tblTempUsageDetail_20' ) start [2025-02-21 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522366', 'tblTempUsageDetail_20' ) end [2025-02-21 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:37:21] Production.INFO: ==23228== Releasing lock... [2025-02-21 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:38:06 [end_date_ymd] => 2025-02-21 03:38:06 [RateCDR] => 1 ) [2025-02-21 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:38:06' and `end` < '2025-02-21 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:38:17] Production.INFO: count ==147 [2025-02-21 03:38:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:38:06 - End Time 2025-02-21 03:38:06 [2025-02-21 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522371', 'tblTempUsageDetail_20' ) start [2025-02-21 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522371', 'tblTempUsageDetail_20' ) end [2025-02-21 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522371', 'tblTempVendorCDR_20' ) start [2025-02-21 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522371', 'tblTempVendorCDR_20' ) end [2025-02-21 03:38:17] Production.INFO: ProcessCDR(1,14522371,1,1,2) [2025-02-21 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522371', 'tblTempUsageDetail_20' ) start [2025-02-21 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522371', 'tblTempUsageDetail_20' ) end [2025-02-21 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:38:21] Production.INFO: ==23302== Releasing lock... [2025-02-21 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:39:05 [end_date_ymd] => 2025-02-21 03:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:39:05' and `end` < '2025-02-21 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-21 03:39:17] Production.INFO: count ==145 [2025-02-21 03:39:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:39:05 - End Time 2025-02-21 03:39:05 [2025-02-21 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522376', 'tblTempUsageDetail_20' ) start [2025-02-21 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522376', 'tblTempUsageDetail_20' ) end [2025-02-21 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522376', 'tblTempVendorCDR_20' ) start [2025-02-21 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522376', 'tblTempVendorCDR_20' ) end [2025-02-21 03:39:17] Production.INFO: ProcessCDR(1,14522376,1,1,2) [2025-02-21 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522376', 'tblTempUsageDetail_20' ) start [2025-02-21 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522376', 'tblTempUsageDetail_20' ) end [2025-02-21 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:39:21] Production.INFO: ==23375== Releasing lock... [2025-02-21 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:39:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:40:06 [end_date_ymd] => 2025-02-21 03:40:06 [RateCDR] => 1 ) [2025-02-21 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:40:06' and `end` < '2025-02-21 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:40:18] Production.INFO: count ==143 [2025-02-21 03:40:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:40:06 - End Time 2025-02-21 03:40:06 [2025-02-21 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522382', 'tblTempUsageDetail_20' ) start [2025-02-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522382', 'tblTempUsageDetail_20' ) end [2025-02-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522382', 'tblTempVendorCDR_20' ) start [2025-02-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522382', 'tblTempVendorCDR_20' ) end [2025-02-21 03:40:18] Production.INFO: ProcessCDR(1,14522382,1,1,2) [2025-02-21 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522382', 'tblTempUsageDetail_20' ) start [2025-02-21 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522382', 'tblTempUsageDetail_20' ) end [2025-02-21 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:40:22] Production.INFO: ==23450== Releasing lock... [2025-02-21 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:40:22] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:41:05 [end_date_ymd] => 2025-02-21 03:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:41:05' and `end` < '2025-02-21 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-21 03:41:17] Production.INFO: count ==143 [2025-02-21 03:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:41:05 - End Time 2025-02-21 03:41:05 [2025-02-21 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522387', 'tblTempUsageDetail_20' ) start [2025-02-21 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522387', 'tblTempUsageDetail_20' ) end [2025-02-21 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522387', 'tblTempVendorCDR_20' ) start [2025-02-21 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522387', 'tblTempVendorCDR_20' ) end [2025-02-21 03:41:17] Production.INFO: ProcessCDR(1,14522387,1,1,2) [2025-02-21 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522387', 'tblTempUsageDetail_20' ) start [2025-02-21 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522387', 'tblTempUsageDetail_20' ) end [2025-02-21 03:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:41:20] Production.INFO: ==23524== Releasing lock... [2025-02-21 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:41:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:42:06 [end_date_ymd] => 2025-02-21 03:42:06 [RateCDR] => 1 ) [2025-02-21 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-21 00:42:06' and `end` < '2025-02-21 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-21 03:42:18] Production.INFO: count ==143 [2025-02-21 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:42:06 - End Time 2025-02-21 03:42:06 [2025-02-21 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522392', 'tblTempUsageDetail_20' ) start [2025-02-21 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522392', 'tblTempUsageDetail_20' ) end [2025-02-21 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522392', 'tblTempVendorCDR_20' ) start [2025-02-21 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522392', 'tblTempVendorCDR_20' ) end [2025-02-21 03:42:18] Production.INFO: ProcessCDR(1,14522392,1,1,2) [2025-02-21 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522392', 'tblTempUsageDetail_20' ) start [2025-02-21 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522392', 'tblTempUsageDetail_20' ) end [2025-02-21 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:42:21] Production.INFO: ==23597== Releasing lock... [2025-02-21 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:42:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:43:05 [end_date_ymd] => 2025-02-21 03:43:05 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:43:05' and `end` < '2025-02-21 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-21 03:43:17] Production.INFO: count ==143 [2025-02-21 03:43:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:43:05 - End Time 2025-02-21 03:43:05 [2025-02-21 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522397', 'tblTempUsageDetail_20' ) start [2025-02-21 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522397', 'tblTempUsageDetail_20' ) end [2025-02-21 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522397', 'tblTempVendorCDR_20' ) start [2025-02-21 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522397', 'tblTempVendorCDR_20' ) end [2025-02-21 03:43:17] Production.INFO: ProcessCDR(1,14522397,1,1,2) [2025-02-21 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522397', 'tblTempUsageDetail_20' ) start [2025-02-21 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522397', 'tblTempUsageDetail_20' ) end [2025-02-21 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:43:21] Production.INFO: ==23668== Releasing lock... [2025-02-21 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:43:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:44:06 [end_date_ymd] => 2025-02-21 03:44:06 [RateCDR] => 1 ) [2025-02-21 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-21 00:44:06' and `end` < '2025-02-21 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-21 03:44:17] Production.INFO: count ==143 [2025-02-21 03:44:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:44:06 - End Time 2025-02-21 03:44:06 [2025-02-21 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522402', 'tblTempUsageDetail_20' ) start [2025-02-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522402', 'tblTempUsageDetail_20' ) end [2025-02-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522402', 'tblTempVendorCDR_20' ) start [2025-02-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522402', 'tblTempVendorCDR_20' ) end [2025-02-21 03:44:17] Production.INFO: ProcessCDR(1,14522402,1,1,2) [2025-02-21 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522402', 'tblTempUsageDetail_20' ) start [2025-02-21 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522402', 'tblTempUsageDetail_20' ) end [2025-02-21 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:44:21] Production.INFO: ==23783== Releasing lock... [2025-02-21 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:44:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:45:05 [end_date_ymd] => 2025-02-21 03:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:45:05' and `end` < '2025-02-21 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-21 03:45:17] Production.INFO: count ==143 [2025-02-21 03:45:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:45:05 - End Time 2025-02-21 03:45:05 [2025-02-21 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522404', 'tblTempUsageDetail_20' ) start [2025-02-21 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522404', 'tblTempUsageDetail_20' ) end [2025-02-21 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522404', 'tblTempVendorCDR_20' ) start [2025-02-21 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522404', 'tblTempVendorCDR_20' ) end [2025-02-21 03:45:17] Production.INFO: ProcessCDR(1,14522404,1,1,2) [2025-02-21 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522404', 'tblTempUsageDetail_20' ) start [2025-02-21 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522404', 'tblTempUsageDetail_20' ) end [2025-02-21 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:45:20] Production.INFO: ==23853== Releasing lock... [2025-02-21 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:45:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:46:06 [end_date_ymd] => 2025-02-21 03:46:06 [RateCDR] => 1 ) [2025-02-21 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-21 00:46:06' and `end` < '2025-02-21 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-21 03:46:18] Production.INFO: count ==143 [2025-02-21 03:46:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:46:06 - End Time 2025-02-21 03:46:06 [2025-02-21 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522412', 'tblTempUsageDetail_20' ) start [2025-02-21 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522412', 'tblTempUsageDetail_20' ) end [2025-02-21 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522412', 'tblTempVendorCDR_20' ) start [2025-02-21 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522412', 'tblTempVendorCDR_20' ) end [2025-02-21 03:46:18] Production.INFO: ProcessCDR(1,14522412,1,1,2) [2025-02-21 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522412', 'tblTempUsageDetail_20' ) start [2025-02-21 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522412', 'tblTempUsageDetail_20' ) end [2025-02-21 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:46:21] Production.INFO: ==23925== Releasing lock... [2025-02-21 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:46:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:47:06 [end_date_ymd] => 2025-02-21 03:47:06 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:47:06' and `end` < '2025-02-21 03: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-21 03:47:17] Production.INFO: count ==142 [2025-02-21 03:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:47:06 - End Time 2025-02-21 03:47:06 [2025-02-21 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522417', 'tblTempUsageDetail_20' ) start [2025-02-21 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522417', 'tblTempUsageDetail_20' ) end [2025-02-21 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522417', 'tblTempVendorCDR_20' ) start [2025-02-21 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522417', 'tblTempVendorCDR_20' ) end [2025-02-21 03:47:17] Production.INFO: ProcessCDR(1,14522417,1,1,2) [2025-02-21 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522417', 'tblTempUsageDetail_20' ) start [2025-02-21 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522417', 'tblTempUsageDetail_20' ) end [2025-02-21 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:47:21] Production.INFO: ==23995== Releasing lock... [2025-02-21 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:47:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:48:06 [end_date_ymd] => 2025-02-21 03:48:06 [RateCDR] => 1 ) [2025-02-21 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:48:06' and `end` < '2025-02-21 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:48:17] Production.INFO: count ==146 [2025-02-21 03:48:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:48:06 - End Time 2025-02-21 03:48:06 [2025-02-21 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522422', 'tblTempUsageDetail_20' ) start [2025-02-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522422', 'tblTempUsageDetail_20' ) end [2025-02-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522422', 'tblTempVendorCDR_20' ) start [2025-02-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522422', 'tblTempVendorCDR_20' ) end [2025-02-21 03:48:18] Production.INFO: ProcessCDR(1,14522422,1,1,2) [2025-02-21 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522422', 'tblTempUsageDetail_20' ) start [2025-02-21 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522422', 'tblTempUsageDetail_20' ) end [2025-02-21 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:48:21] Production.INFO: ==24070== Releasing lock... [2025-02-21 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:49:06 [end_date_ymd] => 2025-02-21 03:49:06 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:49:06' and `end` < '2025-02-21 03: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-21 03:49:17] Production.INFO: count ==146 [2025-02-21 03:49:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:49:06 - End Time 2025-02-21 03:49:06 [2025-02-21 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522427', 'tblTempUsageDetail_20' ) start [2025-02-21 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522427', 'tblTempUsageDetail_20' ) end [2025-02-21 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522427', 'tblTempVendorCDR_20' ) start [2025-02-21 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522427', 'tblTempVendorCDR_20' ) end [2025-02-21 03:49:17] Production.INFO: ProcessCDR(1,14522427,1,1,2) [2025-02-21 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522427', 'tblTempUsageDetail_20' ) start [2025-02-21 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522427', 'tblTempUsageDetail_20' ) end [2025-02-21 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:49:21] Production.INFO: ==24146== Releasing lock... [2025-02-21 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:50:07 [end_date_ymd] => 2025-02-21 03:50:07 [RateCDR] => 1 ) [2025-02-21 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:50:07' and `end` < '2025-02-21 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:50:19] Production.INFO: count ==145 [2025-02-21 03:50:19] Production.ERROR: pbx CDR StartTime 2025-02-21 00:50:07 - End Time 2025-02-21 03:50:07 [2025-02-21 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522433', 'tblTempUsageDetail_20' ) start [2025-02-21 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522433', 'tblTempUsageDetail_20' ) end [2025-02-21 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522433', 'tblTempVendorCDR_20' ) start [2025-02-21 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522433', 'tblTempVendorCDR_20' ) end [2025-02-21 03:50:19] Production.INFO: ProcessCDR(1,14522433,1,1,2) [2025-02-21 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522433', 'tblTempUsageDetail_20' ) start [2025-02-21 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522433', 'tblTempUsageDetail_20' ) end [2025-02-21 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:50:22] Production.INFO: ==24218== Releasing lock... [2025-02-21 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:50:22] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:51:05 [end_date_ymd] => 2025-02-21 03:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:51:05' and `end` < '2025-02-21 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-21 03:51:17] Production.INFO: count ==145 [2025-02-21 03:51:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:51:05 - End Time 2025-02-21 03:51:05 [2025-02-21 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522438', 'tblTempUsageDetail_20' ) start [2025-02-21 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522438', 'tblTempUsageDetail_20' ) end [2025-02-21 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522438', 'tblTempVendorCDR_20' ) start [2025-02-21 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522438', 'tblTempVendorCDR_20' ) end [2025-02-21 03:51:17] Production.INFO: ProcessCDR(1,14522438,1,1,2) [2025-02-21 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522438', 'tblTempUsageDetail_20' ) start [2025-02-21 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522438', 'tblTempUsageDetail_20' ) end [2025-02-21 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:51:21] Production.INFO: ==24291== Releasing lock... [2025-02-21 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:51:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:52:06 [end_date_ymd] => 2025-02-21 03:52:06 [RateCDR] => 1 ) [2025-02-21 03: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-21 00:52:06' and `end` < '2025-02-21 03: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-21 03:52:18] Production.INFO: count ==145 [2025-02-21 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:52:06 - End Time 2025-02-21 03:52:06 [2025-02-21 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522443', 'tblTempUsageDetail_20' ) start [2025-02-21 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522443', 'tblTempUsageDetail_20' ) end [2025-02-21 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522443', 'tblTempVendorCDR_20' ) start [2025-02-21 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522443', 'tblTempVendorCDR_20' ) end [2025-02-21 03:52:18] Production.INFO: ProcessCDR(1,14522443,1,1,2) [2025-02-21 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522443', 'tblTempUsageDetail_20' ) start [2025-02-21 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522443', 'tblTempUsageDetail_20' ) end [2025-02-21 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:52:21] Production.INFO: ==24362== Releasing lock... [2025-02-21 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:52:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:53:05 [end_date_ymd] => 2025-02-21 03:53:05 [RateCDR] => 1 ) [2025-02-21 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:53:05' and `end` < '2025-02-21 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:53:17] Production.INFO: count ==145 [2025-02-21 03:53:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:53:05 - End Time 2025-02-21 03:53:05 [2025-02-21 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522448', 'tblTempUsageDetail_20' ) start [2025-02-21 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522448', 'tblTempUsageDetail_20' ) end [2025-02-21 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522448', 'tblTempVendorCDR_20' ) start [2025-02-21 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522448', 'tblTempVendorCDR_20' ) end [2025-02-21 03:53:17] Production.INFO: ProcessCDR(1,14522448,1,1,2) [2025-02-21 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522448', 'tblTempUsageDetail_20' ) start [2025-02-21 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522448', 'tblTempUsageDetail_20' ) end [2025-02-21 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:53:21] Production.INFO: ==24431== Releasing lock... [2025-02-21 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:53:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:54:06 [end_date_ymd] => 2025-02-21 03:54:06 [RateCDR] => 1 ) [2025-02-21 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:54:06' and `end` < '2025-02-21 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:54:18] Production.INFO: count ==143 [2025-02-21 03:54:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:54:06 - End Time 2025-02-21 03:54:06 [2025-02-21 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522453', 'tblTempUsageDetail_20' ) start [2025-02-21 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522453', 'tblTempUsageDetail_20' ) end [2025-02-21 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522453', 'tblTempVendorCDR_20' ) start [2025-02-21 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522453', 'tblTempVendorCDR_20' ) end [2025-02-21 03:54:18] Production.INFO: ProcessCDR(1,14522453,1,1,2) [2025-02-21 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522453', 'tblTempUsageDetail_20' ) start [2025-02-21 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522453', 'tblTempUsageDetail_20' ) end [2025-02-21 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:54:21] Production.INFO: ==24506== Releasing lock... [2025-02-21 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:54:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:55:05 [end_date_ymd] => 2025-02-21 03:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:55:05' and `end` < '2025-02-21 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-21 03:55:17] Production.INFO: count ==141 [2025-02-21 03:55:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:55:05 - End Time 2025-02-21 03:55:05 [2025-02-21 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522458', 'tblTempUsageDetail_20' ) start [2025-02-21 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522458', 'tblTempUsageDetail_20' ) end [2025-02-21 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522458', 'tblTempVendorCDR_20' ) start [2025-02-21 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522458', 'tblTempVendorCDR_20' ) end [2025-02-21 03:55:17] Production.INFO: ProcessCDR(1,14522458,1,1,2) [2025-02-21 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522458', 'tblTempUsageDetail_20' ) start [2025-02-21 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522458', 'tblTempUsageDetail_20' ) end [2025-02-21 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:55:21] Production.INFO: ==24580== Releasing lock... [2025-02-21 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:55:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:56:06 [end_date_ymd] => 2025-02-21 03:56:06 [RateCDR] => 1 ) [2025-02-21 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:56:06' and `end` < '2025-02-21 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:56:17] Production.INFO: count ==142 [2025-02-21 03:56:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:56:06 - End Time 2025-02-21 03:56:06 [2025-02-21 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522463', 'tblTempUsageDetail_20' ) start [2025-02-21 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522463', 'tblTempUsageDetail_20' ) end [2025-02-21 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522463', 'tblTempVendorCDR_20' ) start [2025-02-21 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522463', 'tblTempVendorCDR_20' ) end [2025-02-21 03:56:17] Production.INFO: ProcessCDR(1,14522463,1,1,2) [2025-02-21 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522463', 'tblTempUsageDetail_20' ) start [2025-02-21 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522463', 'tblTempUsageDetail_20' ) end [2025-02-21 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:56:21] Production.INFO: ==24653== Releasing lock... [2025-02-21 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:56:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:57:05 [end_date_ymd] => 2025-02-21 03:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 00:57:05' and `end` < '2025-02-21 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-21 03:57:17] Production.INFO: count ==137 [2025-02-21 03:57:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:57:05 - End Time 2025-02-21 03:57:05 [2025-02-21 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522468', 'tblTempUsageDetail_20' ) start [2025-02-21 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522468', 'tblTempUsageDetail_20' ) end [2025-02-21 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522468', 'tblTempVendorCDR_20' ) start [2025-02-21 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522468', 'tblTempVendorCDR_20' ) end [2025-02-21 03:57:17] Production.INFO: ProcessCDR(1,14522468,1,1,2) [2025-02-21 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522468', 'tblTempUsageDetail_20' ) start [2025-02-21 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522468', 'tblTempUsageDetail_20' ) end [2025-02-21 03:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:57:20] Production.INFO: ==24724== Releasing lock... [2025-02-21 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:57:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:58:06 [end_date_ymd] => 2025-02-21 03:58:06 [RateCDR] => 1 ) [2025-02-21 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:58:06' and `end` < '2025-02-21 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:58:18] Production.INFO: count ==137 [2025-02-21 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-21 00:58:06 - End Time 2025-02-21 03:58:06 [2025-02-21 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522473', 'tblTempUsageDetail_20' ) start [2025-02-21 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522473', 'tblTempUsageDetail_20' ) end [2025-02-21 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522473', 'tblTempVendorCDR_20' ) start [2025-02-21 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522473', 'tblTempVendorCDR_20' ) end [2025-02-21 03:58:18] Production.INFO: ProcessCDR(1,14522473,1,1,2) [2025-02-21 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522473', 'tblTempUsageDetail_20' ) start [2025-02-21 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522473', 'tblTempUsageDetail_20' ) end [2025-02-21 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:58:21] Production.INFO: ==24802== Releasing lock... [2025-02-21 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:58:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 00:59:05 [end_date_ymd] => 2025-02-21 03:59:05 [RateCDR] => 1 ) [2025-02-21 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 00:59:05' and `end` < '2025-02-21 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 03:59:17] Production.INFO: count ==137 [2025-02-21 03:59:17] Production.ERROR: pbx CDR StartTime 2025-02-21 00:59:05 - End Time 2025-02-21 03:59:05 [2025-02-21 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522478', 'tblTempUsageDetail_20' ) start [2025-02-21 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522478', 'tblTempUsageDetail_20' ) end [2025-02-21 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522478', 'tblTempVendorCDR_20' ) start [2025-02-21 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522478', 'tblTempVendorCDR_20' ) end [2025-02-21 03:59:17] Production.INFO: ProcessCDR(1,14522478,1,1,2) [2025-02-21 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522478', 'tblTempUsageDetail_20' ) start [2025-02-21 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522478', 'tblTempUsageDetail_20' ) end [2025-02-21 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 03:59:21] Production.INFO: ==24912== Releasing lock... [2025-02-21 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 03:59:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:00:07 [end_date_ymd] => 2025-02-21 04:00:07 [RateCDR] => 1 ) [2025-02-21 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:00:07' and `end` < '2025-02-21 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:00:19] Production.INFO: count ==137 [2025-02-21 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-21 01:00:07 - End Time 2025-02-21 04:00:07 [2025-02-21 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522485', 'tblTempUsageDetail_20' ) start [2025-02-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522485', 'tblTempUsageDetail_20' ) end [2025-02-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522485', 'tblTempVendorCDR_20' ) start [2025-02-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522485', 'tblTempVendorCDR_20' ) end [2025-02-21 04:00:19] Production.INFO: ProcessCDR(1,14522485,1,1,2) [2025-02-21 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522485', 'tblTempUsageDetail_20' ) start [2025-02-21 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522485', 'tblTempUsageDetail_20' ) end [2025-02-21 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:00:24] Production.INFO: ==24988== Releasing lock... [2025-02-21 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:00:24] Production.INFO: 29 MB #Memory Used# [2025-02-21 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:01:06 [end_date_ymd] => 2025-02-21 04:01:06 [RateCDR] => 1 ) [2025-02-21 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-21 01:01:06' and `end` < '2025-02-21 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-21 04:01:17] Production.INFO: count ==137 [2025-02-21 04:01:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:01:06 - End Time 2025-02-21 04:01:06 [2025-02-21 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522490', 'tblTempUsageDetail_20' ) start [2025-02-21 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522490', 'tblTempUsageDetail_20' ) end [2025-02-21 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522490', 'tblTempVendorCDR_20' ) start [2025-02-21 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522490', 'tblTempVendorCDR_20' ) end [2025-02-21 04:01:18] Production.INFO: ProcessCDR(1,14522490,1,1,2) [2025-02-21 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522490', 'tblTempUsageDetail_20' ) start [2025-02-21 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522490', 'tblTempUsageDetail_20' ) end [2025-02-21 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:01:21] Production.INFO: ==25072== Releasing lock... [2025-02-21 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:01:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:02:05 [end_date_ymd] => 2025-02-21 04:02:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:02:05' and `end` < '2025-02-21 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-21 04:02:17] Production.INFO: count ==137 [2025-02-21 04:02:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:02:05 - End Time 2025-02-21 04:02:05 [2025-02-21 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522495', 'tblTempUsageDetail_20' ) start [2025-02-21 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522495', 'tblTempUsageDetail_20' ) end [2025-02-21 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522495', 'tblTempVendorCDR_20' ) start [2025-02-21 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522495', 'tblTempVendorCDR_20' ) end [2025-02-21 04:02:17] Production.INFO: ProcessCDR(1,14522495,1,1,2) [2025-02-21 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522495', 'tblTempUsageDetail_20' ) start [2025-02-21 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522495', 'tblTempUsageDetail_20' ) end [2025-02-21 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:02:21] Production.INFO: ==25143== Releasing lock... [2025-02-21 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:02:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:03:06 [end_date_ymd] => 2025-02-21 04:03:06 [RateCDR] => 1 ) [2025-02-21 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:03:06' and `end` < '2025-02-21 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:03:17] Production.INFO: count ==135 [2025-02-21 04:03:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:03:06 - End Time 2025-02-21 04:03:06 [2025-02-21 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522500', 'tblTempUsageDetail_20' ) start [2025-02-21 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522500', 'tblTempUsageDetail_20' ) end [2025-02-21 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522500', 'tblTempVendorCDR_20' ) start [2025-02-21 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522500', 'tblTempVendorCDR_20' ) end [2025-02-21 04:03:17] Production.INFO: ProcessCDR(1,14522500,1,1,2) [2025-02-21 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522500', 'tblTempUsageDetail_20' ) start [2025-02-21 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522500', 'tblTempUsageDetail_20' ) end [2025-02-21 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:03:21] Production.INFO: ==25214== Releasing lock... [2025-02-21 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:04:05 [end_date_ymd] => 2025-02-21 04:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:04:05' and `end` < '2025-02-21 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-21 04:04:17] Production.INFO: count ==134 [2025-02-21 04:04:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:04:05 - End Time 2025-02-21 04:04:05 [2025-02-21 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522505', 'tblTempUsageDetail_20' ) start [2025-02-21 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522505', 'tblTempUsageDetail_20' ) end [2025-02-21 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522505', 'tblTempVendorCDR_20' ) start [2025-02-21 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522505', 'tblTempVendorCDR_20' ) end [2025-02-21 04:04:17] Production.INFO: ProcessCDR(1,14522505,1,1,2) [2025-02-21 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522505', 'tblTempUsageDetail_20' ) start [2025-02-21 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522505', 'tblTempUsageDetail_20' ) end [2025-02-21 04:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:04:20] Production.INFO: ==25288== Releasing lock... [2025-02-21 04:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:04:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:05:05 [end_date_ymd] => 2025-02-21 04:05:05 [RateCDR] => 1 ) [2025-02-21 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:05:05' and `end` < '2025-02-21 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-21 04:05:17] Production.INFO: count ==130 [2025-02-21 04:05:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:05:05 - End Time 2025-02-21 04:05:05 [2025-02-21 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522510', 'tblTempUsageDetail_20' ) start [2025-02-21 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522510', 'tblTempUsageDetail_20' ) end [2025-02-21 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522510', 'tblTempVendorCDR_20' ) start [2025-02-21 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522510', 'tblTempVendorCDR_20' ) end [2025-02-21 04:05:17] Production.INFO: ProcessCDR(1,14522510,1,1,2) [2025-02-21 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522510', 'tblTempUsageDetail_20' ) start [2025-02-21 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522510', 'tblTempUsageDetail_20' ) end [2025-02-21 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:05:21] Production.INFO: ==25358== Releasing lock... [2025-02-21 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:06:06 [end_date_ymd] => 2025-02-21 04:06:06 [RateCDR] => 1 ) [2025-02-21 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:06:06' and `end` < '2025-02-21 04:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:06:17] Production.INFO: count ==133 [2025-02-21 04:06:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:06:06 - End Time 2025-02-21 04:06:06 [2025-02-21 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522515', 'tblTempUsageDetail_20' ) start [2025-02-21 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522515', 'tblTempUsageDetail_20' ) end [2025-02-21 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522515', 'tblTempVendorCDR_20' ) start [2025-02-21 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522515', 'tblTempVendorCDR_20' ) end [2025-02-21 04:06:17] Production.INFO: ProcessCDR(1,14522515,1,1,2) [2025-02-21 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522515', 'tblTempUsageDetail_20' ) start [2025-02-21 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522515', 'tblTempUsageDetail_20' ) end [2025-02-21 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:06:21] Production.INFO: ==25428== Releasing lock... [2025-02-21 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:07:05 [end_date_ymd] => 2025-02-21 04:07:05 [RateCDR] => 1 ) [2025-02-21 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:07:05' and `end` < '2025-02-21 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:07:16] Production.INFO: count ==133 [2025-02-21 04:07:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:07:05 - End Time 2025-02-21 04:07:05 [2025-02-21 04:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522520', 'tblTempUsageDetail_20' ) start [2025-02-21 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522520', 'tblTempUsageDetail_20' ) end [2025-02-21 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522520', 'tblTempVendorCDR_20' ) start [2025-02-21 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522520', 'tblTempVendorCDR_20' ) end [2025-02-21 04:07:16] Production.INFO: ProcessCDR(1,14522520,1,1,2) [2025-02-21 04:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522520', 'tblTempUsageDetail_20' ) start [2025-02-21 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522520', 'tblTempUsageDetail_20' ) end [2025-02-21 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:07:20] Production.INFO: ==25499== Releasing lock... [2025-02-21 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:08:06 [end_date_ymd] => 2025-02-21 04:08:06 [RateCDR] => 1 ) [2025-02-21 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:08:06' and `end` < '2025-02-21 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:08:17] Production.INFO: count ==132 [2025-02-21 04:08:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:08:06 - End Time 2025-02-21 04:08:06 [2025-02-21 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522525', 'tblTempUsageDetail_20' ) start [2025-02-21 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522525', 'tblTempUsageDetail_20' ) end [2025-02-21 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522525', 'tblTempVendorCDR_20' ) start [2025-02-21 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522525', 'tblTempVendorCDR_20' ) end [2025-02-21 04:08:17] Production.INFO: ProcessCDR(1,14522525,1,1,2) [2025-02-21 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522525', 'tblTempUsageDetail_20' ) start [2025-02-21 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522525', 'tblTempUsageDetail_20' ) end [2025-02-21 04:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:08:20] Production.INFO: ==25579== Releasing lock... [2025-02-21 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:08:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:09:05 [end_date_ymd] => 2025-02-21 04:09:05 [RateCDR] => 1 ) [2025-02-21 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:09:05' and `end` < '2025-02-21 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:09:17] Production.INFO: count ==132 [2025-02-21 04:09:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:09:05 - End Time 2025-02-21 04:09:05 [2025-02-21 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522530', 'tblTempUsageDetail_20' ) start [2025-02-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522530', 'tblTempUsageDetail_20' ) end [2025-02-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522530', 'tblTempVendorCDR_20' ) start [2025-02-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522530', 'tblTempVendorCDR_20' ) end [2025-02-21 04:09:17] Production.INFO: ProcessCDR(1,14522530,1,1,2) [2025-02-21 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522530', 'tblTempUsageDetail_20' ) start [2025-02-21 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522530', 'tblTempUsageDetail_20' ) end [2025-02-21 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:09:20] Production.INFO: ==25654== Releasing lock... [2025-02-21 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:09:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:10:06 [end_date_ymd] => 2025-02-21 04:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 01:10:06' and `end` < '2025-02-21 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-21 04:10:18] Production.INFO: count ==122 [2025-02-21 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:10:06 - End Time 2025-02-21 04:10:06 [2025-02-21 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522534', 'tblTempUsageDetail_20' ) start [2025-02-21 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522534', 'tblTempUsageDetail_20' ) end [2025-02-21 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522534', 'tblTempVendorCDR_20' ) start [2025-02-21 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522534', 'tblTempVendorCDR_20' ) end [2025-02-21 04:10:18] Production.INFO: ProcessCDR(1,14522534,1,1,2) [2025-02-21 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522534', 'tblTempUsageDetail_20' ) start [2025-02-21 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522534', 'tblTempUsageDetail_20' ) end [2025-02-21 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:10:21] Production.INFO: ==25732== Releasing lock... [2025-02-21 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:11:05 [end_date_ymd] => 2025-02-21 04:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:11:05' and `end` < '2025-02-21 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-21 04:11:17] Production.INFO: count ==120 [2025-02-21 04:11:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:11:05 - End Time 2025-02-21 04:11:05 [2025-02-21 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522541', 'tblTempUsageDetail_20' ) start [2025-02-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522541', 'tblTempUsageDetail_20' ) end [2025-02-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522541', 'tblTempVendorCDR_20' ) start [2025-02-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522541', 'tblTempVendorCDR_20' ) end [2025-02-21 04:11:17] Production.INFO: ProcessCDR(1,14522541,1,1,2) [2025-02-21 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522541', 'tblTempUsageDetail_20' ) start [2025-02-21 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522541', 'tblTempUsageDetail_20' ) end [2025-02-21 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:11:20] Production.INFO: ==25807== Releasing lock... [2025-02-21 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:11:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:12:05 [end_date_ymd] => 2025-02-21 04:12:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:12:05' and `end` < '2025-02-21 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-21 04:12:17] Production.INFO: count ==120 [2025-02-21 04:12:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:12:05 - End Time 2025-02-21 04:12:05 [2025-02-21 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522546', 'tblTempUsageDetail_20' ) start [2025-02-21 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522546', 'tblTempUsageDetail_20' ) end [2025-02-21 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522546', 'tblTempVendorCDR_20' ) start [2025-02-21 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522546', 'tblTempVendorCDR_20' ) end [2025-02-21 04:12:17] Production.INFO: ProcessCDR(1,14522546,1,1,2) [2025-02-21 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522546', 'tblTempUsageDetail_20' ) start [2025-02-21 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522546', 'tblTempUsageDetail_20' ) end [2025-02-21 04:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:12:20] Production.INFO: ==25886== Releasing lock... [2025-02-21 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:13:05 [end_date_ymd] => 2025-02-21 04:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:13:05' and `end` < '2025-02-21 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-21 04:13:17] Production.INFO: count ==120 [2025-02-21 04:13:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:13:05 - End Time 2025-02-21 04:13:05 [2025-02-21 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522551', 'tblTempUsageDetail_20' ) start [2025-02-21 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522551', 'tblTempUsageDetail_20' ) end [2025-02-21 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522551', 'tblTempVendorCDR_20' ) start [2025-02-21 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522551', 'tblTempVendorCDR_20' ) end [2025-02-21 04:13:17] Production.INFO: ProcessCDR(1,14522551,1,1,2) [2025-02-21 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522551', 'tblTempUsageDetail_20' ) start [2025-02-21 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522551', 'tblTempUsageDetail_20' ) end [2025-02-21 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:13:20] Production.INFO: ==25959== Releasing lock... [2025-02-21 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:14:06 [end_date_ymd] => 2025-02-21 04:14:06 [RateCDR] => 1 ) [2025-02-21 04: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-21 01:14:06' and `end` < '2025-02-21 04: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-21 04:14:17] Production.INFO: count ==120 [2025-02-21 04:14:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:14:06 - End Time 2025-02-21 04:14:06 [2025-02-21 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522556', 'tblTempUsageDetail_20' ) start [2025-02-21 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522556', 'tblTempUsageDetail_20' ) end [2025-02-21 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522556', 'tblTempVendorCDR_20' ) start [2025-02-21 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522556', 'tblTempVendorCDR_20' ) end [2025-02-21 04:14:17] Production.INFO: ProcessCDR(1,14522556,1,1,2) [2025-02-21 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522556', 'tblTempUsageDetail_20' ) start [2025-02-21 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522556', 'tblTempUsageDetail_20' ) end [2025-02-21 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:14:20] Production.INFO: ==26070== Releasing lock... [2025-02-21 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:14:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:15:05 [end_date_ymd] => 2025-02-21 04:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:15:05' and `end` < '2025-02-21 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-21 04:15:16] Production.INFO: count ==120 [2025-02-21 04:15:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:15:05 - End Time 2025-02-21 04:15:05 [2025-02-21 04:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522561', 'tblTempUsageDetail_20' ) start [2025-02-21 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522561', 'tblTempUsageDetail_20' ) end [2025-02-21 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522561', 'tblTempVendorCDR_20' ) start [2025-02-21 04:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522561', 'tblTempVendorCDR_20' ) end [2025-02-21 04:15:16] Production.INFO: ProcessCDR(1,14522561,1,1,2) [2025-02-21 04:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522561', 'tblTempUsageDetail_20' ) start [2025-02-21 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522561', 'tblTempUsageDetail_20' ) end [2025-02-21 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:15:20] Production.INFO: ==26144== Releasing lock... [2025-02-21 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:15:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:16:06 [end_date_ymd] => 2025-02-21 04:16:06 [RateCDR] => 1 ) [2025-02-21 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-21 01:16:06' and `end` < '2025-02-21 04:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:16:17] Production.INFO: count ==120 [2025-02-21 04:16:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:16:06 - End Time 2025-02-21 04:16:06 [2025-02-21 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522566', 'tblTempUsageDetail_20' ) start [2025-02-21 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522566', 'tblTempUsageDetail_20' ) end [2025-02-21 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522566', 'tblTempVendorCDR_20' ) start [2025-02-21 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522566', 'tblTempVendorCDR_20' ) end [2025-02-21 04:16:17] Production.INFO: ProcessCDR(1,14522566,1,1,2) [2025-02-21 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522566', 'tblTempUsageDetail_20' ) start [2025-02-21 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522566', 'tblTempUsageDetail_20' ) end [2025-02-21 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:16:21] Production.INFO: ==26216== Releasing lock... [2025-02-21 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:17:05 [end_date_ymd] => 2025-02-21 04:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:17:05' and `end` < '2025-02-21 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-21 04:17:16] Production.INFO: count ==120 [2025-02-21 04:17:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:17:05 - End Time 2025-02-21 04:17:05 [2025-02-21 04:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522571', 'tblTempUsageDetail_20' ) start [2025-02-21 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522571', 'tblTempUsageDetail_20' ) end [2025-02-21 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522571', 'tblTempVendorCDR_20' ) start [2025-02-21 04:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522571', 'tblTempVendorCDR_20' ) end [2025-02-21 04:17:16] Production.INFO: ProcessCDR(1,14522571,1,1,2) [2025-02-21 04:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522571', 'tblTempUsageDetail_20' ) start [2025-02-21 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522571', 'tblTempUsageDetail_20' ) end [2025-02-21 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:17:20] Production.INFO: ==26286== Releasing lock... [2025-02-21 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:18:05 [end_date_ymd] => 2025-02-21 04:18:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:18:05' and `end` < '2025-02-21 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-21 04:18:17] Production.INFO: count ==120 [2025-02-21 04:18:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:18:05 - End Time 2025-02-21 04:18:05 [2025-02-21 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522576', 'tblTempUsageDetail_20' ) start [2025-02-21 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522576', 'tblTempUsageDetail_20' ) end [2025-02-21 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522576', 'tblTempVendorCDR_20' ) start [2025-02-21 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522576', 'tblTempVendorCDR_20' ) end [2025-02-21 04:18:17] Production.INFO: ProcessCDR(1,14522576,1,1,2) [2025-02-21 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522576', 'tblTempUsageDetail_20' ) start [2025-02-21 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522576', 'tblTempUsageDetail_20' ) end [2025-02-21 04:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:18:20] Production.INFO: ==26371== Releasing lock... [2025-02-21 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:18:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:19:05 [end_date_ymd] => 2025-02-21 04:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:19:05' and `end` < '2025-02-21 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-21 04:19:16] Production.INFO: count ==120 [2025-02-21 04:19:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:19:05 - End Time 2025-02-21 04:19:05 [2025-02-21 04:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522581', 'tblTempUsageDetail_20' ) start [2025-02-21 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522581', 'tblTempUsageDetail_20' ) end [2025-02-21 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522581', 'tblTempVendorCDR_20' ) start [2025-02-21 04:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522581', 'tblTempVendorCDR_20' ) end [2025-02-21 04:19:16] Production.INFO: ProcessCDR(1,14522581,1,1,2) [2025-02-21 04:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522581', 'tblTempUsageDetail_20' ) start [2025-02-21 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522581', 'tblTempUsageDetail_20' ) end [2025-02-21 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:19:20] Production.INFO: ==26447== Releasing lock... [2025-02-21 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:20:06 [end_date_ymd] => 2025-02-21 04:20:06 [RateCDR] => 1 ) [2025-02-21 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-21 01:20:06' and `end` < '2025-02-21 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-21 04:20:18] Production.INFO: count ==118 [2025-02-21 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:20:06 - End Time 2025-02-21 04:20:06 [2025-02-21 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522587', 'tblTempUsageDetail_20' ) start [2025-02-21 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522587', 'tblTempUsageDetail_20' ) end [2025-02-21 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522587', 'tblTempVendorCDR_20' ) start [2025-02-21 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522587', 'tblTempVendorCDR_20' ) end [2025-02-21 04:20:18] Production.INFO: ProcessCDR(1,14522587,1,1,2) [2025-02-21 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522587', 'tblTempUsageDetail_20' ) start [2025-02-21 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522587', 'tblTempUsageDetail_20' ) end [2025-02-21 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:20:21] Production.INFO: ==26523== Releasing lock... [2025-02-21 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:21:04 [end_date_ymd] => 2025-02-21 04:21:04 [RateCDR] => 1 ) [2025-02-21 04: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-21 01:21:04' and `end` < '2025-02-21 04: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-21 04:21:16] Production.INFO: count ==118 [2025-02-21 04:21:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:21:04 - End Time 2025-02-21 04:21:04 [2025-02-21 04:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522592', 'tblTempUsageDetail_20' ) start [2025-02-21 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522592', 'tblTempUsageDetail_20' ) end [2025-02-21 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522592', 'tblTempVendorCDR_20' ) start [2025-02-21 04:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522592', 'tblTempVendorCDR_20' ) end [2025-02-21 04:21:16] Production.INFO: ProcessCDR(1,14522592,1,1,2) [2025-02-21 04:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522592', 'tblTempUsageDetail_20' ) start [2025-02-21 04:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522592', 'tblTempUsageDetail_20' ) end [2025-02-21 04:21:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:21:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:21:19] Production.INFO: ==26596== Releasing lock... [2025-02-21 04:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:21:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:22:06 [end_date_ymd] => 2025-02-21 04:22:06 [RateCDR] => 1 ) [2025-02-21 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:22:06' and `end` < '2025-02-21 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:22:17] Production.INFO: count ==118 [2025-02-21 04:22:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:22:06 - End Time 2025-02-21 04:22:06 [2025-02-21 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522597', 'tblTempUsageDetail_20' ) start [2025-02-21 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522597', 'tblTempUsageDetail_20' ) end [2025-02-21 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522597', 'tblTempVendorCDR_20' ) start [2025-02-21 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522597', 'tblTempVendorCDR_20' ) end [2025-02-21 04:22:17] Production.INFO: ProcessCDR(1,14522597,1,1,2) [2025-02-21 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522597', 'tblTempUsageDetail_20' ) start [2025-02-21 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522597', 'tblTempUsageDetail_20' ) end [2025-02-21 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:22:21] Production.INFO: ==26670== Releasing lock... [2025-02-21 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:23:05 [end_date_ymd] => 2025-02-21 04:23:05 [RateCDR] => 1 ) [2025-02-21 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:23:05' and `end` < '2025-02-21 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:23:17] Production.INFO: count ==118 [2025-02-21 04:23:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:23:05 - End Time 2025-02-21 04:23:05 [2025-02-21 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522602', 'tblTempUsageDetail_20' ) start [2025-02-21 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522602', 'tblTempUsageDetail_20' ) end [2025-02-21 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522602', 'tblTempVendorCDR_20' ) start [2025-02-21 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522602', 'tblTempVendorCDR_20' ) end [2025-02-21 04:23:17] Production.INFO: ProcessCDR(1,14522602,1,1,2) [2025-02-21 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522602', 'tblTempUsageDetail_20' ) start [2025-02-21 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522602', 'tblTempUsageDetail_20' ) end [2025-02-21 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:23:20] Production.INFO: ==26744== Releasing lock... [2025-02-21 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:24:05 [end_date_ymd] => 2025-02-21 04:24:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:24:05' and `end` < '2025-02-21 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-21 04:24:17] Production.INFO: count ==118 [2025-02-21 04:24:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:24:05 - End Time 2025-02-21 04:24:05 [2025-02-21 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522607', 'tblTempUsageDetail_20' ) start [2025-02-21 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522607', 'tblTempUsageDetail_20' ) end [2025-02-21 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522607', 'tblTempVendorCDR_20' ) start [2025-02-21 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522607', 'tblTempVendorCDR_20' ) end [2025-02-21 04:24:17] Production.INFO: ProcessCDR(1,14522607,1,1,2) [2025-02-21 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522607', 'tblTempUsageDetail_20' ) start [2025-02-21 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522607', 'tblTempUsageDetail_20' ) end [2025-02-21 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:24:20] Production.INFO: ==26815== Releasing lock... [2025-02-21 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:25:05 [end_date_ymd] => 2025-02-21 04:25:05 [RateCDR] => 1 ) [2025-02-21 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:25:05' and `end` < '2025-02-21 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:25:17] Production.INFO: count ==118 [2025-02-21 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:25:05 - End Time 2025-02-21 04:25:05 [2025-02-21 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522612', 'tblTempUsageDetail_20' ) start [2025-02-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522612', 'tblTempUsageDetail_20' ) end [2025-02-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522612', 'tblTempVendorCDR_20' ) start [2025-02-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522612', 'tblTempVendorCDR_20' ) end [2025-02-21 04:25:17] Production.INFO: ProcessCDR(1,14522612,1,1,2) [2025-02-21 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522612', 'tblTempUsageDetail_20' ) start [2025-02-21 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522612', 'tblTempUsageDetail_20' ) end [2025-02-21 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:25:20] Production.INFO: ==26890== Releasing lock... [2025-02-21 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:25:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:26:05 [end_date_ymd] => 2025-02-21 04:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:26:05' and `end` < '2025-02-21 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-21 04:26:17] Production.INFO: count ==118 [2025-02-21 04:26:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:26:05 - End Time 2025-02-21 04:26:05 [2025-02-21 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522617', 'tblTempUsageDetail_20' ) start [2025-02-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522617', 'tblTempUsageDetail_20' ) end [2025-02-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522617', 'tblTempVendorCDR_20' ) start [2025-02-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522617', 'tblTempVendorCDR_20' ) end [2025-02-21 04:26:17] Production.INFO: ProcessCDR(1,14522617,1,1,2) [2025-02-21 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522617', 'tblTempUsageDetail_20' ) start [2025-02-21 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522617', 'tblTempUsageDetail_20' ) end [2025-02-21 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:26:20] Production.INFO: ==26965== Releasing lock... [2025-02-21 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:27:05 [end_date_ymd] => 2025-02-21 04:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:27:05' and `end` < '2025-02-21 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-21 04:27:17] Production.INFO: count ==118 [2025-02-21 04:27:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:27:05 - End Time 2025-02-21 04:27:05 [2025-02-21 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522622', 'tblTempUsageDetail_20' ) start [2025-02-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522622', 'tblTempUsageDetail_20' ) end [2025-02-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522622', 'tblTempVendorCDR_20' ) start [2025-02-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522622', 'tblTempVendorCDR_20' ) end [2025-02-21 04:27:17] Production.INFO: ProcessCDR(1,14522622,1,1,2) [2025-02-21 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522622', 'tblTempUsageDetail_20' ) start [2025-02-21 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522622', 'tblTempUsageDetail_20' ) end [2025-02-21 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:27:20] Production.INFO: ==27044== Releasing lock... [2025-02-21 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:28:05 [end_date_ymd] => 2025-02-21 04:28:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:28:05' and `end` < '2025-02-21 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-21 04:28:17] Production.INFO: count ==118 [2025-02-21 04:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:28:05 - End Time 2025-02-21 04:28:05 [2025-02-21 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522627', 'tblTempUsageDetail_20' ) start [2025-02-21 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522627', 'tblTempUsageDetail_20' ) end [2025-02-21 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522627', 'tblTempVendorCDR_20' ) start [2025-02-21 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522627', 'tblTempVendorCDR_20' ) end [2025-02-21 04:28:17] Production.INFO: ProcessCDR(1,14522627,1,1,2) [2025-02-21 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522627', 'tblTempUsageDetail_20' ) start [2025-02-21 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522627', 'tblTempUsageDetail_20' ) end [2025-02-21 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:28:20] Production.INFO: ==27115== Releasing lock... [2025-02-21 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:29:05 [end_date_ymd] => 2025-02-21 04:29:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:29:05' and `end` < '2025-02-21 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-21 04:29:17] Production.INFO: count ==118 [2025-02-21 04:29:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:29:05 - End Time 2025-02-21 04:29:05 [2025-02-21 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522632', 'tblTempUsageDetail_20' ) start [2025-02-21 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522632', 'tblTempUsageDetail_20' ) end [2025-02-21 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522632', 'tblTempVendorCDR_20' ) start [2025-02-21 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522632', 'tblTempVendorCDR_20' ) end [2025-02-21 04:29:17] Production.INFO: ProcessCDR(1,14522632,1,1,2) [2025-02-21 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522632', 'tblTempUsageDetail_20' ) start [2025-02-21 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522632', 'tblTempUsageDetail_20' ) end [2025-02-21 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:29:20] Production.INFO: ==27188== Releasing lock... [2025-02-21 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:30:05 [end_date_ymd] => 2025-02-21 04:30:05 [RateCDR] => 1 ) [2025-02-21 04: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-21 01:30:05' and `end` < '2025-02-21 04: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-21 04:30:17] Production.INFO: count ==110 [2025-02-21 04:30:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:30:05 - End Time 2025-02-21 04:30:05 [2025-02-21 04:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522638', 'tblTempUsageDetail_20' ) start [2025-02-21 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522638', 'tblTempUsageDetail_20' ) end [2025-02-21 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522638', 'tblTempVendorCDR_20' ) start [2025-02-21 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522638', 'tblTempVendorCDR_20' ) end [2025-02-21 04:30:17] Production.INFO: ProcessCDR(1,14522638,1,1,2) [2025-02-21 04:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522638', 'tblTempUsageDetail_20' ) start [2025-02-21 04:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522638', 'tblTempUsageDetail_20' ) end [2025-02-21 04:30:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:30:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:30:20] Production.INFO: ==27303== Releasing lock... [2025-02-21 04:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:30:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:31:05 [end_date_ymd] => 2025-02-21 04:31:05 [RateCDR] => 1 ) [2025-02-21 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:31:05' and `end` < '2025-02-21 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:31:17] Production.INFO: count ==101 [2025-02-21 04:31:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:31:05 - End Time 2025-02-21 04:31:05 [2025-02-21 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522644', 'tblTempUsageDetail_20' ) start [2025-02-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522644', 'tblTempUsageDetail_20' ) end [2025-02-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522644', 'tblTempVendorCDR_20' ) start [2025-02-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522644', 'tblTempVendorCDR_20' ) end [2025-02-21 04:31:17] Production.INFO: ProcessCDR(1,14522644,1,1,2) [2025-02-21 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522644', 'tblTempUsageDetail_20' ) start [2025-02-21 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522644', 'tblTempUsageDetail_20' ) end [2025-02-21 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:31:21] Production.INFO: ==27378== Releasing lock... [2025-02-21 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:32:05 [end_date_ymd] => 2025-02-21 04:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:32:05' and `end` < '2025-02-21 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-21 04:32:16] Production.INFO: count ==101 [2025-02-21 04:32:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:32:05 - End Time 2025-02-21 04:32:05 [2025-02-21 04:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522649', 'tblTempUsageDetail_20' ) start [2025-02-21 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522649', 'tblTempUsageDetail_20' ) end [2025-02-21 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522649', 'tblTempVendorCDR_20' ) start [2025-02-21 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522649', 'tblTempVendorCDR_20' ) end [2025-02-21 04:32:16] Production.INFO: ProcessCDR(1,14522649,1,1,2) [2025-02-21 04:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522649', 'tblTempUsageDetail_20' ) start [2025-02-21 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522649', 'tblTempUsageDetail_20' ) end [2025-02-21 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:32:20] Production.INFO: ==27578== Releasing lock... [2025-02-21 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:33:05 [end_date_ymd] => 2025-02-21 04:33:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:33:05' and `end` < '2025-02-21 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-21 04:33:16] Production.INFO: count ==101 [2025-02-21 04:33:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:33:05 - End Time 2025-02-21 04:33:05 [2025-02-21 04:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522654', 'tblTempUsageDetail_20' ) start [2025-02-21 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522654', 'tblTempUsageDetail_20' ) end [2025-02-21 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522654', 'tblTempVendorCDR_20' ) start [2025-02-21 04:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522654', 'tblTempVendorCDR_20' ) end [2025-02-21 04:33:16] Production.INFO: ProcessCDR(1,14522654,1,1,2) [2025-02-21 04:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522654', 'tblTempUsageDetail_20' ) start [2025-02-21 04:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522654', 'tblTempUsageDetail_20' ) end [2025-02-21 04:33:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:33:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:33:20] Production.INFO: ==27657== Releasing lock... [2025-02-21 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:33:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:34:05 [end_date_ymd] => 2025-02-21 04:34:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:34:05' and `end` < '2025-02-21 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-21 04:34:17] Production.INFO: count ==103 [2025-02-21 04:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:34:05 - End Time 2025-02-21 04:34:05 [2025-02-21 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522659', 'tblTempUsageDetail_20' ) start [2025-02-21 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522659', 'tblTempUsageDetail_20' ) end [2025-02-21 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522659', 'tblTempVendorCDR_20' ) start [2025-02-21 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522659', 'tblTempVendorCDR_20' ) end [2025-02-21 04:34:17] Production.INFO: ProcessCDR(1,14522659,1,1,2) [2025-02-21 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522659', 'tblTempUsageDetail_20' ) start [2025-02-21 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522659', 'tblTempUsageDetail_20' ) end [2025-02-21 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:34:20] Production.INFO: ==27733== Releasing lock... [2025-02-21 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:35:05 [end_date_ymd] => 2025-02-21 04:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:35:05' and `end` < '2025-02-21 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-21 04:35:17] Production.INFO: count ==105 [2025-02-21 04:35:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:35:05 - End Time 2025-02-21 04:35:05 [2025-02-21 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522664', 'tblTempUsageDetail_20' ) start [2025-02-21 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522664', 'tblTempUsageDetail_20' ) end [2025-02-21 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522664', 'tblTempVendorCDR_20' ) start [2025-02-21 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522664', 'tblTempVendorCDR_20' ) end [2025-02-21 04:35:17] Production.INFO: ProcessCDR(1,14522664,1,1,2) [2025-02-21 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522664', 'tblTempUsageDetail_20' ) start [2025-02-21 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522664', 'tblTempUsageDetail_20' ) end [2025-02-21 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:35:20] Production.INFO: ==27804== Releasing lock... [2025-02-21 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:36:06 [end_date_ymd] => 2025-02-21 04:36:06 [RateCDR] => 1 ) [2025-02-21 04: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-21 01:36:06' and `end` < '2025-02-21 04: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-21 04:36:17] Production.INFO: count ==105 [2025-02-21 04:36:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:36:06 - End Time 2025-02-21 04:36:06 [2025-02-21 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522669', 'tblTempUsageDetail_20' ) start [2025-02-21 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522669', 'tblTempUsageDetail_20' ) end [2025-02-21 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522669', 'tblTempVendorCDR_20' ) start [2025-02-21 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522669', 'tblTempVendorCDR_20' ) end [2025-02-21 04:36:17] Production.INFO: ProcessCDR(1,14522669,1,1,2) [2025-02-21 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522669', 'tblTempUsageDetail_20' ) start [2025-02-21 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522669', 'tblTempUsageDetail_20' ) end [2025-02-21 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:36:21] Production.INFO: ==27878== Releasing lock... [2025-02-21 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:37:05 [end_date_ymd] => 2025-02-21 04:37:05 [RateCDR] => 1 ) [2025-02-21 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:37:05' and `end` < '2025-02-21 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-21 04:37:16] Production.INFO: count ==101 [2025-02-21 04:37:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:37:05 - End Time 2025-02-21 04:37:05 [2025-02-21 04:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522674', 'tblTempUsageDetail_20' ) start [2025-02-21 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522674', 'tblTempUsageDetail_20' ) end [2025-02-21 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522674', 'tblTempVendorCDR_20' ) start [2025-02-21 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522674', 'tblTempVendorCDR_20' ) end [2025-02-21 04:37:16] Production.INFO: ProcessCDR(1,14522674,1,1,2) [2025-02-21 04:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522674', 'tblTempUsageDetail_20' ) start [2025-02-21 04:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522674', 'tblTempUsageDetail_20' ) end [2025-02-21 04:37:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:37:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:37:19] Production.INFO: ==27953== Releasing lock... [2025-02-21 04:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:37:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:38:06 [end_date_ymd] => 2025-02-21 04:38:06 [RateCDR] => 1 ) [2025-02-21 04: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-21 01:38:06' and `end` < '2025-02-21 04: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-21 04:38:18] Production.INFO: count ==101 [2025-02-21 04:38:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:38:06 - End Time 2025-02-21 04:38:06 [2025-02-21 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522679', 'tblTempUsageDetail_20' ) start [2025-02-21 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522679', 'tblTempUsageDetail_20' ) end [2025-02-21 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522679', 'tblTempVendorCDR_20' ) start [2025-02-21 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522679', 'tblTempVendorCDR_20' ) end [2025-02-21 04:38:18] Production.INFO: ProcessCDR(1,14522679,1,1,2) [2025-02-21 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522679', 'tblTempUsageDetail_20' ) start [2025-02-21 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522679', 'tblTempUsageDetail_20' ) end [2025-02-21 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:38:21] Production.INFO: ==28028== Releasing lock... [2025-02-21 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:39:05 [end_date_ymd] => 2025-02-21 04:39:05 [RateCDR] => 1 ) [2025-02-21 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:39:05' and `end` < '2025-02-21 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:39:16] Production.INFO: count ==101 [2025-02-21 04:39:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:39:05 - End Time 2025-02-21 04:39:05 [2025-02-21 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522684', 'tblTempUsageDetail_20' ) start [2025-02-21 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522684', 'tblTempUsageDetail_20' ) end [2025-02-21 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522684', 'tblTempVendorCDR_20' ) start [2025-02-21 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522684', 'tblTempVendorCDR_20' ) end [2025-02-21 04:39:16] Production.INFO: ProcessCDR(1,14522684,1,1,2) [2025-02-21 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522684', 'tblTempUsageDetail_20' ) start [2025-02-21 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522684', 'tblTempUsageDetail_20' ) end [2025-02-21 04:39:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:39:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:39:19] Production.INFO: ==28105== Releasing lock... [2025-02-21 04:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:39:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:40:06 [end_date_ymd] => 2025-02-21 04:40:06 [RateCDR] => 1 ) [2025-02-21 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:40:06' and `end` < '2025-02-21 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:40:17] Production.INFO: count ==99 [2025-02-21 04:40:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:40:06 - End Time 2025-02-21 04:40:06 [2025-02-21 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522689', 'tblTempUsageDetail_20' ) start [2025-02-21 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522689', 'tblTempUsageDetail_20' ) end [2025-02-21 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522689', 'tblTempVendorCDR_20' ) start [2025-02-21 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522689', 'tblTempVendorCDR_20' ) end [2025-02-21 04:40:17] Production.INFO: ProcessCDR(1,14522689,1,1,2) [2025-02-21 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522689', 'tblTempUsageDetail_20' ) start [2025-02-21 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522689', 'tblTempUsageDetail_20' ) end [2025-02-21 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:40:21] Production.INFO: ==28180== Releasing lock... [2025-02-21 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:41:04 [end_date_ymd] => 2025-02-21 04:41:04 [RateCDR] => 1 ) [2025-02-21 04: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-21 01:41:04' and `end` < '2025-02-21 04: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-21 04:41:16] Production.INFO: count ==99 [2025-02-21 04:41:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:41:04 - End Time 2025-02-21 04:41:04 [2025-02-21 04:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522695', 'tblTempUsageDetail_20' ) start [2025-02-21 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522695', 'tblTempUsageDetail_20' ) end [2025-02-21 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522695', 'tblTempVendorCDR_20' ) start [2025-02-21 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522695', 'tblTempVendorCDR_20' ) end [2025-02-21 04:41:16] Production.INFO: ProcessCDR(1,14522695,1,1,2) [2025-02-21 04:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522695', 'tblTempUsageDetail_20' ) start [2025-02-21 04:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522695', 'tblTempUsageDetail_20' ) end [2025-02-21 04:41:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:41:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:41:19] Production.INFO: ==28254== Releasing lock... [2025-02-21 04:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:41:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:42:06 [end_date_ymd] => 2025-02-21 04:42:06 [RateCDR] => 1 ) [2025-02-21 04: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-21 01:42:06' and `end` < '2025-02-21 04: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-21 04:42:17] Production.INFO: count ==99 [2025-02-21 04:42:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:42:06 - End Time 2025-02-21 04:42:06 [2025-02-21 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522700', 'tblTempUsageDetail_20' ) start [2025-02-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522700', 'tblTempUsageDetail_20' ) end [2025-02-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522700', 'tblTempVendorCDR_20' ) start [2025-02-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522700', 'tblTempVendorCDR_20' ) end [2025-02-21 04:42:17] Production.INFO: ProcessCDR(1,14522700,1,1,2) [2025-02-21 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522700', 'tblTempUsageDetail_20' ) start [2025-02-21 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522700', 'tblTempUsageDetail_20' ) end [2025-02-21 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:42:20] Production.INFO: ==28327== Releasing lock... [2025-02-21 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:43:05 [end_date_ymd] => 2025-02-21 04:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:43:05' and `end` < '2025-02-21 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-21 04:43:16] Production.INFO: count ==99 [2025-02-21 04:43:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:43:05 - End Time 2025-02-21 04:43:05 [2025-02-21 04:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522705', 'tblTempUsageDetail_20' ) start [2025-02-21 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522705', 'tblTempUsageDetail_20' ) end [2025-02-21 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522705', 'tblTempVendorCDR_20' ) start [2025-02-21 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522705', 'tblTempVendorCDR_20' ) end [2025-02-21 04:43:16] Production.INFO: ProcessCDR(1,14522705,1,1,2) [2025-02-21 04:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522705', 'tblTempUsageDetail_20' ) start [2025-02-21 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522705', 'tblTempUsageDetail_20' ) end [2025-02-21 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:43:20] Production.INFO: ==28397== Releasing lock... [2025-02-21 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:44:05 [end_date_ymd] => 2025-02-21 04:44:05 [RateCDR] => 1 ) [2025-02-21 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:44:05' and `end` < '2025-02-21 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:44:17] Production.INFO: count ==99 [2025-02-21 04:44:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:44:05 - End Time 2025-02-21 04:44:05 [2025-02-21 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522710', 'tblTempUsageDetail_20' ) start [2025-02-21 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522710', 'tblTempUsageDetail_20' ) end [2025-02-21 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522710', 'tblTempVendorCDR_20' ) start [2025-02-21 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522710', 'tblTempVendorCDR_20' ) end [2025-02-21 04:44:17] Production.INFO: ProcessCDR(1,14522710,1,1,2) [2025-02-21 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522710', 'tblTempUsageDetail_20' ) start [2025-02-21 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522710', 'tblTempUsageDetail_20' ) end [2025-02-21 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:44:21] Production.INFO: ==28469== Releasing lock... [2025-02-21 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:45:05 [end_date_ymd] => 2025-02-21 04:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:45:05' and `end` < '2025-02-21 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-21 04:45:16] Production.INFO: count ==99 [2025-02-21 04:45:16] Production.ERROR: pbx CDR StartTime 2025-02-21 01:45:05 - End Time 2025-02-21 04:45:05 [2025-02-21 04:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522715', 'tblTempUsageDetail_20' ) start [2025-02-21 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522715', 'tblTempUsageDetail_20' ) end [2025-02-21 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522715', 'tblTempVendorCDR_20' ) start [2025-02-21 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522715', 'tblTempVendorCDR_20' ) end [2025-02-21 04:45:16] Production.INFO: ProcessCDR(1,14522715,1,1,2) [2025-02-21 04:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522715', 'tblTempUsageDetail_20' ) start [2025-02-21 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522715', 'tblTempUsageDetail_20' ) end [2025-02-21 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:45:20] Production.INFO: ==28582== Releasing lock... [2025-02-21 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:46:05 [end_date_ymd] => 2025-02-21 04:46:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:46:05' and `end` < '2025-02-21 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-21 04:46:17] Production.INFO: count ==99 [2025-02-21 04:46:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:46:05 - End Time 2025-02-21 04:46:05 [2025-02-21 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522720', 'tblTempUsageDetail_20' ) start [2025-02-21 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522720', 'tblTempUsageDetail_20' ) end [2025-02-21 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522720', 'tblTempVendorCDR_20' ) start [2025-02-21 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522720', 'tblTempVendorCDR_20' ) end [2025-02-21 04:46:17] Production.INFO: ProcessCDR(1,14522720,1,1,2) [2025-02-21 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522720', 'tblTempUsageDetail_20' ) start [2025-02-21 04:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522720', 'tblTempUsageDetail_20' ) end [2025-02-21 04:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:46:20] Production.INFO: ==28659== Releasing lock... [2025-02-21 04:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:46:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:47:05 [end_date_ymd] => 2025-02-21 04:47:05 [RateCDR] => 1 ) [2025-02-21 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:47:05' and `end` < '2025-02-21 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:47:17] Production.INFO: count ==100 [2025-02-21 04:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:47:05 - End Time 2025-02-21 04:47:05 [2025-02-21 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522725', 'tblTempUsageDetail_20' ) start [2025-02-21 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522725', 'tblTempUsageDetail_20' ) end [2025-02-21 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522725', 'tblTempVendorCDR_20' ) start [2025-02-21 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522725', 'tblTempVendorCDR_20' ) end [2025-02-21 04:47:17] Production.INFO: ProcessCDR(1,14522725,1,1,2) [2025-02-21 04:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522725', 'tblTempUsageDetail_20' ) start [2025-02-21 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522725', 'tblTempUsageDetail_20' ) end [2025-02-21 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:47:21] Production.INFO: ==28729== Releasing lock... [2025-02-21 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:48:05 [end_date_ymd] => 2025-02-21 04:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:48:05' and `end` < '2025-02-21 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:48:18] Production.INFO: count ==100 [2025-02-21 04:48:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:48:05 - End Time 2025-02-21 04:48:05 [2025-02-21 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522729', 'tblTempUsageDetail_20' ) start [2025-02-21 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522729', 'tblTempUsageDetail_20' ) end [2025-02-21 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522729', 'tblTempVendorCDR_20' ) start [2025-02-21 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522729', 'tblTempVendorCDR_20' ) end [2025-02-21 04:48:18] Production.INFO: ProcessCDR(1,14522729,1,1,2) [2025-02-21 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522729', 'tblTempUsageDetail_20' ) start [2025-02-21 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522729', 'tblTempUsageDetail_20' ) end [2025-02-21 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:48:21] Production.INFO: ==28806== Releasing lock... [2025-02-21 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:49:04 [end_date_ymd] => 2025-02-21 04:49:04 [RateCDR] => 1 ) [2025-02-21 04: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-21 01:49:04' and `end` < '2025-02-21 04: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-21 04:49:17] Production.INFO: count ==96 [2025-02-21 04:49:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:49:04 - End Time 2025-02-21 04:49:04 [2025-02-21 04:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522735', 'tblTempUsageDetail_20' ) start [2025-02-21 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522735', 'tblTempUsageDetail_20' ) end [2025-02-21 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522735', 'tblTempVendorCDR_20' ) start [2025-02-21 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522735', 'tblTempVendorCDR_20' ) end [2025-02-21 04:49:17] Production.INFO: ProcessCDR(1,14522735,1,1,2) [2025-02-21 04:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522735', 'tblTempUsageDetail_20' ) start [2025-02-21 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522735', 'tblTempUsageDetail_20' ) end [2025-02-21 04:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:49:20] Production.INFO: ==28875== Releasing lock... [2025-02-21 04:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:50:06 [end_date_ymd] => 2025-02-21 04:50:06 [RateCDR] => 1 ) [2025-02-21 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-21 01:50:06' and `end` < '2025-02-21 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-21 04:50:18] Production.INFO: count ==96 [2025-02-21 04:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:50:06 - End Time 2025-02-21 04:50:06 [2025-02-21 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522741', 'tblTempUsageDetail_20' ) start [2025-02-21 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522741', 'tblTempUsageDetail_20' ) end [2025-02-21 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522741', 'tblTempVendorCDR_20' ) start [2025-02-21 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522741', 'tblTempVendorCDR_20' ) end [2025-02-21 04:50:18] Production.INFO: ProcessCDR(1,14522741,1,1,2) [2025-02-21 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522741', 'tblTempUsageDetail_20' ) start [2025-02-21 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522741', 'tblTempUsageDetail_20' ) end [2025-02-21 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:50:21] Production.INFO: ==28949== Releasing lock... [2025-02-21 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:51:05 [end_date_ymd] => 2025-02-21 04:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:51:05' and `end` < '2025-02-21 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-21 04:51:18] Production.INFO: count ==96 [2025-02-21 04:51:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:51:05 - End Time 2025-02-21 04:51:05 [2025-02-21 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522746', 'tblTempUsageDetail_20' ) start [2025-02-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522746', 'tblTempUsageDetail_20' ) end [2025-02-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522746', 'tblTempVendorCDR_20' ) start [2025-02-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522746', 'tblTempVendorCDR_20' ) end [2025-02-21 04:51:18] Production.INFO: ProcessCDR(1,14522746,1,1,2) [2025-02-21 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522746', 'tblTempUsageDetail_20' ) start [2025-02-21 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522746', 'tblTempUsageDetail_20' ) end [2025-02-21 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:51:21] Production.INFO: ==29022== Releasing lock... [2025-02-21 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:52:05 [end_date_ymd] => 2025-02-21 04:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:52:05' and `end` < '2025-02-21 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-21 04:52:18] Production.INFO: count ==96 [2025-02-21 04:52:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:52:05 - End Time 2025-02-21 04:52:05 [2025-02-21 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522751', 'tblTempUsageDetail_20' ) start [2025-02-21 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522751', 'tblTempUsageDetail_20' ) end [2025-02-21 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522751', 'tblTempVendorCDR_20' ) start [2025-02-21 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522751', 'tblTempVendorCDR_20' ) end [2025-02-21 04:52:18] Production.INFO: ProcessCDR(1,14522751,1,1,2) [2025-02-21 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522751', 'tblTempUsageDetail_20' ) start [2025-02-21 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522751', 'tblTempUsageDetail_20' ) end [2025-02-21 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:52:21] Production.INFO: ==29095== Releasing lock... [2025-02-21 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:53:06 [end_date_ymd] => 2025-02-21 04:53:06 [RateCDR] => 1 ) [2025-02-21 04: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-21 01:53:06' and `end` < '2025-02-21 04: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-21 04:53:18] Production.INFO: count ==90 [2025-02-21 04:53:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:53:06 - End Time 2025-02-21 04:53:06 [2025-02-21 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522756', 'tblTempUsageDetail_20' ) start [2025-02-21 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522756', 'tblTempUsageDetail_20' ) end [2025-02-21 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522756', 'tblTempVendorCDR_20' ) start [2025-02-21 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522756', 'tblTempVendorCDR_20' ) end [2025-02-21 04:53:18] Production.INFO: ProcessCDR(1,14522756,1,1,2) [2025-02-21 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522756', 'tblTempUsageDetail_20' ) start [2025-02-21 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522756', 'tblTempUsageDetail_20' ) end [2025-02-21 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:53:21] Production.INFO: ==29168== Releasing lock... [2025-02-21 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:54:05 [end_date_ymd] => 2025-02-21 04:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:54:05' and `end` < '2025-02-21 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-21 04:54:18] Production.INFO: count ==88 [2025-02-21 04:54:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:54:05 - End Time 2025-02-21 04:54:05 [2025-02-21 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522761', 'tblTempUsageDetail_20' ) start [2025-02-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522761', 'tblTempUsageDetail_20' ) end [2025-02-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522761', 'tblTempVendorCDR_20' ) start [2025-02-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522761', 'tblTempVendorCDR_20' ) end [2025-02-21 04:54:18] Production.INFO: ProcessCDR(1,14522761,1,1,2) [2025-02-21 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522761', 'tblTempUsageDetail_20' ) start [2025-02-21 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522761', 'tblTempUsageDetail_20' ) end [2025-02-21 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:54:21] Production.INFO: ==29240== Releasing lock... [2025-02-21 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:55:06 [end_date_ymd] => 2025-02-21 04:55:06 [RateCDR] => 1 ) [2025-02-21 04:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:55:06' and `end` < '2025-02-21 04:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:55:19] Production.INFO: count ==88 [2025-02-21 04:55:19] Production.ERROR: pbx CDR StartTime 2025-02-21 01:55:06 - End Time 2025-02-21 04:55:06 [2025-02-21 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522766', 'tblTempUsageDetail_20' ) start [2025-02-21 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522766', 'tblTempUsageDetail_20' ) end [2025-02-21 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522766', 'tblTempVendorCDR_20' ) start [2025-02-21 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522766', 'tblTempVendorCDR_20' ) end [2025-02-21 04:55:19] Production.INFO: ProcessCDR(1,14522766,1,1,2) [2025-02-21 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522766', 'tblTempUsageDetail_20' ) start [2025-02-21 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522766', 'tblTempUsageDetail_20' ) end [2025-02-21 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:55:22] Production.INFO: ==29311== Releasing lock... [2025-02-21 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:56:05 [end_date_ymd] => 2025-02-21 04:56:05 [RateCDR] => 1 ) [2025-02-21 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:56:05' and `end` < '2025-02-21 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:56:17] Production.INFO: count ==88 [2025-02-21 04:56:17] Production.ERROR: pbx CDR StartTime 2025-02-21 01:56:05 - End Time 2025-02-21 04:56:05 [2025-02-21 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522771', 'tblTempUsageDetail_20' ) start [2025-02-21 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522771', 'tblTempUsageDetail_20' ) end [2025-02-21 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522771', 'tblTempVendorCDR_20' ) start [2025-02-21 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522771', 'tblTempVendorCDR_20' ) end [2025-02-21 04:56:17] Production.INFO: ProcessCDR(1,14522771,1,1,2) [2025-02-21 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522771', 'tblTempUsageDetail_20' ) start [2025-02-21 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522771', 'tblTempUsageDetail_20' ) end [2025-02-21 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:56:20] Production.INFO: ==29382== Releasing lock... [2025-02-21 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:57:05 [end_date_ymd] => 2025-02-21 04:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:57:05' and `end` < '2025-02-21 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-21 04:57:18] Production.INFO: count ==88 [2025-02-21 04:57:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:57:05 - End Time 2025-02-21 04:57:05 [2025-02-21 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522776', 'tblTempUsageDetail_20' ) start [2025-02-21 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522776', 'tblTempUsageDetail_20' ) end [2025-02-21 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522776', 'tblTempVendorCDR_20' ) start [2025-02-21 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522776', 'tblTempVendorCDR_20' ) end [2025-02-21 04:57:18] Production.INFO: ProcessCDR(1,14522776,1,1,2) [2025-02-21 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522776', 'tblTempUsageDetail_20' ) start [2025-02-21 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522776', 'tblTempUsageDetail_20' ) end [2025-02-21 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:57:21] Production.INFO: ==29451== Releasing lock... [2025-02-21 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 04:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:58:04 [end_date_ymd] => 2025-02-21 04:58:04 [RateCDR] => 1 ) [2025-02-21 04:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 01:58:04' and `end` < '2025-02-21 04:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 04:58:18] Production.INFO: count ==88 [2025-02-21 04:58:18] Production.ERROR: pbx CDR StartTime 2025-02-21 01:58:04 - End Time 2025-02-21 04:58:04 [2025-02-21 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522781', 'tblTempUsageDetail_20' ) start [2025-02-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522781', 'tblTempUsageDetail_20' ) end [2025-02-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522781', 'tblTempVendorCDR_20' ) start [2025-02-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522781', 'tblTempVendorCDR_20' ) end [2025-02-21 04:58:18] Production.INFO: ProcessCDR(1,14522781,1,1,2) [2025-02-21 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522781', 'tblTempUsageDetail_20' ) start [2025-02-21 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522781', 'tblTempUsageDetail_20' ) end [2025-02-21 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:58:22] Production.INFO: ==29541== Releasing lock... [2025-02-21 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 01:59:05 [end_date_ymd] => 2025-02-21 04:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 01:59:05' and `end` < '2025-02-21 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-21 04:59:19] Production.INFO: count ==88 [2025-02-21 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-21 01:59:05 - End Time 2025-02-21 04:59:05 [2025-02-21 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522786', 'tblTempUsageDetail_20' ) start [2025-02-21 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522786', 'tblTempUsageDetail_20' ) end [2025-02-21 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522786', 'tblTempVendorCDR_20' ) start [2025-02-21 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522786', 'tblTempVendorCDR_20' ) end [2025-02-21 04:59:19] Production.INFO: ProcessCDR(1,14522786,1,1,2) [2025-02-21 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522786', 'tblTempUsageDetail_20' ) start [2025-02-21 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522786', 'tblTempUsageDetail_20' ) end [2025-02-21 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 04:59:22] Production.INFO: ==29650== Releasing lock... [2025-02-21 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 04:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:00:05 [end_date_ymd] => 2025-02-21 05:00:05 [RateCDR] => 1 ) [2025-02-21 05: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-21 02:00:05' and `end` < '2025-02-21 05: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-21 05:00:17] Production.INFO: count ==85 [2025-02-21 05:00:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:00:05 - End Time 2025-02-21 05:00:05 [2025-02-21 05:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522792', 'tblTempUsageDetail_20' ) start [2025-02-21 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522792', 'tblTempUsageDetail_20' ) end [2025-02-21 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522792', 'tblTempVendorCDR_20' ) start [2025-02-21 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522792', 'tblTempVendorCDR_20' ) end [2025-02-21 05:00:17] Production.INFO: ProcessCDR(1,14522792,1,1,2) [2025-02-21 05:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522792', 'tblTempUsageDetail_20' ) start [2025-02-21 05:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522792', 'tblTempUsageDetail_20' ) end [2025-02-21 05:00:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:00:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:00:20] Production.INFO: ==29755== Releasing lock... [2025-02-21 05:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:00:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:01:05 [end_date_ymd] => 2025-02-21 05:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:01:05' and `end` < '2025-02-21 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-21 05:01:18] Production.INFO: count ==85 [2025-02-21 05:01:18] Production.ERROR: pbx CDR StartTime 2025-02-21 02:01:05 - End Time 2025-02-21 05:01:05 [2025-02-21 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522797', 'tblTempUsageDetail_20' ) start [2025-02-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522797', 'tblTempUsageDetail_20' ) end [2025-02-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522797', 'tblTempVendorCDR_20' ) start [2025-02-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522797', 'tblTempVendorCDR_20' ) end [2025-02-21 05:01:18] Production.INFO: ProcessCDR(1,14522797,1,1,2) [2025-02-21 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522797', 'tblTempUsageDetail_20' ) start [2025-02-21 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522797', 'tblTempUsageDetail_20' ) end [2025-02-21 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:01:21] Production.INFO: ==29911== Releasing lock... [2025-02-21 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:02:05 [end_date_ymd] => 2025-02-21 05:02:05 [RateCDR] => 1 ) [2025-02-21 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 02:02:05' and `end` < '2025-02-21 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 05:02:17] Production.INFO: count ==89 [2025-02-21 05:02:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:02:05 - End Time 2025-02-21 05:02:05 [2025-02-21 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522802', 'tblTempUsageDetail_20' ) start [2025-02-21 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522802', 'tblTempUsageDetail_20' ) end [2025-02-21 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522802', 'tblTempVendorCDR_20' ) start [2025-02-21 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522802', 'tblTempVendorCDR_20' ) end [2025-02-21 05:02:17] Production.INFO: ProcessCDR(1,14522802,1,1,2) [2025-02-21 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522802', 'tblTempUsageDetail_20' ) start [2025-02-21 05:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522802', 'tblTempUsageDetail_20' ) end [2025-02-21 05:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:02:20] Production.INFO: ==30013== Releasing lock... [2025-02-21 05:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:02:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:03:05 [end_date_ymd] => 2025-02-21 05:03:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:03:05' and `end` < '2025-02-21 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-21 05:03:17] Production.INFO: count ==89 [2025-02-21 05:03:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:03:05 - End Time 2025-02-21 05:03:05 [2025-02-21 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522807', 'tblTempUsageDetail_20' ) start [2025-02-21 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522807', 'tblTempUsageDetail_20' ) end [2025-02-21 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522807', 'tblTempVendorCDR_20' ) start [2025-02-21 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522807', 'tblTempVendorCDR_20' ) end [2025-02-21 05:03:17] Production.INFO: ProcessCDR(1,14522807,1,1,2) [2025-02-21 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522807', 'tblTempUsageDetail_20' ) start [2025-02-21 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522807', 'tblTempUsageDetail_20' ) end [2025-02-21 05:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:03:20] Production.INFO: ==30113== Releasing lock... [2025-02-21 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:03:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:04:05 [end_date_ymd] => 2025-02-21 05:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:04:05' and `end` < '2025-02-21 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-21 05:04:17] Production.INFO: count ==89 [2025-02-21 05:04:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:04:05 - End Time 2025-02-21 05:04:05 [2025-02-21 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522812', 'tblTempUsageDetail_20' ) start [2025-02-21 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522812', 'tblTempUsageDetail_20' ) end [2025-02-21 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522812', 'tblTempVendorCDR_20' ) start [2025-02-21 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522812', 'tblTempVendorCDR_20' ) end [2025-02-21 05:04:17] Production.INFO: ProcessCDR(1,14522812,1,1,2) [2025-02-21 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522812', 'tblTempUsageDetail_20' ) start [2025-02-21 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522812', 'tblTempUsageDetail_20' ) end [2025-02-21 05:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:04:20] Production.INFO: ==30218== Releasing lock... [2025-02-21 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:04:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:05:05 [end_date_ymd] => 2025-02-21 05:05:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:05:05' and `end` < '2025-02-21 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-21 05:05:17] Production.INFO: count ==89 [2025-02-21 05:05:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:05:05 - End Time 2025-02-21 05:05:05 [2025-02-21 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522817', 'tblTempUsageDetail_20' ) start [2025-02-21 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522817', 'tblTempUsageDetail_20' ) end [2025-02-21 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522817', 'tblTempVendorCDR_20' ) start [2025-02-21 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522817', 'tblTempVendorCDR_20' ) end [2025-02-21 05:05:17] Production.INFO: ProcessCDR(1,14522817,1,1,2) [2025-02-21 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522817', 'tblTempUsageDetail_20' ) start [2025-02-21 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522817', 'tblTempUsageDetail_20' ) end [2025-02-21 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:05:20] Production.INFO: ==30323== Releasing lock... [2025-02-21 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:06:05 [end_date_ymd] => 2025-02-21 05:06:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:06:05' and `end` < '2025-02-21 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-21 05:06:17] Production.INFO: count ==89 [2025-02-21 05:06:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:06:05 - End Time 2025-02-21 05:06:05 [2025-02-21 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522822', 'tblTempUsageDetail_20' ) start [2025-02-21 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522822', 'tblTempUsageDetail_20' ) end [2025-02-21 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522822', 'tblTempVendorCDR_20' ) start [2025-02-21 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522822', 'tblTempVendorCDR_20' ) end [2025-02-21 05:06:17] Production.INFO: ProcessCDR(1,14522822,1,1,2) [2025-02-21 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522822', 'tblTempUsageDetail_20' ) start [2025-02-21 05:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522822', 'tblTempUsageDetail_20' ) end [2025-02-21 05:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:06:20] Production.INFO: ==30440== Releasing lock... [2025-02-21 05:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:06:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:07:05 [end_date_ymd] => 2025-02-21 05:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:07:05' and `end` < '2025-02-21 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-21 05:07:17] Production.INFO: count ==85 [2025-02-21 05:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:07:05 - End Time 2025-02-21 05:07:05 [2025-02-21 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522827', 'tblTempUsageDetail_20' ) start [2025-02-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522827', 'tblTempUsageDetail_20' ) end [2025-02-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522827', 'tblTempVendorCDR_20' ) start [2025-02-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522827', 'tblTempVendorCDR_20' ) end [2025-02-21 05:07:17] Production.INFO: ProcessCDR(1,14522827,1,1,2) [2025-02-21 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522827', 'tblTempUsageDetail_20' ) start [2025-02-21 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522827', 'tblTempUsageDetail_20' ) end [2025-02-21 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:07:20] Production.INFO: ==30544== Releasing lock... [2025-02-21 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:08:06 [end_date_ymd] => 2025-02-21 05:08:06 [RateCDR] => 1 ) [2025-02-21 05:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 02:08:06' and `end` < '2025-02-21 05:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 05:08:17] Production.INFO: count ==85 [2025-02-21 05:08:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:08:06 - End Time 2025-02-21 05:08:06 [2025-02-21 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522832', 'tblTempUsageDetail_20' ) start [2025-02-21 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522832', 'tblTempUsageDetail_20' ) end [2025-02-21 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522832', 'tblTempVendorCDR_20' ) start [2025-02-21 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522832', 'tblTempVendorCDR_20' ) end [2025-02-21 05:08:17] Production.INFO: ProcessCDR(1,14522832,1,1,2) [2025-02-21 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522832', 'tblTempUsageDetail_20' ) start [2025-02-21 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522832', 'tblTempUsageDetail_20' ) end [2025-02-21 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:08:20] Production.INFO: ==30649== Releasing lock... [2025-02-21 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:09:05 [end_date_ymd] => 2025-02-21 05:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:09:05' and `end` < '2025-02-21 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-21 05:09:17] Production.INFO: count ==85 [2025-02-21 05:09:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:09:05 - End Time 2025-02-21 05:09:05 [2025-02-21 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522837', 'tblTempUsageDetail_20' ) start [2025-02-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522837', 'tblTempUsageDetail_20' ) end [2025-02-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522837', 'tblTempVendorCDR_20' ) start [2025-02-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522837', 'tblTempVendorCDR_20' ) end [2025-02-21 05:09:17] Production.INFO: ProcessCDR(1,14522837,1,1,2) [2025-02-21 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522837', 'tblTempUsageDetail_20' ) start [2025-02-21 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522837', 'tblTempUsageDetail_20' ) end [2025-02-21 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:09:20] Production.INFO: ==30721== Releasing lock... [2025-02-21 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:10:06 [end_date_ymd] => 2025-02-21 05:10:06 [RateCDR] => 1 ) [2025-02-21 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 02:10:06' and `end` < '2025-02-21 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 05:10:18] Production.INFO: count ==81 [2025-02-21 05:10:18] Production.ERROR: pbx CDR StartTime 2025-02-21 02:10:06 - End Time 2025-02-21 05:10:06 [2025-02-21 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522843', 'tblTempUsageDetail_20' ) start [2025-02-21 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522843', 'tblTempUsageDetail_20' ) end [2025-02-21 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522843', 'tblTempVendorCDR_20' ) start [2025-02-21 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522843', 'tblTempVendorCDR_20' ) end [2025-02-21 05:10:18] Production.INFO: ProcessCDR(1,14522843,1,1,2) [2025-02-21 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522843', 'tblTempUsageDetail_20' ) start [2025-02-21 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522843', 'tblTempUsageDetail_20' ) end [2025-02-21 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:10:21] Production.INFO: ==30794== Releasing lock... [2025-02-21 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:11:04 [end_date_ymd] => 2025-02-21 05:11:04 [RateCDR] => 1 ) [2025-02-21 05:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 02:11:04' and `end` < '2025-02-21 05:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 05:11:16] Production.INFO: count ==81 [2025-02-21 05:11:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:11:04 - End Time 2025-02-21 05:11:04 [2025-02-21 05:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522848', 'tblTempUsageDetail_20' ) start [2025-02-21 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522848', 'tblTempUsageDetail_20' ) end [2025-02-21 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522848', 'tblTempVendorCDR_20' ) start [2025-02-21 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522848', 'tblTempVendorCDR_20' ) end [2025-02-21 05:11:16] Production.INFO: ProcessCDR(1,14522848,1,1,2) [2025-02-21 05:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522848', 'tblTempUsageDetail_20' ) start [2025-02-21 05:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522848', 'tblTempUsageDetail_20' ) end [2025-02-21 05:11:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:11:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:11:19] Production.INFO: ==30866== Releasing lock... [2025-02-21 05:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:11:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:12:05 [end_date_ymd] => 2025-02-21 05:12:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:12:05' and `end` < '2025-02-21 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-21 05:12:17] Production.INFO: count ==81 [2025-02-21 05:12:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:12:05 - End Time 2025-02-21 05:12:05 [2025-02-21 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522853', 'tblTempUsageDetail_20' ) start [2025-02-21 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522853', 'tblTempUsageDetail_20' ) end [2025-02-21 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522853', 'tblTempVendorCDR_20' ) start [2025-02-21 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522853', 'tblTempVendorCDR_20' ) end [2025-02-21 05:12:17] Production.INFO: ProcessCDR(1,14522853,1,1,2) [2025-02-21 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522853', 'tblTempUsageDetail_20' ) start [2025-02-21 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522853', 'tblTempUsageDetail_20' ) end [2025-02-21 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:12:20] Production.INFO: ==30938== Releasing lock... [2025-02-21 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:13:05 [end_date_ymd] => 2025-02-21 05:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:13:05' and `end` < '2025-02-21 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-21 05:13:17] Production.INFO: count ==81 [2025-02-21 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:13:05 - End Time 2025-02-21 05:13:05 [2025-02-21 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522858', 'tblTempUsageDetail_20' ) start [2025-02-21 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522858', 'tblTempUsageDetail_20' ) end [2025-02-21 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522858', 'tblTempVendorCDR_20' ) start [2025-02-21 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522858', 'tblTempVendorCDR_20' ) end [2025-02-21 05:13:17] Production.INFO: ProcessCDR(1,14522858,1,1,2) [2025-02-21 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522858', 'tblTempUsageDetail_20' ) start [2025-02-21 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522858', 'tblTempUsageDetail_20' ) end [2025-02-21 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:13:20] Production.INFO: ==31008== Releasing lock... [2025-02-21 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:14:05 [end_date_ymd] => 2025-02-21 05:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:14:05' and `end` < '2025-02-21 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-21 05:14:17] Production.INFO: count ==81 [2025-02-21 05:14:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:14:05 - End Time 2025-02-21 05:14:05 [2025-02-21 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522863', 'tblTempUsageDetail_20' ) start [2025-02-21 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522863', 'tblTempUsageDetail_20' ) end [2025-02-21 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522863', 'tblTempVendorCDR_20' ) start [2025-02-21 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522863', 'tblTempVendorCDR_20' ) end [2025-02-21 05:14:17] Production.INFO: ProcessCDR(1,14522863,1,1,2) [2025-02-21 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522863', 'tblTempUsageDetail_20' ) start [2025-02-21 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522863', 'tblTempUsageDetail_20' ) end [2025-02-21 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:14:20] Production.INFO: ==31080== Releasing lock... [2025-02-21 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:15:04 [end_date_ymd] => 2025-02-21 05:15:04 [RateCDR] => 1 ) [2025-02-21 05: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-21 02:15:04' and `end` < '2025-02-21 05: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-21 05:15:16] Production.INFO: count ==80 [2025-02-21 05:15:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:15:04 - End Time 2025-02-21 05:15:04 [2025-02-21 05:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522868', 'tblTempUsageDetail_20' ) start [2025-02-21 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522868', 'tblTempUsageDetail_20' ) end [2025-02-21 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522868', 'tblTempVendorCDR_20' ) start [2025-02-21 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522868', 'tblTempVendorCDR_20' ) end [2025-02-21 05:15:16] Production.INFO: ProcessCDR(1,14522868,1,1,2) [2025-02-21 05:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522868', 'tblTempUsageDetail_20' ) start [2025-02-21 05:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522868', 'tblTempUsageDetail_20' ) end [2025-02-21 05:15:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:15:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:15:19] Production.INFO: ==31151== Releasing lock... [2025-02-21 05:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:15:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:16:05 [end_date_ymd] => 2025-02-21 05:16:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:16:05' and `end` < '2025-02-21 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-21 05:16:17] Production.INFO: count ==80 [2025-02-21 05:16:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:16:05 - End Time 2025-02-21 05:16:05 [2025-02-21 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522873', 'tblTempUsageDetail_20' ) start [2025-02-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522873', 'tblTempUsageDetail_20' ) end [2025-02-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522873', 'tblTempVendorCDR_20' ) start [2025-02-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522873', 'tblTempVendorCDR_20' ) end [2025-02-21 05:16:17] Production.INFO: ProcessCDR(1,14522873,1,1,2) [2025-02-21 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522873', 'tblTempUsageDetail_20' ) start [2025-02-21 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522873', 'tblTempUsageDetail_20' ) end [2025-02-21 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:16:20] Production.INFO: ==31260== Releasing lock... [2025-02-21 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:17:05 [end_date_ymd] => 2025-02-21 05:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:17:05' and `end` < '2025-02-21 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-21 05:17:17] Production.INFO: count ==80 [2025-02-21 05:17:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:17:05 - End Time 2025-02-21 05:17:05 [2025-02-21 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522878', 'tblTempUsageDetail_20' ) start [2025-02-21 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522878', 'tblTempUsageDetail_20' ) end [2025-02-21 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522878', 'tblTempVendorCDR_20' ) start [2025-02-21 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522878', 'tblTempVendorCDR_20' ) end [2025-02-21 05:17:17] Production.INFO: ProcessCDR(1,14522878,1,1,2) [2025-02-21 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522878', 'tblTempUsageDetail_20' ) start [2025-02-21 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522878', 'tblTempUsageDetail_20' ) end [2025-02-21 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:17:20] Production.INFO: ==31332== Releasing lock... [2025-02-21 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:18:05 [end_date_ymd] => 2025-02-21 05:18:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:18:05' and `end` < '2025-02-21 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-21 05:18:17] Production.INFO: count ==80 [2025-02-21 05:18:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:18:05 - End Time 2025-02-21 05:18:05 [2025-02-21 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522883', 'tblTempUsageDetail_20' ) start [2025-02-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522883', 'tblTempUsageDetail_20' ) end [2025-02-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522883', 'tblTempVendorCDR_20' ) start [2025-02-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522883', 'tblTempVendorCDR_20' ) end [2025-02-21 05:18:17] Production.INFO: ProcessCDR(1,14522883,1,1,2) [2025-02-21 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522883', 'tblTempUsageDetail_20' ) start [2025-02-21 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522883', 'tblTempUsageDetail_20' ) end [2025-02-21 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:18:20] Production.INFO: ==31404== Releasing lock... [2025-02-21 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:18:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:19:05 [end_date_ymd] => 2025-02-21 05:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:19:05' and `end` < '2025-02-21 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-21 05:19:17] Production.INFO: count ==80 [2025-02-21 05:19:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:19:05 - End Time 2025-02-21 05:19:05 [2025-02-21 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522888', 'tblTempUsageDetail_20' ) start [2025-02-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522888', 'tblTempUsageDetail_20' ) end [2025-02-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522888', 'tblTempVendorCDR_20' ) start [2025-02-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522888', 'tblTempVendorCDR_20' ) end [2025-02-21 05:19:17] Production.INFO: ProcessCDR(1,14522888,1,1,2) [2025-02-21 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522888', 'tblTempUsageDetail_20' ) start [2025-02-21 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522888', 'tblTempUsageDetail_20' ) end [2025-02-21 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:19:20] Production.INFO: ==31477== Releasing lock... [2025-02-21 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:20:06 [end_date_ymd] => 2025-02-21 05:20:06 [RateCDR] => 1 ) [2025-02-21 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 02:20:06' and `end` < '2025-02-21 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 05:20:18] Production.INFO: count ==80 [2025-02-21 05:20:18] Production.ERROR: pbx CDR StartTime 2025-02-21 02:20:06 - End Time 2025-02-21 05:20:06 [2025-02-21 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522893', 'tblTempUsageDetail_20' ) start [2025-02-21 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522893', 'tblTempUsageDetail_20' ) end [2025-02-21 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522893', 'tblTempVendorCDR_20' ) start [2025-02-21 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522893', 'tblTempVendorCDR_20' ) end [2025-02-21 05:20:18] Production.INFO: ProcessCDR(1,14522893,1,1,2) [2025-02-21 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522893', 'tblTempUsageDetail_20' ) start [2025-02-21 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522893', 'tblTempUsageDetail_20' ) end [2025-02-21 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:20:21] Production.INFO: ==31555== Releasing lock... [2025-02-21 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:21:06 [end_date_ymd] => 2025-02-21 05:21:06 [RateCDR] => 1 ) [2025-02-21 05:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 02:21:06' and `end` < '2025-02-21 05:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 05:21:17] Production.INFO: count ==80 [2025-02-21 05:21:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:21:06 - End Time 2025-02-21 05:21:06 [2025-02-21 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522899', 'tblTempUsageDetail_20' ) start [2025-02-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522899', 'tblTempUsageDetail_20' ) end [2025-02-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522899', 'tblTempVendorCDR_20' ) start [2025-02-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522899', 'tblTempVendorCDR_20' ) end [2025-02-21 05:21:17] Production.INFO: ProcessCDR(1,14522899,1,1,2) [2025-02-21 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522899', 'tblTempUsageDetail_20' ) start [2025-02-21 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522899', 'tblTempUsageDetail_20' ) end [2025-02-21 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:21:20] Production.INFO: ==31626== Releasing lock... [2025-02-21 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:22:05 [end_date_ymd] => 2025-02-21 05:22:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:22:05' and `end` < '2025-02-21 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-21 05:22:16] Production.INFO: count ==80 [2025-02-21 05:22:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:22:05 - End Time 2025-02-21 05:22:05 [2025-02-21 05:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522904', 'tblTempUsageDetail_20' ) start [2025-02-21 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522904', 'tblTempUsageDetail_20' ) end [2025-02-21 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522904', 'tblTempVendorCDR_20' ) start [2025-02-21 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522904', 'tblTempVendorCDR_20' ) end [2025-02-21 05:22:16] Production.INFO: ProcessCDR(1,14522904,1,1,2) [2025-02-21 05:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522904', 'tblTempUsageDetail_20' ) start [2025-02-21 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522904', 'tblTempUsageDetail_20' ) end [2025-02-21 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:22:20] Production.INFO: ==31696== Releasing lock... [2025-02-21 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:22:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:23:05 [end_date_ymd] => 2025-02-21 05:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:23:05' and `end` < '2025-02-21 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-21 05:23:17] Production.INFO: count ==80 [2025-02-21 05:23:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:23:05 - End Time 2025-02-21 05:23:05 [2025-02-21 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522909', 'tblTempUsageDetail_20' ) start [2025-02-21 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522909', 'tblTempUsageDetail_20' ) end [2025-02-21 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522909', 'tblTempVendorCDR_20' ) start [2025-02-21 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522909', 'tblTempVendorCDR_20' ) end [2025-02-21 05:23:17] Production.INFO: ProcessCDR(1,14522909,1,1,2) [2025-02-21 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522909', 'tblTempUsageDetail_20' ) start [2025-02-21 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522909', 'tblTempUsageDetail_20' ) end [2025-02-21 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:23:20] Production.INFO: ==31770== Releasing lock... [2025-02-21 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:24:05 [end_date_ymd] => 2025-02-21 05:24:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:24:05' and `end` < '2025-02-21 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-21 05:24:17] Production.INFO: count ==80 [2025-02-21 05:24:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:24:05 - End Time 2025-02-21 05:24:05 [2025-02-21 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522914', 'tblTempUsageDetail_20' ) start [2025-02-21 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522914', 'tblTempUsageDetail_20' ) end [2025-02-21 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522914', 'tblTempVendorCDR_20' ) start [2025-02-21 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522914', 'tblTempVendorCDR_20' ) end [2025-02-21 05:24:17] Production.INFO: ProcessCDR(1,14522914,1,1,2) [2025-02-21 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522914', 'tblTempUsageDetail_20' ) start [2025-02-21 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522914', 'tblTempUsageDetail_20' ) end [2025-02-21 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:24:20] Production.INFO: ==31840== Releasing lock... [2025-02-21 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:24:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:25:05 [end_date_ymd] => 2025-02-21 05:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:25:05' and `end` < '2025-02-21 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-21 05:25:17] Production.INFO: count ==80 [2025-02-21 05:25:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:25:05 - End Time 2025-02-21 05:25:05 [2025-02-21 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522919', 'tblTempUsageDetail_20' ) start [2025-02-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522919', 'tblTempUsageDetail_20' ) end [2025-02-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522919', 'tblTempVendorCDR_20' ) start [2025-02-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522919', 'tblTempVendorCDR_20' ) end [2025-02-21 05:25:17] Production.INFO: ProcessCDR(1,14522919,1,1,2) [2025-02-21 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522919', 'tblTempUsageDetail_20' ) start [2025-02-21 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522919', 'tblTempUsageDetail_20' ) end [2025-02-21 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:25:20] Production.INFO: ==31917== Releasing lock... [2025-02-21 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:26:04 [end_date_ymd] => 2025-02-21 05:26:04 [RateCDR] => 1 ) [2025-02-21 05: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-21 02:26:04' and `end` < '2025-02-21 05: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-21 05:26:16] Production.INFO: count ==80 [2025-02-21 05:26:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:26:04 - End Time 2025-02-21 05:26:04 [2025-02-21 05:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522924', 'tblTempUsageDetail_20' ) start [2025-02-21 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522924', 'tblTempUsageDetail_20' ) end [2025-02-21 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522924', 'tblTempVendorCDR_20' ) start [2025-02-21 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522924', 'tblTempVendorCDR_20' ) end [2025-02-21 05:26:16] Production.INFO: ProcessCDR(1,14522924,1,1,2) [2025-02-21 05:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522924', 'tblTempUsageDetail_20' ) start [2025-02-21 05:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522924', 'tblTempUsageDetail_20' ) end [2025-02-21 05:26:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:26:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:26:19] Production.INFO: ==31992== Releasing lock... [2025-02-21 05:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:26:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:27:05 [end_date_ymd] => 2025-02-21 05:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:27:05' and `end` < '2025-02-21 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-21 05:27:16] Production.INFO: count ==80 [2025-02-21 05:27:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:27:05 - End Time 2025-02-21 05:27:05 [2025-02-21 05:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522929', 'tblTempUsageDetail_20' ) start [2025-02-21 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522929', 'tblTempUsageDetail_20' ) end [2025-02-21 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522929', 'tblTempVendorCDR_20' ) start [2025-02-21 05:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522929', 'tblTempVendorCDR_20' ) end [2025-02-21 05:27:16] Production.INFO: ProcessCDR(1,14522929,1,1,2) [2025-02-21 05:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522929', 'tblTempUsageDetail_20' ) start [2025-02-21 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522929', 'tblTempUsageDetail_20' ) end [2025-02-21 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:27:20] Production.INFO: ==32063== Releasing lock... [2025-02-21 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:28:05 [end_date_ymd] => 2025-02-21 05:28:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:28:05' and `end` < '2025-02-21 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-21 05:28:17] Production.INFO: count ==80 [2025-02-21 05:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:28:05 - End Time 2025-02-21 05:28:05 [2025-02-21 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522934', 'tblTempUsageDetail_20' ) start [2025-02-21 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522934', 'tblTempUsageDetail_20' ) end [2025-02-21 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522934', 'tblTempVendorCDR_20' ) start [2025-02-21 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522934', 'tblTempVendorCDR_20' ) end [2025-02-21 05:28:17] Production.INFO: ProcessCDR(1,14522934,1,1,2) [2025-02-21 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522934', 'tblTempUsageDetail_20' ) start [2025-02-21 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522934', 'tblTempUsageDetail_20' ) end [2025-02-21 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:28:20] Production.INFO: ==32133== Releasing lock... [2025-02-21 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:28:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:29:05 [end_date_ymd] => 2025-02-21 05:29:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:29:05' and `end` < '2025-02-21 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-21 05:29:17] Production.INFO: count ==80 [2025-02-21 05:29:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:29:05 - End Time 2025-02-21 05:29:05 [2025-02-21 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522939', 'tblTempUsageDetail_20' ) start [2025-02-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522939', 'tblTempUsageDetail_20' ) end [2025-02-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522939', 'tblTempVendorCDR_20' ) start [2025-02-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522939', 'tblTempVendorCDR_20' ) end [2025-02-21 05:29:17] Production.INFO: ProcessCDR(1,14522939,1,1,2) [2025-02-21 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522939', 'tblTempUsageDetail_20' ) start [2025-02-21 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522939', 'tblTempUsageDetail_20' ) end [2025-02-21 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:29:20] Production.INFO: ==32204== Releasing lock... [2025-02-21 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:30:06 [end_date_ymd] => 2025-02-21 05:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 02:30:06' and `end` < '2025-02-21 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-21 05:30:18] Production.INFO: count ==69 [2025-02-21 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-21 02:30:06 - End Time 2025-02-21 05:30:06 [2025-02-21 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522944', 'tblTempUsageDetail_20' ) start [2025-02-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522944', 'tblTempUsageDetail_20' ) end [2025-02-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522944', 'tblTempVendorCDR_20' ) start [2025-02-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522944', 'tblTempVendorCDR_20' ) end [2025-02-21 05:30:18] Production.INFO: ProcessCDR(1,14522944,1,1,2) [2025-02-21 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522944', 'tblTempUsageDetail_20' ) start [2025-02-21 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522944', 'tblTempUsageDetail_20' ) end [2025-02-21 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:30:21] Production.INFO: ==32278== Releasing lock... [2025-02-21 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:31:04 [end_date_ymd] => 2025-02-21 05:31:04 [RateCDR] => 1 ) [2025-02-21 05: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-21 02:31:04' and `end` < '2025-02-21 05: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-21 05:31:16] Production.INFO: count ==68 [2025-02-21 05:31:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:31:04 - End Time 2025-02-21 05:31:04 [2025-02-21 05:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522950', 'tblTempUsageDetail_20' ) start [2025-02-21 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522950', 'tblTempUsageDetail_20' ) end [2025-02-21 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522950', 'tblTempVendorCDR_20' ) start [2025-02-21 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522950', 'tblTempVendorCDR_20' ) end [2025-02-21 05:31:16] Production.INFO: ProcessCDR(1,14522950,1,1,2) [2025-02-21 05:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522950', 'tblTempUsageDetail_20' ) start [2025-02-21 05:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522950', 'tblTempUsageDetail_20' ) end [2025-02-21 05:31:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:31:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:31:19] Production.INFO: ==32353== Releasing lock... [2025-02-21 05:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:31:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:32:05 [end_date_ymd] => 2025-02-21 05:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:32:05' and `end` < '2025-02-21 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-21 05:32:17] Production.INFO: count ==68 [2025-02-21 05:32:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:32:05 - End Time 2025-02-21 05:32:05 [2025-02-21 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522955', 'tblTempUsageDetail_20' ) start [2025-02-21 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522955', 'tblTempUsageDetail_20' ) end [2025-02-21 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522955', 'tblTempVendorCDR_20' ) start [2025-02-21 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522955', 'tblTempVendorCDR_20' ) end [2025-02-21 05:32:17] Production.INFO: ProcessCDR(1,14522955,1,1,2) [2025-02-21 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522955', 'tblTempUsageDetail_20' ) start [2025-02-21 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522955', 'tblTempUsageDetail_20' ) end [2025-02-21 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:32:20] Production.INFO: ==32462== Releasing lock... [2025-02-21 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:33:05 [end_date_ymd] => 2025-02-21 05:33:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:33:05' and `end` < '2025-02-21 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-21 05:33:16] Production.INFO: count ==68 [2025-02-21 05:33:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:33:05 - End Time 2025-02-21 05:33:05 [2025-02-21 05:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522960', 'tblTempUsageDetail_20' ) start [2025-02-21 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522960', 'tblTempUsageDetail_20' ) end [2025-02-21 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522960', 'tblTempVendorCDR_20' ) start [2025-02-21 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522960', 'tblTempVendorCDR_20' ) end [2025-02-21 05:33:16] Production.INFO: ProcessCDR(1,14522960,1,1,2) [2025-02-21 05:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522960', 'tblTempUsageDetail_20' ) start [2025-02-21 05:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522960', 'tblTempUsageDetail_20' ) end [2025-02-21 05:33:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:33:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:33:19] Production.INFO: ==32549== Releasing lock... [2025-02-21 05:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:33:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:34:05 [end_date_ymd] => 2025-02-21 05:34:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:34:05' and `end` < '2025-02-21 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-21 05:34:17] Production.INFO: count ==67 [2025-02-21 05:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:34:05 - End Time 2025-02-21 05:34:05 [2025-02-21 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522965', 'tblTempUsageDetail_20' ) start [2025-02-21 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522965', 'tblTempUsageDetail_20' ) end [2025-02-21 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522965', 'tblTempVendorCDR_20' ) start [2025-02-21 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522965', 'tblTempVendorCDR_20' ) end [2025-02-21 05:34:17] Production.INFO: ProcessCDR(1,14522965,1,1,2) [2025-02-21 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522965', 'tblTempUsageDetail_20' ) start [2025-02-21 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522965', 'tblTempUsageDetail_20' ) end [2025-02-21 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:34:20] Production.INFO: ==32627== Releasing lock... [2025-02-21 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:34:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:35:05 [end_date_ymd] => 2025-02-21 05:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:35:05' and `end` < '2025-02-21 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-21 05:35:16] Production.INFO: count ==67 [2025-02-21 05:35:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:35:05 - End Time 2025-02-21 05:35:05 [2025-02-21 05:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522970', 'tblTempUsageDetail_20' ) start [2025-02-21 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522970', 'tblTempUsageDetail_20' ) end [2025-02-21 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522970', 'tblTempVendorCDR_20' ) start [2025-02-21 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522970', 'tblTempVendorCDR_20' ) end [2025-02-21 05:35:16] Production.INFO: ProcessCDR(1,14522970,1,1,2) [2025-02-21 05:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522970', 'tblTempUsageDetail_20' ) start [2025-02-21 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522970', 'tblTempUsageDetail_20' ) end [2025-02-21 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:35:20] Production.INFO: ==32705== Releasing lock... [2025-02-21 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:36:05 [end_date_ymd] => 2025-02-21 05:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:36:05' and `end` < '2025-02-21 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-21 05:36:17] Production.INFO: count ==67 [2025-02-21 05:36:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:36:05 - End Time 2025-02-21 05:36:05 [2025-02-21 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522975', 'tblTempUsageDetail_20' ) start [2025-02-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522975', 'tblTempUsageDetail_20' ) end [2025-02-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522975', 'tblTempVendorCDR_20' ) start [2025-02-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522975', 'tblTempVendorCDR_20' ) end [2025-02-21 05:36:17] Production.INFO: ProcessCDR(1,14522975,1,1,2) [2025-02-21 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522975', 'tblTempUsageDetail_20' ) start [2025-02-21 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522975', 'tblTempUsageDetail_20' ) end [2025-02-21 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:36:20] Production.INFO: ==321== Releasing lock... [2025-02-21 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:36:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:37:05 [end_date_ymd] => 2025-02-21 05:37:05 [RateCDR] => 1 ) [2025-02-21 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 02:37:05' and `end` < '2025-02-21 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 05:37:16] Production.INFO: count ==67 [2025-02-21 05:37:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:37:05 - End Time 2025-02-21 05:37:05 [2025-02-21 05:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522980', 'tblTempUsageDetail_20' ) start [2025-02-21 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522980', 'tblTempUsageDetail_20' ) end [2025-02-21 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522980', 'tblTempVendorCDR_20' ) start [2025-02-21 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522980', 'tblTempVendorCDR_20' ) end [2025-02-21 05:37:16] Production.INFO: ProcessCDR(1,14522980,1,1,2) [2025-02-21 05:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522980', 'tblTempUsageDetail_20' ) start [2025-02-21 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522980', 'tblTempUsageDetail_20' ) end [2025-02-21 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:37:20] Production.INFO: ==415== Releasing lock... [2025-02-21 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:38:05 [end_date_ymd] => 2025-02-21 05:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:38:05' and `end` < '2025-02-21 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-21 05:38:17] Production.INFO: count ==67 [2025-02-21 05:38:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:38:05 - End Time 2025-02-21 05:38:05 [2025-02-21 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522985', 'tblTempUsageDetail_20' ) start [2025-02-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522985', 'tblTempUsageDetail_20' ) end [2025-02-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522985', 'tblTempVendorCDR_20' ) start [2025-02-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522985', 'tblTempVendorCDR_20' ) end [2025-02-21 05:38:17] Production.INFO: ProcessCDR(1,14522985,1,1,2) [2025-02-21 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522985', 'tblTempUsageDetail_20' ) start [2025-02-21 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522985', 'tblTempUsageDetail_20' ) end [2025-02-21 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:38:20] Production.INFO: ==488== Releasing lock... [2025-02-21 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:39:05 [end_date_ymd] => 2025-02-21 05:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:39:05' and `end` < '2025-02-21 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-21 05:39:16] Production.INFO: count ==71 [2025-02-21 05:39:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:39:05 - End Time 2025-02-21 05:39:05 [2025-02-21 05:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522990', 'tblTempUsageDetail_20' ) start [2025-02-21 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522990', 'tblTempUsageDetail_20' ) end [2025-02-21 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522990', 'tblTempVendorCDR_20' ) start [2025-02-21 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522990', 'tblTempVendorCDR_20' ) end [2025-02-21 05:39:16] Production.INFO: ProcessCDR(1,14522990,1,1,2) [2025-02-21 05:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522990', 'tblTempUsageDetail_20' ) start [2025-02-21 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522990', 'tblTempUsageDetail_20' ) end [2025-02-21 05:39:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:39:20] Production.INFO: ==559== Releasing lock... [2025-02-21 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:40:06 [end_date_ymd] => 2025-02-21 05:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 02:40:06' and `end` < '2025-02-21 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-21 05:40:17] Production.INFO: count ==68 [2025-02-21 05:40:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:40:06 - End Time 2025-02-21 05:40:06 [2025-02-21 05:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522995', 'tblTempUsageDetail_20' ) start [2025-02-21 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14522995', 'tblTempUsageDetail_20' ) end [2025-02-21 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522995', 'tblTempVendorCDR_20' ) start [2025-02-21 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14522995', 'tblTempVendorCDR_20' ) end [2025-02-21 05:40:17] Production.INFO: ProcessCDR(1,14522995,1,1,2) [2025-02-21 05:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14522995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14522995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14522995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14522995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522995', 'tblTempUsageDetail_20' ) start [2025-02-21 05:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14522995', 'tblTempUsageDetail_20' ) end [2025-02-21 05:40:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:40:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:40:20] Production.INFO: ==640== Releasing lock... [2025-02-21 05:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:40:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:41:06 [end_date_ymd] => 2025-02-21 05:41:06 [RateCDR] => 1 ) [2025-02-21 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-21 02:41:06' and `end` < '2025-02-21 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-21 05:41:17] Production.INFO: count ==68 [2025-02-21 05:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:41:06 - End Time 2025-02-21 05:41:06 [2025-02-21 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523001', 'tblTempUsageDetail_20' ) start [2025-02-21 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523001', 'tblTempUsageDetail_20' ) end [2025-02-21 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523001', 'tblTempVendorCDR_20' ) start [2025-02-21 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523001', 'tblTempVendorCDR_20' ) end [2025-02-21 05:41:17] Production.INFO: ProcessCDR(1,14523001,1,1,2) [2025-02-21 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523001', 'tblTempUsageDetail_20' ) start [2025-02-21 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523001', 'tblTempUsageDetail_20' ) end [2025-02-21 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:41:21] Production.INFO: ==736== Releasing lock... [2025-02-21 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:42:05 [end_date_ymd] => 2025-02-21 05:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:42:05' and `end` < '2025-02-21 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-21 05:42:17] Production.INFO: count ==68 [2025-02-21 05:42:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:42:05 - End Time 2025-02-21 05:42:05 [2025-02-21 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523006', 'tblTempUsageDetail_20' ) start [2025-02-21 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523006', 'tblTempUsageDetail_20' ) end [2025-02-21 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523006', 'tblTempVendorCDR_20' ) start [2025-02-21 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523006', 'tblTempVendorCDR_20' ) end [2025-02-21 05:42:17] Production.INFO: ProcessCDR(1,14523006,1,1,2) [2025-02-21 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523006', 'tblTempUsageDetail_20' ) start [2025-02-21 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523006', 'tblTempUsageDetail_20' ) end [2025-02-21 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:42:20] Production.INFO: ==810== Releasing lock... [2025-02-21 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:42:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:43:06 [end_date_ymd] => 2025-02-21 05:43:06 [RateCDR] => 1 ) [2025-02-21 05: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-21 02:43:06' and `end` < '2025-02-21 05: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-21 05:43:18] Production.INFO: count ==68 [2025-02-21 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-21 02:43:06 - End Time 2025-02-21 05:43:06 [2025-02-21 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523011', 'tblTempUsageDetail_20' ) start [2025-02-21 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523011', 'tblTempUsageDetail_20' ) end [2025-02-21 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523011', 'tblTempVendorCDR_20' ) start [2025-02-21 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523011', 'tblTempVendorCDR_20' ) end [2025-02-21 05:43:18] Production.INFO: ProcessCDR(1,14523011,1,1,2) [2025-02-21 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523011', 'tblTempUsageDetail_20' ) start [2025-02-21 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523011', 'tblTempUsageDetail_20' ) end [2025-02-21 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:43:21] Production.INFO: ==883== Releasing lock... [2025-02-21 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:44:05 [end_date_ymd] => 2025-02-21 05:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:44:05' and `end` < '2025-02-21 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-21 05:44:17] Production.INFO: count ==68 [2025-02-21 05:44:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:44:05 - End Time 2025-02-21 05:44:05 [2025-02-21 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523016', 'tblTempUsageDetail_20' ) start [2025-02-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523016', 'tblTempUsageDetail_20' ) end [2025-02-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523016', 'tblTempVendorCDR_20' ) start [2025-02-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523016', 'tblTempVendorCDR_20' ) end [2025-02-21 05:44:17] Production.INFO: ProcessCDR(1,14523016,1,1,2) [2025-02-21 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523016', 'tblTempUsageDetail_20' ) start [2025-02-21 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523016', 'tblTempUsageDetail_20' ) end [2025-02-21 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:44:20] Production.INFO: ==960== Releasing lock... [2025-02-21 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:45:05 [end_date_ymd] => 2025-02-21 05:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:45:05' and `end` < '2025-02-21 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-21 05:45:17] Production.INFO: count ==68 [2025-02-21 05:45:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:45:05 - End Time 2025-02-21 05:45:05 [2025-02-21 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523021', 'tblTempUsageDetail_20' ) start [2025-02-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523021', 'tblTempUsageDetail_20' ) end [2025-02-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523021', 'tblTempVendorCDR_20' ) start [2025-02-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523021', 'tblTempVendorCDR_20' ) end [2025-02-21 05:45:17] Production.INFO: ProcessCDR(1,14523021,1,1,2) [2025-02-21 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523021', 'tblTempUsageDetail_20' ) start [2025-02-21 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523021', 'tblTempUsageDetail_20' ) end [2025-02-21 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:45:20] Production.INFO: ==1033== Releasing lock... [2025-02-21 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:46:05 [end_date_ymd] => 2025-02-21 05:46:05 [RateCDR] => 1 ) [2025-02-21 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 02:46:05' and `end` < '2025-02-21 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 05:46:17] Production.INFO: count ==68 [2025-02-21 05:46:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:46:05 - End Time 2025-02-21 05:46:05 [2025-02-21 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523026', 'tblTempUsageDetail_20' ) start [2025-02-21 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523026', 'tblTempUsageDetail_20' ) end [2025-02-21 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523026', 'tblTempVendorCDR_20' ) start [2025-02-21 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523026', 'tblTempVendorCDR_20' ) end [2025-02-21 05:46:17] Production.INFO: ProcessCDR(1,14523026,1,1,2) [2025-02-21 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523026', 'tblTempUsageDetail_20' ) start [2025-02-21 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523026', 'tblTempUsageDetail_20' ) end [2025-02-21 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:46:20] Production.INFO: ==1106== Releasing lock... [2025-02-21 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:47:05 [end_date_ymd] => 2025-02-21 05:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:47:05' and `end` < '2025-02-21 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-21 05:47:17] Production.INFO: count ==68 [2025-02-21 05:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:47:05 - End Time 2025-02-21 05:47:05 [2025-02-21 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523031', 'tblTempUsageDetail_20' ) start [2025-02-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523031', 'tblTempUsageDetail_20' ) end [2025-02-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523031', 'tblTempVendorCDR_20' ) start [2025-02-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523031', 'tblTempVendorCDR_20' ) end [2025-02-21 05:47:17] Production.INFO: ProcessCDR(1,14523031,1,1,2) [2025-02-21 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523031', 'tblTempUsageDetail_20' ) start [2025-02-21 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523031', 'tblTempUsageDetail_20' ) end [2025-02-21 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:47:20] Production.INFO: ==1223== Releasing lock... [2025-02-21 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:48:05 [end_date_ymd] => 2025-02-21 05:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:48:05' and `end` < '2025-02-21 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-21 05:48:16] Production.INFO: count ==68 [2025-02-21 05:48:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:48:05 - End Time 2025-02-21 05:48:05 [2025-02-21 05:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523036', 'tblTempUsageDetail_20' ) start [2025-02-21 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523036', 'tblTempUsageDetail_20' ) end [2025-02-21 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523036', 'tblTempVendorCDR_20' ) start [2025-02-21 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523036', 'tblTempVendorCDR_20' ) end [2025-02-21 05:48:16] Production.INFO: ProcessCDR(1,14523036,1,1,2) [2025-02-21 05:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523036', 'tblTempUsageDetail_20' ) start [2025-02-21 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523036', 'tblTempUsageDetail_20' ) end [2025-02-21 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:48:20] Production.INFO: ==1304== Releasing lock... [2025-02-21 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:48:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:49:05 [end_date_ymd] => 2025-02-21 05:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:49:05' and `end` < '2025-02-21 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-21 05:49:17] Production.INFO: count ==64 [2025-02-21 05:49:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:49:05 - End Time 2025-02-21 05:49:05 [2025-02-21 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523041', 'tblTempUsageDetail_20' ) start [2025-02-21 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523041', 'tblTempUsageDetail_20' ) end [2025-02-21 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523041', 'tblTempVendorCDR_20' ) start [2025-02-21 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523041', 'tblTempVendorCDR_20' ) end [2025-02-21 05:49:17] Production.INFO: ProcessCDR(1,14523041,1,1,2) [2025-02-21 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523041', 'tblTempUsageDetail_20' ) start [2025-02-21 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523041', 'tblTempUsageDetail_20' ) end [2025-02-21 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:49:20] Production.INFO: ==1375== Releasing lock... [2025-02-21 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:50:06 [end_date_ymd] => 2025-02-21 05:50:06 [RateCDR] => 1 ) [2025-02-21 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-21 02:50:06' and `end` < '2025-02-21 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-21 05:50:18] Production.INFO: count ==64 [2025-02-21 05:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 02:50:06 - End Time 2025-02-21 05:50:06 [2025-02-21 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523047', 'tblTempUsageDetail_20' ) start [2025-02-21 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523047', 'tblTempUsageDetail_20' ) end [2025-02-21 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523047', 'tblTempVendorCDR_20' ) start [2025-02-21 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523047', 'tblTempVendorCDR_20' ) end [2025-02-21 05:50:18] Production.INFO: ProcessCDR(1,14523047,1,1,2) [2025-02-21 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523047', 'tblTempUsageDetail_20' ) start [2025-02-21 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523047', 'tblTempUsageDetail_20' ) end [2025-02-21 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:50:21] Production.INFO: ==1448== Releasing lock... [2025-02-21 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:51:06 [end_date_ymd] => 2025-02-21 05:51:06 [RateCDR] => 1 ) [2025-02-21 05: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-21 02:51:06' and `end` < '2025-02-21 05: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-21 05:51:18] Production.INFO: count ==64 [2025-02-21 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-21 02:51:06 - End Time 2025-02-21 05:51:06 [2025-02-21 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523052', 'tblTempUsageDetail_20' ) start [2025-02-21 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523052', 'tblTempUsageDetail_20' ) end [2025-02-21 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523052', 'tblTempVendorCDR_20' ) start [2025-02-21 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523052', 'tblTempVendorCDR_20' ) end [2025-02-21 05:51:18] Production.INFO: ProcessCDR(1,14523052,1,1,2) [2025-02-21 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523052', 'tblTempUsageDetail_20' ) start [2025-02-21 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523052', 'tblTempUsageDetail_20' ) end [2025-02-21 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:51:21] Production.INFO: ==1551== Releasing lock... [2025-02-21 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:52:05 [end_date_ymd] => 2025-02-21 05:52:05 [RateCDR] => 1 ) [2025-02-21 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 02:52:05' and `end` < '2025-02-21 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 05:52:17] Production.INFO: count ==64 [2025-02-21 05:52:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:52:05 - End Time 2025-02-21 05:52:05 [2025-02-21 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523057', 'tblTempUsageDetail_20' ) start [2025-02-21 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523057', 'tblTempUsageDetail_20' ) end [2025-02-21 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523057', 'tblTempVendorCDR_20' ) start [2025-02-21 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523057', 'tblTempVendorCDR_20' ) end [2025-02-21 05:52:17] Production.INFO: ProcessCDR(1,14523057,1,1,2) [2025-02-21 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523057', 'tblTempUsageDetail_20' ) start [2025-02-21 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523057', 'tblTempUsageDetail_20' ) end [2025-02-21 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:52:20] Production.INFO: ==1626== Releasing lock... [2025-02-21 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:52:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:53:05 [end_date_ymd] => 2025-02-21 05:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:53:05' and `end` < '2025-02-21 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-21 05:53:17] Production.INFO: count ==64 [2025-02-21 05:53:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:53:05 - End Time 2025-02-21 05:53:05 [2025-02-21 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523062', 'tblTempUsageDetail_20' ) start [2025-02-21 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523062', 'tblTempUsageDetail_20' ) end [2025-02-21 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523062', 'tblTempVendorCDR_20' ) start [2025-02-21 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523062', 'tblTempVendorCDR_20' ) end [2025-02-21 05:53:17] Production.INFO: ProcessCDR(1,14523062,1,1,2) [2025-02-21 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523062', 'tblTempUsageDetail_20' ) start [2025-02-21 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523062', 'tblTempUsageDetail_20' ) end [2025-02-21 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:53:20] Production.INFO: ==1699== Releasing lock... [2025-02-21 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:54:05 [end_date_ymd] => 2025-02-21 05:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:54:05' and `end` < '2025-02-21 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-21 05:54:17] Production.INFO: count ==64 [2025-02-21 05:54:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:54:05 - End Time 2025-02-21 05:54:05 [2025-02-21 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523067', 'tblTempUsageDetail_20' ) start [2025-02-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523067', 'tblTempUsageDetail_20' ) end [2025-02-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523067', 'tblTempVendorCDR_20' ) start [2025-02-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523067', 'tblTempVendorCDR_20' ) end [2025-02-21 05:54:17] Production.INFO: ProcessCDR(1,14523067,1,1,2) [2025-02-21 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523067', 'tblTempUsageDetail_20' ) start [2025-02-21 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523067', 'tblTempUsageDetail_20' ) end [2025-02-21 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:54:20] Production.INFO: ==1770== Releasing lock... [2025-02-21 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:55:05 [end_date_ymd] => 2025-02-21 05:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:55:05' and `end` < '2025-02-21 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-21 05:55:17] Production.INFO: count ==64 [2025-02-21 05:55:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:55:05 - End Time 2025-02-21 05:55:05 [2025-02-21 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523072', 'tblTempUsageDetail_20' ) start [2025-02-21 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523072', 'tblTempUsageDetail_20' ) end [2025-02-21 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523072', 'tblTempVendorCDR_20' ) start [2025-02-21 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523072', 'tblTempVendorCDR_20' ) end [2025-02-21 05:55:17] Production.INFO: ProcessCDR(1,14523072,1,1,2) [2025-02-21 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523072', 'tblTempUsageDetail_20' ) start [2025-02-21 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523072', 'tblTempUsageDetail_20' ) end [2025-02-21 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:55:20] Production.INFO: ==1845== Releasing lock... [2025-02-21 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:56:04 [end_date_ymd] => 2025-02-21 05:56:04 [RateCDR] => 1 ) [2025-02-21 05: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-21 02:56:04' and `end` < '2025-02-21 05: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-21 05:56:16] Production.INFO: count ==64 [2025-02-21 05:56:16] Production.ERROR: pbx CDR StartTime 2025-02-21 02:56:04 - End Time 2025-02-21 05:56:04 [2025-02-21 05:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523077', 'tblTempUsageDetail_20' ) start [2025-02-21 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523077', 'tblTempUsageDetail_20' ) end [2025-02-21 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523077', 'tblTempVendorCDR_20' ) start [2025-02-21 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523077', 'tblTempVendorCDR_20' ) end [2025-02-21 05:56:16] Production.INFO: ProcessCDR(1,14523077,1,1,2) [2025-02-21 05:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523077', 'tblTempUsageDetail_20' ) start [2025-02-21 05:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523077', 'tblTempUsageDetail_20' ) end [2025-02-21 05:56:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:56:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:56:19] Production.INFO: ==1917== Releasing lock... [2025-02-21 05:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:56:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:57:05 [end_date_ymd] => 2025-02-21 05:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:57:05' and `end` < '2025-02-21 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-21 05:57:17] Production.INFO: count ==64 [2025-02-21 05:57:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:57:05 - End Time 2025-02-21 05:57:05 [2025-02-21 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523082', 'tblTempUsageDetail_20' ) start [2025-02-21 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523082', 'tblTempUsageDetail_20' ) end [2025-02-21 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523082', 'tblTempVendorCDR_20' ) start [2025-02-21 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523082', 'tblTempVendorCDR_20' ) end [2025-02-21 05:57:17] Production.INFO: ProcessCDR(1,14523082,1,1,2) [2025-02-21 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523082', 'tblTempUsageDetail_20' ) start [2025-02-21 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523082', 'tblTempUsageDetail_20' ) end [2025-02-21 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:57:20] Production.INFO: ==1989== Releasing lock... [2025-02-21 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:58:05 [end_date_ymd] => 2025-02-21 05:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:58:05' and `end` < '2025-02-21 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-21 05:58:17] Production.INFO: count ==64 [2025-02-21 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:58:05 - End Time 2025-02-21 05:58:05 [2025-02-21 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523087', 'tblTempUsageDetail_20' ) start [2025-02-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523087', 'tblTempUsageDetail_20' ) end [2025-02-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523087', 'tblTempVendorCDR_20' ) start [2025-02-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523087', 'tblTempVendorCDR_20' ) end [2025-02-21 05:58:17] Production.INFO: ProcessCDR(1,14523087,1,1,2) [2025-02-21 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523087', 'tblTempUsageDetail_20' ) start [2025-02-21 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523087', 'tblTempUsageDetail_20' ) end [2025-02-21 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:58:20] Production.INFO: ==2061== Releasing lock... [2025-02-21 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 02:59:05 [end_date_ymd] => 2025-02-21 05:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 02:59:05' and `end` < '2025-02-21 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-21 05:59:17] Production.INFO: count ==65 [2025-02-21 05:59:17] Production.ERROR: pbx CDR StartTime 2025-02-21 02:59:05 - End Time 2025-02-21 05:59:05 [2025-02-21 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523092', 'tblTempUsageDetail_20' ) start [2025-02-21 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523092', 'tblTempUsageDetail_20' ) end [2025-02-21 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523092', 'tblTempVendorCDR_20' ) start [2025-02-21 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523092', 'tblTempVendorCDR_20' ) end [2025-02-21 05:59:17] Production.INFO: ProcessCDR(1,14523092,1,1,2) [2025-02-21 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523092', 'tblTempUsageDetail_20' ) start [2025-02-21 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523092', 'tblTempUsageDetail_20' ) end [2025-02-21 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 05:59:22] Production.INFO: ==2131== Releasing lock... [2025-02-21 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 05:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:00:06 [end_date_ymd] => 2025-02-21 06:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 03:00:06' and `end` < '2025-02-21 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-21 06:00:18] Production.INFO: count ==57 [2025-02-21 06:00:18] Production.ERROR: pbx CDR StartTime 2025-02-21 03:00:06 - End Time 2025-02-21 06:00:06 [2025-02-21 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523097', 'tblTempUsageDetail_20' ) start [2025-02-21 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523097', 'tblTempUsageDetail_20' ) end [2025-02-21 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523097', 'tblTempVendorCDR_20' ) start [2025-02-21 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523097', 'tblTempVendorCDR_20' ) end [2025-02-21 06:00:18] Production.INFO: ProcessCDR(1,14523097,1,1,2) [2025-02-21 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523097', 'tblTempUsageDetail_20' ) start [2025-02-21 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523097', 'tblTempUsageDetail_20' ) end [2025-02-21 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:00:21] Production.INFO: ==2211== Releasing lock... [2025-02-21 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:00:21] Production.INFO: 28 MB #Memory Used# [2025-02-21 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:01:05 [end_date_ymd] => 2025-02-21 06:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:01:05' and `end` < '2025-02-21 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-21 06:01:17] Production.INFO: count ==57 [2025-02-21 06:01:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:01:05 - End Time 2025-02-21 06:01:05 [2025-02-21 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523103', 'tblTempUsageDetail_20' ) start [2025-02-21 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523103', 'tblTempUsageDetail_20' ) end [2025-02-21 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523103', 'tblTempVendorCDR_20' ) start [2025-02-21 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523103', 'tblTempVendorCDR_20' ) end [2025-02-21 06:01:17] Production.INFO: ProcessCDR(1,14523103,1,1,2) [2025-02-21 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523103', 'tblTempUsageDetail_20' ) start [2025-02-21 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523103', 'tblTempUsageDetail_20' ) end [2025-02-21 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:01:20] Production.INFO: ==2294== Releasing lock... [2025-02-21 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:01:20] Production.INFO: 28 MB #Memory Used# [2025-02-21 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:02:06 [end_date_ymd] => 2025-02-21 06:02:06 [RateCDR] => 1 ) [2025-02-21 06: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-21 03:02:06' and `end` < '2025-02-21 06: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-21 06:02:18] Production.INFO: count ==58 [2025-02-21 06:02:18] Production.ERROR: pbx CDR StartTime 2025-02-21 03:02:06 - End Time 2025-02-21 06:02:06 [2025-02-21 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523108', 'tblTempUsageDetail_20' ) start [2025-02-21 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523108', 'tblTempUsageDetail_20' ) end [2025-02-21 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523108', 'tblTempVendorCDR_20' ) start [2025-02-21 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523108', 'tblTempVendorCDR_20' ) end [2025-02-21 06:02:18] Production.INFO: ProcessCDR(1,14523108,1,1,2) [2025-02-21 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523108', 'tblTempUsageDetail_20' ) start [2025-02-21 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523108', 'tblTempUsageDetail_20' ) end [2025-02-21 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:02:21] Production.INFO: ==2412== Releasing lock... [2025-02-21 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:03:05 [end_date_ymd] => 2025-02-21 06:03:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:03:05' and `end` < '2025-02-21 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-21 06:03:17] Production.INFO: count ==59 [2025-02-21 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:03:05 - End Time 2025-02-21 06:03:05 [2025-02-21 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523113', 'tblTempUsageDetail_20' ) start [2025-02-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523113', 'tblTempUsageDetail_20' ) end [2025-02-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523113', 'tblTempVendorCDR_20' ) start [2025-02-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523113', 'tblTempVendorCDR_20' ) end [2025-02-21 06:03:17] Production.INFO: ProcessCDR(1,14523113,1,1,2) [2025-02-21 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523113', 'tblTempUsageDetail_20' ) start [2025-02-21 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523113', 'tblTempUsageDetail_20' ) end [2025-02-21 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:03:20] Production.INFO: ==2483== Releasing lock... [2025-02-21 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:04:06 [end_date_ymd] => 2025-02-21 06:04:06 [RateCDR] => 1 ) [2025-02-21 06: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-21 03:04:06' and `end` < '2025-02-21 06: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-21 06:04:18] Production.INFO: count ==64 [2025-02-21 06:04:18] Production.ERROR: pbx CDR StartTime 2025-02-21 03:04:06 - End Time 2025-02-21 06:04:06 [2025-02-21 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523118', 'tblTempUsageDetail_20' ) start [2025-02-21 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523118', 'tblTempUsageDetail_20' ) end [2025-02-21 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523118', 'tblTempVendorCDR_20' ) start [2025-02-21 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523118', 'tblTempVendorCDR_20' ) end [2025-02-21 06:04:18] Production.INFO: ProcessCDR(1,14523118,1,1,2) [2025-02-21 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523118', 'tblTempUsageDetail_20' ) start [2025-02-21 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523118', 'tblTempUsageDetail_20' ) end [2025-02-21 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:04:21] Production.INFO: ==2560== Releasing lock... [2025-02-21 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:05:05 [end_date_ymd] => 2025-02-21 06:05:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:05:05' and `end` < '2025-02-21 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-21 06:05:17] Production.INFO: count ==61 [2025-02-21 06:05:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:05:05 - End Time 2025-02-21 06:05:05 [2025-02-21 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523123', 'tblTempUsageDetail_20' ) start [2025-02-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523123', 'tblTempUsageDetail_20' ) end [2025-02-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523123', 'tblTempVendorCDR_20' ) start [2025-02-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523123', 'tblTempVendorCDR_20' ) end [2025-02-21 06:05:17] Production.INFO: ProcessCDR(1,14523123,1,1,2) [2025-02-21 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523123', 'tblTempUsageDetail_20' ) start [2025-02-21 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523123', 'tblTempUsageDetail_20' ) end [2025-02-21 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:05:20] Production.INFO: ==2629== Releasing lock... [2025-02-21 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:06:05 [end_date_ymd] => 2025-02-21 06:06:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:06:05' and `end` < '2025-02-21 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-21 06:06:17] Production.INFO: count ==60 [2025-02-21 06:06:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:06:05 - End Time 2025-02-21 06:06:05 [2025-02-21 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523128', 'tblTempUsageDetail_20' ) start [2025-02-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523128', 'tblTempUsageDetail_20' ) end [2025-02-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523128', 'tblTempVendorCDR_20' ) start [2025-02-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523128', 'tblTempVendorCDR_20' ) end [2025-02-21 06:06:17] Production.INFO: ProcessCDR(1,14523128,1,1,2) [2025-02-21 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523128', 'tblTempUsageDetail_20' ) start [2025-02-21 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523128', 'tblTempUsageDetail_20' ) end [2025-02-21 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:06:20] Production.INFO: ==2700== Releasing lock... [2025-02-21 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:06:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:07:05 [end_date_ymd] => 2025-02-21 06:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:07:05' and `end` < '2025-02-21 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-21 06:07:17] Production.INFO: count ==61 [2025-02-21 06:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:07:05 - End Time 2025-02-21 06:07:05 [2025-02-21 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523133', 'tblTempUsageDetail_20' ) start [2025-02-21 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523133', 'tblTempUsageDetail_20' ) end [2025-02-21 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523133', 'tblTempVendorCDR_20' ) start [2025-02-21 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523133', 'tblTempVendorCDR_20' ) end [2025-02-21 06:07:17] Production.INFO: ProcessCDR(1,14523133,1,1,2) [2025-02-21 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523133', 'tblTempUsageDetail_20' ) start [2025-02-21 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523133', 'tblTempUsageDetail_20' ) end [2025-02-21 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:07:21] Production.INFO: ==2770== Releasing lock... [2025-02-21 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:08:05 [end_date_ymd] => 2025-02-21 06:08:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:08:05' and `end` < '2025-02-21 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-21 06:08:17] Production.INFO: count ==61 [2025-02-21 06:08:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:08:05 - End Time 2025-02-21 06:08:05 [2025-02-21 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523138', 'tblTempUsageDetail_20' ) start [2025-02-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523138', 'tblTempUsageDetail_20' ) end [2025-02-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523138', 'tblTempVendorCDR_20' ) start [2025-02-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523138', 'tblTempVendorCDR_20' ) end [2025-02-21 06:08:17] Production.INFO: ProcessCDR(1,14523138,1,1,2) [2025-02-21 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523138', 'tblTempUsageDetail_20' ) start [2025-02-21 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523138', 'tblTempUsageDetail_20' ) end [2025-02-21 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:08:20] Production.INFO: ==2841== Releasing lock... [2025-02-21 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:09:05 [end_date_ymd] => 2025-02-21 06:09:05 [RateCDR] => 1 ) [2025-02-21 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:09:05' and `end` < '2025-02-21 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:09:16] Production.INFO: count ==66 [2025-02-21 06:09:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:09:05 - End Time 2025-02-21 06:09:05 [2025-02-21 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523143', 'tblTempUsageDetail_20' ) start [2025-02-21 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523143', 'tblTempUsageDetail_20' ) end [2025-02-21 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523143', 'tblTempVendorCDR_20' ) start [2025-02-21 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523143', 'tblTempVendorCDR_20' ) end [2025-02-21 06:09:17] Production.INFO: ProcessCDR(1,14523143,1,1,2) [2025-02-21 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523143', 'tblTempUsageDetail_20' ) start [2025-02-21 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523143', 'tblTempUsageDetail_20' ) end [2025-02-21 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:09:21] Production.INFO: ==2911== Releasing lock... [2025-02-21 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:10:06 [end_date_ymd] => 2025-02-21 06:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 03:10:06' and `end` < '2025-02-21 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-21 06:10:17] Production.INFO: count ==66 [2025-02-21 06:10:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:10:06 - End Time 2025-02-21 06:10:06 [2025-02-21 06:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523148', 'tblTempUsageDetail_20' ) start [2025-02-21 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523148', 'tblTempUsageDetail_20' ) end [2025-02-21 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523148', 'tblTempVendorCDR_20' ) start [2025-02-21 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523148', 'tblTempVendorCDR_20' ) end [2025-02-21 06:10:17] Production.INFO: ProcessCDR(1,14523148,1,1,2) [2025-02-21 06:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523148', 'tblTempUsageDetail_20' ) start [2025-02-21 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523148', 'tblTempUsageDetail_20' ) end [2025-02-21 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:10:21] Production.INFO: ==2985== Releasing lock... [2025-02-21 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:11:06 [end_date_ymd] => 2025-02-21 06:11:06 [RateCDR] => 1 ) [2025-02-21 06:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:11:06' and `end` < '2025-02-21 06:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:11:18] Production.INFO: count ==66 [2025-02-21 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-21 03:11:06 - End Time 2025-02-21 06:11:06 [2025-02-21 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523154', 'tblTempUsageDetail_20' ) start [2025-02-21 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523154', 'tblTempUsageDetail_20' ) end [2025-02-21 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523154', 'tblTempVendorCDR_20' ) start [2025-02-21 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523154', 'tblTempVendorCDR_20' ) end [2025-02-21 06:11:18] Production.INFO: ProcessCDR(1,14523154,1,1,2) [2025-02-21 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523154', 'tblTempUsageDetail_20' ) start [2025-02-21 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523154', 'tblTempUsageDetail_20' ) end [2025-02-21 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:11:21] Production.INFO: ==3060== Releasing lock... [2025-02-21 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:12:05 [end_date_ymd] => 2025-02-21 06:12:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:12:05' and `end` < '2025-02-21 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-21 06:12:17] Production.INFO: count ==66 [2025-02-21 06:12:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:12:05 - End Time 2025-02-21 06:12:05 [2025-02-21 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523159', 'tblTempUsageDetail_20' ) start [2025-02-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523159', 'tblTempUsageDetail_20' ) end [2025-02-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523159', 'tblTempVendorCDR_20' ) start [2025-02-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523159', 'tblTempVendorCDR_20' ) end [2025-02-21 06:12:17] Production.INFO: ProcessCDR(1,14523159,1,1,2) [2025-02-21 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523159', 'tblTempUsageDetail_20' ) start [2025-02-21 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523159', 'tblTempUsageDetail_20' ) end [2025-02-21 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:12:20] Production.INFO: ==3130== Releasing lock... [2025-02-21 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:13:06 [end_date_ymd] => 2025-02-21 06:13:06 [RateCDR] => 1 ) [2025-02-21 06:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:13:06' and `end` < '2025-02-21 06:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:13:17] Production.INFO: count ==65 [2025-02-21 06:13:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:13:06 - End Time 2025-02-21 06:13:06 [2025-02-21 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523164', 'tblTempUsageDetail_20' ) start [2025-02-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523164', 'tblTempUsageDetail_20' ) end [2025-02-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523164', 'tblTempVendorCDR_20' ) start [2025-02-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523164', 'tblTempVendorCDR_20' ) end [2025-02-21 06:13:17] Production.INFO: ProcessCDR(1,14523164,1,1,2) [2025-02-21 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523164', 'tblTempUsageDetail_20' ) start [2025-02-21 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523164', 'tblTempUsageDetail_20' ) end [2025-02-21 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:13:21] Production.INFO: ==3201== Releasing lock... [2025-02-21 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:14:05 [end_date_ymd] => 2025-02-21 06:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:14:05' and `end` < '2025-02-21 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-21 06:14:17] Production.INFO: count ==65 [2025-02-21 06:14:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:14:05 - End Time 2025-02-21 06:14:05 [2025-02-21 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523169', 'tblTempUsageDetail_20' ) start [2025-02-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523169', 'tblTempUsageDetail_20' ) end [2025-02-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523169', 'tblTempVendorCDR_20' ) start [2025-02-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523169', 'tblTempVendorCDR_20' ) end [2025-02-21 06:14:17] Production.INFO: ProcessCDR(1,14523169,1,1,2) [2025-02-21 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523169', 'tblTempUsageDetail_20' ) start [2025-02-21 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523169', 'tblTempUsageDetail_20' ) end [2025-02-21 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:14:20] Production.INFO: ==3277== Releasing lock... [2025-02-21 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:15:05 [end_date_ymd] => 2025-02-21 06:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:15:05' and `end` < '2025-02-21 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-21 06:15:17] Production.INFO: count ==65 [2025-02-21 06:15:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:15:05 - End Time 2025-02-21 06:15:05 [2025-02-21 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523174', 'tblTempUsageDetail_20' ) start [2025-02-21 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523174', 'tblTempUsageDetail_20' ) end [2025-02-21 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523174', 'tblTempVendorCDR_20' ) start [2025-02-21 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523174', 'tblTempVendorCDR_20' ) end [2025-02-21 06:15:17] Production.INFO: ProcessCDR(1,14523174,1,1,2) [2025-02-21 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523174', 'tblTempUsageDetail_20' ) start [2025-02-21 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523174', 'tblTempUsageDetail_20' ) end [2025-02-21 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:15:20] Production.INFO: ==3348== Releasing lock... [2025-02-21 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:16:05 [end_date_ymd] => 2025-02-21 06:16:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:16:05' and `end` < '2025-02-21 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-21 06:16:17] Production.INFO: count ==65 [2025-02-21 06:16:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:16:05 - End Time 2025-02-21 06:16:05 [2025-02-21 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523179', 'tblTempUsageDetail_20' ) start [2025-02-21 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523179', 'tblTempUsageDetail_20' ) end [2025-02-21 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523179', 'tblTempVendorCDR_20' ) start [2025-02-21 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523179', 'tblTempVendorCDR_20' ) end [2025-02-21 06:16:17] Production.INFO: ProcessCDR(1,14523179,1,1,2) [2025-02-21 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523179', 'tblTempUsageDetail_20' ) start [2025-02-21 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523179', 'tblTempUsageDetail_20' ) end [2025-02-21 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:16:20] Production.INFO: ==3418== Releasing lock... [2025-02-21 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:17:05 [end_date_ymd] => 2025-02-21 06:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:17:05' and `end` < '2025-02-21 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-21 06:17:17] Production.INFO: count ==65 [2025-02-21 06:17:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:17:05 - End Time 2025-02-21 06:17:05 [2025-02-21 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523184', 'tblTempUsageDetail_20' ) start [2025-02-21 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523184', 'tblTempUsageDetail_20' ) end [2025-02-21 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523184', 'tblTempVendorCDR_20' ) start [2025-02-21 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523184', 'tblTempVendorCDR_20' ) end [2025-02-21 06:17:17] Production.INFO: ProcessCDR(1,14523184,1,1,2) [2025-02-21 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523184', 'tblTempUsageDetail_20' ) start [2025-02-21 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523184', 'tblTempUsageDetail_20' ) end [2025-02-21 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:17:20] Production.INFO: ==3488== Releasing lock... [2025-02-21 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:18:05 [end_date_ymd] => 2025-02-21 06:18:05 [RateCDR] => 1 ) [2025-02-21 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:18:05' and `end` < '2025-02-21 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:18:16] Production.INFO: count ==65 [2025-02-21 06:18:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:18:05 - End Time 2025-02-21 06:18:05 [2025-02-21 06:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523189', 'tblTempUsageDetail_20' ) start [2025-02-21 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523189', 'tblTempUsageDetail_20' ) end [2025-02-21 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523189', 'tblTempVendorCDR_20' ) start [2025-02-21 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523189', 'tblTempVendorCDR_20' ) end [2025-02-21 06:18:16] Production.INFO: ProcessCDR(1,14523189,1,1,2) [2025-02-21 06:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523189', 'tblTempUsageDetail_20' ) start [2025-02-21 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523189', 'tblTempUsageDetail_20' ) end [2025-02-21 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:18:20] Production.INFO: ==3599== Releasing lock... [2025-02-21 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:18:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:19:05 [end_date_ymd] => 2025-02-21 06:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:19:05' and `end` < '2025-02-21 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-21 06:19:17] Production.INFO: count ==65 [2025-02-21 06:19:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:19:05 - End Time 2025-02-21 06:19:05 [2025-02-21 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523194', 'tblTempUsageDetail_20' ) start [2025-02-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523194', 'tblTempUsageDetail_20' ) end [2025-02-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523194', 'tblTempVendorCDR_20' ) start [2025-02-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523194', 'tblTempVendorCDR_20' ) end [2025-02-21 06:19:17] Production.INFO: ProcessCDR(1,14523194,1,1,2) [2025-02-21 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523194', 'tblTempUsageDetail_20' ) start [2025-02-21 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523194', 'tblTempUsageDetail_20' ) end [2025-02-21 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:19:20] Production.INFO: ==3670== Releasing lock... [2025-02-21 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:20:05 [end_date_ymd] => 2025-02-21 06:20:05 [RateCDR] => 1 ) [2025-02-21 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:20:05' and `end` < '2025-02-21 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:20:17] Production.INFO: count ==71 [2025-02-21 06:20:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:20:05 - End Time 2025-02-21 06:20:05 [2025-02-21 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523199', 'tblTempUsageDetail_20' ) start [2025-02-21 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523199', 'tblTempUsageDetail_20' ) end [2025-02-21 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523199', 'tblTempVendorCDR_20' ) start [2025-02-21 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523199', 'tblTempVendorCDR_20' ) end [2025-02-21 06:20:17] Production.INFO: ProcessCDR(1,14523199,1,1,2) [2025-02-21 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523199', 'tblTempUsageDetail_20' ) start [2025-02-21 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523199', 'tblTempUsageDetail_20' ) end [2025-02-21 06:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:20:20] Production.INFO: ==3743== Releasing lock... [2025-02-21 06:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:20:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:21:06 [end_date_ymd] => 2025-02-21 06:21:06 [RateCDR] => 1 ) [2025-02-21 06: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-21 03:21:06' and `end` < '2025-02-21 06: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-21 06:21:17] Production.INFO: count ==71 [2025-02-21 06:21:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:21:06 - End Time 2025-02-21 06:21:06 [2025-02-21 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523205', 'tblTempUsageDetail_20' ) start [2025-02-21 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523205', 'tblTempUsageDetail_20' ) end [2025-02-21 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523205', 'tblTempVendorCDR_20' ) start [2025-02-21 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523205', 'tblTempVendorCDR_20' ) end [2025-02-21 06:21:17] Production.INFO: ProcessCDR(1,14523205,1,1,2) [2025-02-21 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523205', 'tblTempUsageDetail_20' ) start [2025-02-21 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523205', 'tblTempUsageDetail_20' ) end [2025-02-21 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:21:20] Production.INFO: ==3817== Releasing lock... [2025-02-21 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:22:05 [end_date_ymd] => 2025-02-21 06:22:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:22:05' and `end` < '2025-02-21 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-21 06:22:17] Production.INFO: count ==71 [2025-02-21 06:22:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:22:05 - End Time 2025-02-21 06:22:05 [2025-02-21 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523210', 'tblTempUsageDetail_20' ) start [2025-02-21 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523210', 'tblTempUsageDetail_20' ) end [2025-02-21 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523210', 'tblTempVendorCDR_20' ) start [2025-02-21 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523210', 'tblTempVendorCDR_20' ) end [2025-02-21 06:22:17] Production.INFO: ProcessCDR(1,14523210,1,1,2) [2025-02-21 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523210', 'tblTempUsageDetail_20' ) start [2025-02-21 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523210', 'tblTempUsageDetail_20' ) end [2025-02-21 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:22:20] Production.INFO: ==3886== Releasing lock... [2025-02-21 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:22:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:23:05 [end_date_ymd] => 2025-02-21 06:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:23:05' and `end` < '2025-02-21 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-21 06:23:17] Production.INFO: count ==71 [2025-02-21 06:23:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:23:05 - End Time 2025-02-21 06:23:05 [2025-02-21 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523215', 'tblTempUsageDetail_20' ) start [2025-02-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523215', 'tblTempUsageDetail_20' ) end [2025-02-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523215', 'tblTempVendorCDR_20' ) start [2025-02-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523215', 'tblTempVendorCDR_20' ) end [2025-02-21 06:23:17] Production.INFO: ProcessCDR(1,14523215,1,1,2) [2025-02-21 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523215', 'tblTempUsageDetail_20' ) start [2025-02-21 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523215', 'tblTempUsageDetail_20' ) end [2025-02-21 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:23:20] Production.INFO: ==3961== Releasing lock... [2025-02-21 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:24:05 [end_date_ymd] => 2025-02-21 06:24:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:24:05' and `end` < '2025-02-21 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-21 06:24:16] Production.INFO: count ==71 [2025-02-21 06:24:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:24:05 - End Time 2025-02-21 06:24:05 [2025-02-21 06:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523219', 'tblTempUsageDetail_20' ) start [2025-02-21 06:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523219', 'tblTempUsageDetail_20' ) end [2025-02-21 06:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523219', 'tblTempVendorCDR_20' ) start [2025-02-21 06:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523219', 'tblTempVendorCDR_20' ) end [2025-02-21 06:24:16] Production.INFO: ProcessCDR(1,14523219,1,1,2) [2025-02-21 06:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523219', 'tblTempUsageDetail_20' ) start [2025-02-21 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523219', 'tblTempUsageDetail_20' ) end [2025-02-21 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:24:20] Production.INFO: ==4032== Releasing lock... [2025-02-21 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:24:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:25:05 [end_date_ymd] => 2025-02-21 06:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:25:05' and `end` < '2025-02-21 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-21 06:25:17] Production.INFO: count ==71 [2025-02-21 06:25:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:25:05 - End Time 2025-02-21 06:25:05 [2025-02-21 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523225', 'tblTempUsageDetail_20' ) start [2025-02-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523225', 'tblTempUsageDetail_20' ) end [2025-02-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523225', 'tblTempVendorCDR_20' ) start [2025-02-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523225', 'tblTempVendorCDR_20' ) end [2025-02-21 06:25:17] Production.INFO: ProcessCDR(1,14523225,1,1,2) [2025-02-21 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523225', 'tblTempUsageDetail_20' ) start [2025-02-21 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523225', 'tblTempUsageDetail_20' ) end [2025-02-21 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:25:20] Production.INFO: ==4105== Releasing lock... [2025-02-21 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:26:05 [end_date_ymd] => 2025-02-21 06:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:26:05' and `end` < '2025-02-21 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-21 06:26:16] Production.INFO: count ==71 [2025-02-21 06:26:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:26:05 - End Time 2025-02-21 06:26:05 [2025-02-21 06:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523230', 'tblTempUsageDetail_20' ) start [2025-02-21 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523230', 'tblTempUsageDetail_20' ) end [2025-02-21 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523230', 'tblTempVendorCDR_20' ) start [2025-02-21 06:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523230', 'tblTempVendorCDR_20' ) end [2025-02-21 06:26:16] Production.INFO: ProcessCDR(1,14523230,1,1,2) [2025-02-21 06:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523230', 'tblTempUsageDetail_20' ) start [2025-02-21 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523230', 'tblTempUsageDetail_20' ) end [2025-02-21 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:26:20] Production.INFO: ==4178== Releasing lock... [2025-02-21 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:27:05 [end_date_ymd] => 2025-02-21 06:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:27:05' and `end` < '2025-02-21 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-21 06:27:17] Production.INFO: count ==71 [2025-02-21 06:27:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:27:05 - End Time 2025-02-21 06:27:05 [2025-02-21 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523235', 'tblTempUsageDetail_20' ) start [2025-02-21 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523235', 'tblTempUsageDetail_20' ) end [2025-02-21 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523235', 'tblTempVendorCDR_20' ) start [2025-02-21 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523235', 'tblTempVendorCDR_20' ) end [2025-02-21 06:27:17] Production.INFO: ProcessCDR(1,14523235,1,1,2) [2025-02-21 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523235', 'tblTempUsageDetail_20' ) start [2025-02-21 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523235', 'tblTempUsageDetail_20' ) end [2025-02-21 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:27:20] Production.INFO: ==4252== Releasing lock... [2025-02-21 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:28:06 [end_date_ymd] => 2025-02-21 06:28:06 [RateCDR] => 1 ) [2025-02-21 06:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:28:06' and `end` < '2025-02-21 06:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:28:17] Production.INFO: count ==71 [2025-02-21 06:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:28:06 - End Time 2025-02-21 06:28:06 [2025-02-21 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523240', 'tblTempUsageDetail_20' ) start [2025-02-21 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523240', 'tblTempUsageDetail_20' ) end [2025-02-21 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523240', 'tblTempVendorCDR_20' ) start [2025-02-21 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523240', 'tblTempVendorCDR_20' ) end [2025-02-21 06:28:17] Production.INFO: ProcessCDR(1,14523240,1,1,2) [2025-02-21 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523240', 'tblTempUsageDetail_20' ) start [2025-02-21 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523240', 'tblTempUsageDetail_20' ) end [2025-02-21 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:28:21] Production.INFO: ==4327== Releasing lock... [2025-02-21 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:29:05 [end_date_ymd] => 2025-02-21 06:29:05 [RateCDR] => 1 ) [2025-02-21 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:29:05' and `end` < '2025-02-21 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:29:16] Production.INFO: count ==71 [2025-02-21 06:29:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:29:05 - End Time 2025-02-21 06:29:05 [2025-02-21 06:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523245', 'tblTempUsageDetail_20' ) start [2025-02-21 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523245', 'tblTempUsageDetail_20' ) end [2025-02-21 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523245', 'tblTempVendorCDR_20' ) start [2025-02-21 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523245', 'tblTempVendorCDR_20' ) end [2025-02-21 06:29:16] Production.INFO: ProcessCDR(1,14523245,1,1,2) [2025-02-21 06:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523245', 'tblTempUsageDetail_20' ) start [2025-02-21 06:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523245', 'tblTempUsageDetail_20' ) end [2025-02-21 06:29:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:29:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:29:19] Production.INFO: ==4401== Releasing lock... [2025-02-21 06:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:29:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:30:06 [end_date_ymd] => 2025-02-21 06:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 03:30:06' and `end` < '2025-02-21 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-21 06:30:18] Production.INFO: count ==79 [2025-02-21 06:30:18] Production.ERROR: pbx CDR StartTime 2025-02-21 03:30:06 - End Time 2025-02-21 06:30:06 [2025-02-21 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523251', 'tblTempUsageDetail_20' ) start [2025-02-21 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523251', 'tblTempUsageDetail_20' ) end [2025-02-21 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523251', 'tblTempVendorCDR_20' ) start [2025-02-21 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523251', 'tblTempVendorCDR_20' ) end [2025-02-21 06:30:18] Production.INFO: ProcessCDR(1,14523251,1,1,2) [2025-02-21 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523251', 'tblTempUsageDetail_20' ) start [2025-02-21 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523251', 'tblTempUsageDetail_20' ) end [2025-02-21 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:30:21] Production.INFO: ==4478== Releasing lock... [2025-02-21 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:31:05 [end_date_ymd] => 2025-02-21 06:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:31:05' and `end` < '2025-02-21 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-21 06:31:17] Production.INFO: count ==84 [2025-02-21 06:31:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:31:05 - End Time 2025-02-21 06:31:05 [2025-02-21 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523256', 'tblTempUsageDetail_20' ) start [2025-02-21 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523256', 'tblTempUsageDetail_20' ) end [2025-02-21 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523256', 'tblTempVendorCDR_20' ) start [2025-02-21 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523256', 'tblTempVendorCDR_20' ) end [2025-02-21 06:31:17] Production.INFO: ProcessCDR(1,14523256,1,1,2) [2025-02-21 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523256', 'tblTempUsageDetail_20' ) start [2025-02-21 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523256', 'tblTempUsageDetail_20' ) end [2025-02-21 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:31:20] Production.INFO: ==4556== Releasing lock... [2025-02-21 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:31:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:32:06 [end_date_ymd] => 2025-02-21 06:32:06 [RateCDR] => 1 ) [2025-02-21 06: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-21 03:32:06' and `end` < '2025-02-21 06: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-21 06:32:17] Production.INFO: count ==84 [2025-02-21 06:32:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:32:06 - End Time 2025-02-21 06:32:06 [2025-02-21 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523261', 'tblTempUsageDetail_20' ) start [2025-02-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523261', 'tblTempUsageDetail_20' ) end [2025-02-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523261', 'tblTempVendorCDR_20' ) start [2025-02-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523261', 'tblTempVendorCDR_20' ) end [2025-02-21 06:32:17] Production.INFO: ProcessCDR(1,14523261,1,1,2) [2025-02-21 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523261', 'tblTempUsageDetail_20' ) start [2025-02-21 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523261', 'tblTempUsageDetail_20' ) end [2025-02-21 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:32:21] Production.INFO: ==4641== Releasing lock... [2025-02-21 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:33:05 [end_date_ymd] => 2025-02-21 06:33:05 [RateCDR] => 1 ) [2025-02-21 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:33:05' and `end` < '2025-02-21 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-21 06:33:16] Production.INFO: count ==84 [2025-02-21 06:33:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:33:05 - End Time 2025-02-21 06:33:05 [2025-02-21 06:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523266', 'tblTempUsageDetail_20' ) start [2025-02-21 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523266', 'tblTempUsageDetail_20' ) end [2025-02-21 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523266', 'tblTempVendorCDR_20' ) start [2025-02-21 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523266', 'tblTempVendorCDR_20' ) end [2025-02-21 06:33:16] Production.INFO: ProcessCDR(1,14523266,1,1,2) [2025-02-21 06:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523266', 'tblTempUsageDetail_20' ) start [2025-02-21 06:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523266', 'tblTempUsageDetail_20' ) end [2025-02-21 06:33:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:33:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:33:19] Production.INFO: ==4758== Releasing lock... [2025-02-21 06:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:33:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:34:05 [end_date_ymd] => 2025-02-21 06:34:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:34:05' and `end` < '2025-02-21 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-21 06:34:17] Production.INFO: count ==84 [2025-02-21 06:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:34:05 - End Time 2025-02-21 06:34:05 [2025-02-21 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523271', 'tblTempUsageDetail_20' ) start [2025-02-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523271', 'tblTempUsageDetail_20' ) end [2025-02-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523271', 'tblTempVendorCDR_20' ) start [2025-02-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523271', 'tblTempVendorCDR_20' ) end [2025-02-21 06:34:17] Production.INFO: ProcessCDR(1,14523271,1,1,2) [2025-02-21 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523271', 'tblTempUsageDetail_20' ) start [2025-02-21 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523271', 'tblTempUsageDetail_20' ) end [2025-02-21 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:34:20] Production.INFO: ==4834== Releasing lock... [2025-02-21 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:35:05 [end_date_ymd] => 2025-02-21 06:35:05 [RateCDR] => 1 ) [2025-02-21 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:35:05' and `end` < '2025-02-21 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:35:17] Production.INFO: count ==84 [2025-02-21 06:35:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:35:05 - End Time 2025-02-21 06:35:05 [2025-02-21 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523276', 'tblTempUsageDetail_20' ) start [2025-02-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523276', 'tblTempUsageDetail_20' ) end [2025-02-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523276', 'tblTempVendorCDR_20' ) start [2025-02-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523276', 'tblTempVendorCDR_20' ) end [2025-02-21 06:35:17] Production.INFO: ProcessCDR(1,14523276,1,1,2) [2025-02-21 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523276', 'tblTempUsageDetail_20' ) start [2025-02-21 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523276', 'tblTempUsageDetail_20' ) end [2025-02-21 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:35:20] Production.INFO: ==4909== Releasing lock... [2025-02-21 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:36:06 [end_date_ymd] => 2025-02-21 06:36:06 [RateCDR] => 1 ) [2025-02-21 06:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:36:06' and `end` < '2025-02-21 06:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:36:18] Production.INFO: count ==84 [2025-02-21 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-21 03:36:06 - End Time 2025-02-21 06:36:06 [2025-02-21 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523281', 'tblTempUsageDetail_20' ) start [2025-02-21 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523281', 'tblTempUsageDetail_20' ) end [2025-02-21 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523281', 'tblTempVendorCDR_20' ) start [2025-02-21 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523281', 'tblTempVendorCDR_20' ) end [2025-02-21 06:36:18] Production.INFO: ProcessCDR(1,14523281,1,1,2) [2025-02-21 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523281', 'tblTempUsageDetail_20' ) start [2025-02-21 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523281', 'tblTempUsageDetail_20' ) end [2025-02-21 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:36:21] Production.INFO: ==4991== Releasing lock... [2025-02-21 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:37:04 [end_date_ymd] => 2025-02-21 06:37:04 [RateCDR] => 1 ) [2025-02-21 06: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-21 03:37:04' and `end` < '2025-02-21 06: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-21 06:37:16] Production.INFO: count ==84 [2025-02-21 06:37:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:37:04 - End Time 2025-02-21 06:37:04 [2025-02-21 06:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523286', 'tblTempUsageDetail_20' ) start [2025-02-21 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523286', 'tblTempUsageDetail_20' ) end [2025-02-21 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523286', 'tblTempVendorCDR_20' ) start [2025-02-21 06:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523286', 'tblTempVendorCDR_20' ) end [2025-02-21 06:37:16] Production.INFO: ProcessCDR(1,14523286,1,1,2) [2025-02-21 06:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523286', 'tblTempUsageDetail_20' ) start [2025-02-21 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523286', 'tblTempUsageDetail_20' ) end [2025-02-21 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:37:20] Production.INFO: ==5068== Releasing lock... [2025-02-21 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:38:06 [end_date_ymd] => 2025-02-21 06:38:06 [RateCDR] => 1 ) [2025-02-21 06: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-21 03:38:06' and `end` < '2025-02-21 06: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-21 06:38:17] Production.INFO: count ==84 [2025-02-21 06:38:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:38:06 - End Time 2025-02-21 06:38:06 [2025-02-21 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523291', 'tblTempUsageDetail_20' ) start [2025-02-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523291', 'tblTempUsageDetail_20' ) end [2025-02-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523291', 'tblTempVendorCDR_20' ) start [2025-02-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523291', 'tblTempVendorCDR_20' ) end [2025-02-21 06:38:17] Production.INFO: ProcessCDR(1,14523291,1,1,2) [2025-02-21 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523291', 'tblTempUsageDetail_20' ) start [2025-02-21 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523291', 'tblTempUsageDetail_20' ) end [2025-02-21 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:38:21] Production.INFO: ==5148== Releasing lock... [2025-02-21 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:39:05 [end_date_ymd] => 2025-02-21 06:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:39:05' and `end` < '2025-02-21 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-21 06:39:16] Production.INFO: count ==84 [2025-02-21 06:39:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:39:05 - End Time 2025-02-21 06:39:05 [2025-02-21 06:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523296', 'tblTempUsageDetail_20' ) start [2025-02-21 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523296', 'tblTempUsageDetail_20' ) end [2025-02-21 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523296', 'tblTempVendorCDR_20' ) start [2025-02-21 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523296', 'tblTempVendorCDR_20' ) end [2025-02-21 06:39:16] Production.INFO: ProcessCDR(1,14523296,1,1,2) [2025-02-21 06:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523296', 'tblTempUsageDetail_20' ) start [2025-02-21 06:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523296', 'tblTempUsageDetail_20' ) end [2025-02-21 06:39:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:39:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:39:19] Production.INFO: ==5226== Releasing lock... [2025-02-21 06:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:39:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:40:06 [end_date_ymd] => 2025-02-21 06:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 03:40:06' and `end` < '2025-02-21 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-21 06:40:17] Production.INFO: count ==78 [2025-02-21 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-21 03:40:06 - End Time 2025-02-21 06:40:06 [2025-02-21 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523302', 'tblTempUsageDetail_20' ) start [2025-02-21 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523302', 'tblTempUsageDetail_20' ) end [2025-02-21 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523302', 'tblTempVendorCDR_20' ) start [2025-02-21 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523302', 'tblTempVendorCDR_20' ) end [2025-02-21 06:40:18] Production.INFO: ProcessCDR(1,14523302,1,1,2) [2025-02-21 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523302', 'tblTempUsageDetail_20' ) start [2025-02-21 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523302', 'tblTempUsageDetail_20' ) end [2025-02-21 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:40:21] Production.INFO: ==5306== Releasing lock... [2025-02-21 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:41:05 [end_date_ymd] => 2025-02-21 06:41:05 [RateCDR] => 1 ) [2025-02-21 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:41:05' and `end` < '2025-02-21 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:41:17] Production.INFO: count ==78 [2025-02-21 06:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:41:05 - End Time 2025-02-21 06:41:05 [2025-02-21 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523307', 'tblTempUsageDetail_20' ) start [2025-02-21 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523307', 'tblTempUsageDetail_20' ) end [2025-02-21 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523307', 'tblTempVendorCDR_20' ) start [2025-02-21 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523307', 'tblTempVendorCDR_20' ) end [2025-02-21 06:41:17] Production.INFO: ProcessCDR(1,14523307,1,1,2) [2025-02-21 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523307', 'tblTempUsageDetail_20' ) start [2025-02-21 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523307', 'tblTempUsageDetail_20' ) end [2025-02-21 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:41:21] Production.INFO: ==5387== Releasing lock... [2025-02-21 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:42:05 [end_date_ymd] => 2025-02-21 06:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:42:05' and `end` < '2025-02-21 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-21 06:42:17] Production.INFO: count ==78 [2025-02-21 06:42:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:42:05 - End Time 2025-02-21 06:42:05 [2025-02-21 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523312', 'tblTempUsageDetail_20' ) start [2025-02-21 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523312', 'tblTempUsageDetail_20' ) end [2025-02-21 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523312', 'tblTempVendorCDR_20' ) start [2025-02-21 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523312', 'tblTempVendorCDR_20' ) end [2025-02-21 06:42:17] Production.INFO: ProcessCDR(1,14523312,1,1,2) [2025-02-21 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523312', 'tblTempUsageDetail_20' ) start [2025-02-21 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523312', 'tblTempUsageDetail_20' ) end [2025-02-21 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:42:20] Production.INFO: ==5468== Releasing lock... [2025-02-21 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:43:05 [end_date_ymd] => 2025-02-21 06:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:43:05' and `end` < '2025-02-21 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-21 06:43:17] Production.INFO: count ==78 [2025-02-21 06:43:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:43:05 - End Time 2025-02-21 06:43:05 [2025-02-21 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523317', 'tblTempUsageDetail_20' ) start [2025-02-21 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523317', 'tblTempUsageDetail_20' ) end [2025-02-21 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523317', 'tblTempVendorCDR_20' ) start [2025-02-21 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523317', 'tblTempVendorCDR_20' ) end [2025-02-21 06:43:17] Production.INFO: ProcessCDR(1,14523317,1,1,2) [2025-02-21 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523317', 'tblTempUsageDetail_20' ) start [2025-02-21 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523317', 'tblTempUsageDetail_20' ) end [2025-02-21 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:43:20] Production.INFO: ==5553== Releasing lock... [2025-02-21 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:44:05 [end_date_ymd] => 2025-02-21 06:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:44:05' and `end` < '2025-02-21 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-21 06:44:16] Production.INFO: count ==78 [2025-02-21 06:44:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:44:05 - End Time 2025-02-21 06:44:05 [2025-02-21 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523322', 'tblTempUsageDetail_20' ) start [2025-02-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523322', 'tblTempUsageDetail_20' ) end [2025-02-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523322', 'tblTempVendorCDR_20' ) start [2025-02-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523322', 'tblTempVendorCDR_20' ) end [2025-02-21 06:44:17] Production.INFO: ProcessCDR(1,14523322,1,1,2) [2025-02-21 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523322', 'tblTempUsageDetail_20' ) start [2025-02-21 06:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523322', 'tblTempUsageDetail_20' ) end [2025-02-21 06:44:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:44:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:44:19] Production.INFO: ==5627== Releasing lock... [2025-02-21 06:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:44:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:45:05 [end_date_ymd] => 2025-02-21 06:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:45:05' and `end` < '2025-02-21 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-21 06:45:17] Production.INFO: count ==78 [2025-02-21 06:45:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:45:05 - End Time 2025-02-21 06:45:05 [2025-02-21 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523327', 'tblTempUsageDetail_20' ) start [2025-02-21 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523327', 'tblTempUsageDetail_20' ) end [2025-02-21 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523327', 'tblTempVendorCDR_20' ) start [2025-02-21 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523327', 'tblTempVendorCDR_20' ) end [2025-02-21 06:45:17] Production.INFO: ProcessCDR(1,14523327,1,1,2) [2025-02-21 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523327', 'tblTempUsageDetail_20' ) start [2025-02-21 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523327', 'tblTempUsageDetail_20' ) end [2025-02-21 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:45:20] Production.INFO: ==5706== Releasing lock... [2025-02-21 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:46:04 [end_date_ymd] => 2025-02-21 06:46:04 [RateCDR] => 1 ) [2025-02-21 06:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:46:04' and `end` < '2025-02-21 06:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:46:16] Production.INFO: count ==78 [2025-02-21 06:46:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:46:04 - End Time 2025-02-21 06:46:04 [2025-02-21 06:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523332', 'tblTempUsageDetail_20' ) start [2025-02-21 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523332', 'tblTempUsageDetail_20' ) end [2025-02-21 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523332', 'tblTempVendorCDR_20' ) start [2025-02-21 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523332', 'tblTempVendorCDR_20' ) end [2025-02-21 06:46:16] Production.INFO: ProcessCDR(1,14523332,1,1,2) [2025-02-21 06:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523332', 'tblTempUsageDetail_20' ) start [2025-02-21 06:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523332', 'tblTempUsageDetail_20' ) end [2025-02-21 06:46:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:46:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:46:19] Production.INFO: ==5780== Releasing lock... [2025-02-21 06:46:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:46:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:47:05 [end_date_ymd] => 2025-02-21 06:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:47:05' and `end` < '2025-02-21 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-21 06:47:17] Production.INFO: count ==78 [2025-02-21 06:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:47:05 - End Time 2025-02-21 06:47:05 [2025-02-21 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523337', 'tblTempUsageDetail_20' ) start [2025-02-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523337', 'tblTempUsageDetail_20' ) end [2025-02-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523337', 'tblTempVendorCDR_20' ) start [2025-02-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523337', 'tblTempVendorCDR_20' ) end [2025-02-21 06:47:17] Production.INFO: ProcessCDR(1,14523337,1,1,2) [2025-02-21 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523337', 'tblTempUsageDetail_20' ) start [2025-02-21 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523337', 'tblTempUsageDetail_20' ) end [2025-02-21 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:47:20] Production.INFO: ==5861== Releasing lock... [2025-02-21 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:47:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:48:06 [end_date_ymd] => 2025-02-21 06:48:06 [RateCDR] => 1 ) [2025-02-21 06: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-21 03:48:06' and `end` < '2025-02-21 06: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-21 06:48:17] Production.INFO: count ==74 [2025-02-21 06:48:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:48:06 - End Time 2025-02-21 06:48:06 [2025-02-21 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523342', 'tblTempUsageDetail_20' ) start [2025-02-21 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523342', 'tblTempUsageDetail_20' ) end [2025-02-21 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523342', 'tblTempVendorCDR_20' ) start [2025-02-21 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523342', 'tblTempVendorCDR_20' ) end [2025-02-21 06:48:17] Production.INFO: ProcessCDR(1,14523342,1,1,2) [2025-02-21 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523342', 'tblTempUsageDetail_20' ) start [2025-02-21 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523342', 'tblTempUsageDetail_20' ) end [2025-02-21 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:48:21] Production.INFO: ==5941== Releasing lock... [2025-02-21 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:49:05 [end_date_ymd] => 2025-02-21 06:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:49:05' and `end` < '2025-02-21 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-21 06:49:16] Production.INFO: count ==74 [2025-02-21 06:49:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:49:05 - End Time 2025-02-21 06:49:05 [2025-02-21 06:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523347', 'tblTempUsageDetail_20' ) start [2025-02-21 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523347', 'tblTempUsageDetail_20' ) end [2025-02-21 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523347', 'tblTempVendorCDR_20' ) start [2025-02-21 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523347', 'tblTempVendorCDR_20' ) end [2025-02-21 06:49:16] Production.INFO: ProcessCDR(1,14523347,1,1,2) [2025-02-21 06:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523347', 'tblTempUsageDetail_20' ) start [2025-02-21 06:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523347', 'tblTempUsageDetail_20' ) end [2025-02-21 06:49:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:49:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:49:19] Production.INFO: ==6055== Releasing lock... [2025-02-21 06:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:49:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:50:06 [end_date_ymd] => 2025-02-21 06:50:06 [RateCDR] => 1 ) [2025-02-21 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:50:06' and `end` < '2025-02-21 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:50:18] Production.INFO: count ==72 [2025-02-21 06:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 03:50:06 - End Time 2025-02-21 06:50:06 [2025-02-21 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523353', 'tblTempUsageDetail_20' ) start [2025-02-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523353', 'tblTempUsageDetail_20' ) end [2025-02-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523353', 'tblTempVendorCDR_20' ) start [2025-02-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523353', 'tblTempVendorCDR_20' ) end [2025-02-21 06:50:18] Production.INFO: ProcessCDR(1,14523353,1,1,2) [2025-02-21 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523353', 'tblTempUsageDetail_20' ) start [2025-02-21 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523353', 'tblTempUsageDetail_20' ) end [2025-02-21 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:50:21] Production.INFO: ==6137== Releasing lock... [2025-02-21 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:51:05 [end_date_ymd] => 2025-02-21 06:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:51:05' and `end` < '2025-02-21 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-21 06:51:16] Production.INFO: count ==72 [2025-02-21 06:51:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:51:05 - End Time 2025-02-21 06:51:05 [2025-02-21 06:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523358', 'tblTempUsageDetail_20' ) start [2025-02-21 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523358', 'tblTempUsageDetail_20' ) end [2025-02-21 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523358', 'tblTempVendorCDR_20' ) start [2025-02-21 06:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523358', 'tblTempVendorCDR_20' ) end [2025-02-21 06:51:16] Production.INFO: ProcessCDR(1,14523358,1,1,2) [2025-02-21 06:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523358', 'tblTempUsageDetail_20' ) start [2025-02-21 06:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523358', 'tblTempUsageDetail_20' ) end [2025-02-21 06:51:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:51:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:51:19] Production.INFO: ==6213== Releasing lock... [2025-02-21 06:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:51:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:52:05 [end_date_ymd] => 2025-02-21 06:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:52:05' and `end` < '2025-02-21 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-21 06:52:17] Production.INFO: count ==72 [2025-02-21 06:52:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:52:05 - End Time 2025-02-21 06:52:05 [2025-02-21 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523363', 'tblTempUsageDetail_20' ) start [2025-02-21 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523363', 'tblTempUsageDetail_20' ) end [2025-02-21 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523363', 'tblTempVendorCDR_20' ) start [2025-02-21 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523363', 'tblTempVendorCDR_20' ) end [2025-02-21 06:52:17] Production.INFO: ProcessCDR(1,14523363,1,1,2) [2025-02-21 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523363', 'tblTempUsageDetail_20' ) start [2025-02-21 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523363', 'tblTempUsageDetail_20' ) end [2025-02-21 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:52:20] Production.INFO: ==6289== Releasing lock... [2025-02-21 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:52:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:53:04 [end_date_ymd] => 2025-02-21 06:53:04 [RateCDR] => 1 ) [2025-02-21 06: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-21 03:53:04' and `end` < '2025-02-21 06: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-21 06:53:16] Production.INFO: count ==72 [2025-02-21 06:53:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:53:04 - End Time 2025-02-21 06:53:04 [2025-02-21 06:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523368', 'tblTempUsageDetail_20' ) start [2025-02-21 06:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523368', 'tblTempUsageDetail_20' ) end [2025-02-21 06:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523368', 'tblTempVendorCDR_20' ) start [2025-02-21 06:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523368', 'tblTempVendorCDR_20' ) end [2025-02-21 06:53:16] Production.INFO: ProcessCDR(1,14523368,1,1,2) [2025-02-21 06:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523368', 'tblTempUsageDetail_20' ) start [2025-02-21 06:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523368', 'tblTempUsageDetail_20' ) end [2025-02-21 06:53:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:53:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:53:19] Production.INFO: ==6368== Releasing lock... [2025-02-21 06:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:53:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:54:05 [end_date_ymd] => 2025-02-21 06:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:54:05' and `end` < '2025-02-21 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-21 06:54:17] Production.INFO: count ==72 [2025-02-21 06:54:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:54:05 - End Time 2025-02-21 06:54:05 [2025-02-21 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523373', 'tblTempUsageDetail_20' ) start [2025-02-21 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523373', 'tblTempUsageDetail_20' ) end [2025-02-21 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523373', 'tblTempVendorCDR_20' ) start [2025-02-21 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523373', 'tblTempVendorCDR_20' ) end [2025-02-21 06:54:17] Production.INFO: ProcessCDR(1,14523373,1,1,2) [2025-02-21 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523373', 'tblTempUsageDetail_20' ) start [2025-02-21 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523373', 'tblTempUsageDetail_20' ) end [2025-02-21 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:54:20] Production.INFO: ==6451== Releasing lock... [2025-02-21 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:54:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:55:04 [end_date_ymd] => 2025-02-21 06:55:04 [RateCDR] => 1 ) [2025-02-21 06:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 03:55:04' and `end` < '2025-02-21 06:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 06:55:16] Production.INFO: count ==72 [2025-02-21 06:55:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:55:04 - End Time 2025-02-21 06:55:04 [2025-02-21 06:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523378', 'tblTempUsageDetail_20' ) start [2025-02-21 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523378', 'tblTempUsageDetail_20' ) end [2025-02-21 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523378', 'tblTempVendorCDR_20' ) start [2025-02-21 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523378', 'tblTempVendorCDR_20' ) end [2025-02-21 06:55:16] Production.INFO: ProcessCDR(1,14523378,1,1,2) [2025-02-21 06:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523378', 'tblTempUsageDetail_20' ) start [2025-02-21 06:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523378', 'tblTempUsageDetail_20' ) end [2025-02-21 06:55:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:55:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:55:19] Production.INFO: ==6532== Releasing lock... [2025-02-21 06:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:55:19] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:56:05 [end_date_ymd] => 2025-02-21 06:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:56:05' and `end` < '2025-02-21 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-21 06:56:17] Production.INFO: count ==68 [2025-02-21 06:56:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:56:05 - End Time 2025-02-21 06:56:05 [2025-02-21 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523383', 'tblTempUsageDetail_20' ) start [2025-02-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523383', 'tblTempUsageDetail_20' ) end [2025-02-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523383', 'tblTempVendorCDR_20' ) start [2025-02-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523383', 'tblTempVendorCDR_20' ) end [2025-02-21 06:56:17] Production.INFO: ProcessCDR(1,14523383,1,1,2) [2025-02-21 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523383', 'tblTempUsageDetail_20' ) start [2025-02-21 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523383', 'tblTempUsageDetail_20' ) end [2025-02-21 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:56:20] Production.INFO: ==6606== Releasing lock... [2025-02-21 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:57:04 [end_date_ymd] => 2025-02-21 06:57:04 [RateCDR] => 1 ) [2025-02-21 06: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-21 03:57:04' and `end` < '2025-02-21 06: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-21 06:57:16] Production.INFO: count ==68 [2025-02-21 06:57:16] Production.ERROR: pbx CDR StartTime 2025-02-21 03:57:04 - End Time 2025-02-21 06:57:04 [2025-02-21 06:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523388', 'tblTempUsageDetail_20' ) start [2025-02-21 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523388', 'tblTempUsageDetail_20' ) end [2025-02-21 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523388', 'tblTempVendorCDR_20' ) start [2025-02-21 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523388', 'tblTempVendorCDR_20' ) end [2025-02-21 06:57:16] Production.INFO: ProcessCDR(1,14523388,1,1,2) [2025-02-21 06:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523388', 'tblTempUsageDetail_20' ) start [2025-02-21 06:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523388', 'tblTempUsageDetail_20' ) end [2025-02-21 06:57:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:57:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:57:19] Production.INFO: ==6685== Releasing lock... [2025-02-21 06:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:57:19] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:58:05 [end_date_ymd] => 2025-02-21 06:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:58:05' and `end` < '2025-02-21 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-21 06:58:17] Production.INFO: count ==68 [2025-02-21 06:58:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:58:05 - End Time 2025-02-21 06:58:05 [2025-02-21 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523393', 'tblTempUsageDetail_20' ) start [2025-02-21 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523393', 'tblTempUsageDetail_20' ) end [2025-02-21 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523393', 'tblTempVendorCDR_20' ) start [2025-02-21 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523393', 'tblTempVendorCDR_20' ) end [2025-02-21 06:58:17] Production.INFO: ProcessCDR(1,14523393,1,1,2) [2025-02-21 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523393', 'tblTempUsageDetail_20' ) start [2025-02-21 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523393', 'tblTempUsageDetail_20' ) end [2025-02-21 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:58:20] Production.INFO: ==6761== Releasing lock... [2025-02-21 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 03:59:05 [end_date_ymd] => 2025-02-21 06:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 03:59:05' and `end` < '2025-02-21 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-21 06:59:17] Production.INFO: count ==68 [2025-02-21 06:59:17] Production.ERROR: pbx CDR StartTime 2025-02-21 03:59:05 - End Time 2025-02-21 06:59:05 [2025-02-21 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523398', 'tblTempUsageDetail_20' ) start [2025-02-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523398', 'tblTempUsageDetail_20' ) end [2025-02-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523398', 'tblTempVendorCDR_20' ) start [2025-02-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523398', 'tblTempVendorCDR_20' ) end [2025-02-21 06:59:17] Production.INFO: ProcessCDR(1,14523398,1,1,2) [2025-02-21 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523398', 'tblTempUsageDetail_20' ) start [2025-02-21 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523398', 'tblTempUsageDetail_20' ) end [2025-02-21 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 06:59:20] Production.INFO: ==6839== Releasing lock... [2025-02-21 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 06:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:00:06 [end_date_ymd] => 2025-02-21 07:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:00:06' and `end` < '2025-02-21 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:00:18] Production.INFO: count ==66 [2025-02-21 07:00:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:00:06 - End Time 2025-02-21 07:00:06 [2025-02-21 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523404', 'tblTempUsageDetail_20' ) start [2025-02-21 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523404', 'tblTempUsageDetail_20' ) end [2025-02-21 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523404', 'tblTempVendorCDR_20' ) start [2025-02-21 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523404', 'tblTempVendorCDR_20' ) end [2025-02-21 07:00:18] Production.INFO: ProcessCDR(1,14523404,1,1,2) [2025-02-21 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523404', 'tblTempUsageDetail_20' ) start [2025-02-21 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523404', 'tblTempUsageDetail_20' ) end [2025-02-21 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:00:21] Production.INFO: ==6918== Releasing lock... [2025-02-21 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:01:05 [end_date_ymd] => 2025-02-21 07:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:01:05' and `end` < '2025-02-21 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-21 07:01:17] Production.INFO: count ==66 [2025-02-21 07:01:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:01:05 - End Time 2025-02-21 07:01:05 [2025-02-21 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523409', 'tblTempUsageDetail_20' ) start [2025-02-21 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523409', 'tblTempUsageDetail_20' ) end [2025-02-21 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523409', 'tblTempVendorCDR_20' ) start [2025-02-21 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523409', 'tblTempVendorCDR_20' ) end [2025-02-21 07:01:17] Production.INFO: ProcessCDR(1,14523409,1,1,2) [2025-02-21 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523409', 'tblTempUsageDetail_20' ) start [2025-02-21 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523409', 'tblTempUsageDetail_20' ) end [2025-02-21 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:01:20] Production.INFO: ==7084== Releasing lock... [2025-02-21 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:01:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:02:06 [end_date_ymd] => 2025-02-21 07:02:06 [RateCDR] => 1 ) [2025-02-21 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:02:06' and `end` < '2025-02-21 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:02:18] Production.INFO: count ==66 [2025-02-21 07:02:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:02:06 - End Time 2025-02-21 07:02:06 [2025-02-21 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523414', 'tblTempUsageDetail_20' ) start [2025-02-21 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523414', 'tblTempUsageDetail_20' ) end [2025-02-21 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523414', 'tblTempVendorCDR_20' ) start [2025-02-21 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523414', 'tblTempVendorCDR_20' ) end [2025-02-21 07:02:18] Production.INFO: ProcessCDR(1,14523414,1,1,2) [2025-02-21 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523414', 'tblTempUsageDetail_20' ) start [2025-02-21 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523414', 'tblTempUsageDetail_20' ) end [2025-02-21 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:02:22] Production.INFO: ==7167== Releasing lock... [2025-02-21 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:03:06 [end_date_ymd] => 2025-02-21 07:03:06 [RateCDR] => 1 ) [2025-02-21 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:03:06' and `end` < '2025-02-21 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:03:17] Production.INFO: count ==70 [2025-02-21 07:03:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:03:06 - End Time 2025-02-21 07:03:06 [2025-02-21 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523419', 'tblTempUsageDetail_20' ) start [2025-02-21 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523419', 'tblTempUsageDetail_20' ) end [2025-02-21 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523419', 'tblTempVendorCDR_20' ) start [2025-02-21 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523419', 'tblTempVendorCDR_20' ) end [2025-02-21 07:03:17] Production.INFO: ProcessCDR(1,14523419,1,1,2) [2025-02-21 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523419', 'tblTempUsageDetail_20' ) start [2025-02-21 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523419', 'tblTempUsageDetail_20' ) end [2025-02-21 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:03:21] Production.INFO: ==7243== Releasing lock... [2025-02-21 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:04:06 [end_date_ymd] => 2025-02-21 07:04:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:04:06' and `end` < '2025-02-21 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-21 07:04:17] Production.INFO: count ==70 [2025-02-21 07:04:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:04:06 - End Time 2025-02-21 07:04:06 [2025-02-21 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523424', 'tblTempUsageDetail_20' ) start [2025-02-21 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523424', 'tblTempUsageDetail_20' ) end [2025-02-21 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523424', 'tblTempVendorCDR_20' ) start [2025-02-21 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523424', 'tblTempVendorCDR_20' ) end [2025-02-21 07:04:18] Production.INFO: ProcessCDR(1,14523424,1,1,2) [2025-02-21 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523424', 'tblTempUsageDetail_20' ) start [2025-02-21 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523424', 'tblTempUsageDetail_20' ) end [2025-02-21 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:04:21] Production.INFO: ==7359== Releasing lock... [2025-02-21 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:05:06 [end_date_ymd] => 2025-02-21 07:05:06 [RateCDR] => 1 ) [2025-02-21 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:05:06' and `end` < '2025-02-21 07: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-21 07:05:18] Production.INFO: count ==70 [2025-02-21 07:05:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:05:06 - End Time 2025-02-21 07:05:06 [2025-02-21 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523429', 'tblTempUsageDetail_20' ) start [2025-02-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523429', 'tblTempUsageDetail_20' ) end [2025-02-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523429', 'tblTempVendorCDR_20' ) start [2025-02-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523429', 'tblTempVendorCDR_20' ) end [2025-02-21 07:05:18] Production.INFO: ProcessCDR(1,14523429,1,1,2) [2025-02-21 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523429', 'tblTempUsageDetail_20' ) start [2025-02-21 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523429', 'tblTempUsageDetail_20' ) end [2025-02-21 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:05:21] Production.INFO: ==7515== Releasing lock... [2025-02-21 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:06:05 [end_date_ymd] => 2025-02-21 07:06:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:06:05' and `end` < '2025-02-21 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-21 07:06:17] Production.INFO: count ==66 [2025-02-21 07:06:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:06:05 - End Time 2025-02-21 07:06:05 [2025-02-21 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523434', 'tblTempUsageDetail_20' ) start [2025-02-21 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523434', 'tblTempUsageDetail_20' ) end [2025-02-21 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523434', 'tblTempVendorCDR_20' ) start [2025-02-21 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523434', 'tblTempVendorCDR_20' ) end [2025-02-21 07:06:17] Production.INFO: ProcessCDR(1,14523434,1,1,2) [2025-02-21 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523434', 'tblTempUsageDetail_20' ) start [2025-02-21 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523434', 'tblTempUsageDetail_20' ) end [2025-02-21 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:06:21] Production.INFO: ==7588== Releasing lock... [2025-02-21 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-21 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:07:06 [end_date_ymd] => 2025-02-21 07:07:06 [RateCDR] => 1 ) [2025-02-21 07:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:07:06' and `end` < '2025-02-21 07:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:07:17] Production.INFO: count ==67 [2025-02-21 07:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:07:06 - End Time 2025-02-21 07:07:06 [2025-02-21 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523439', 'tblTempUsageDetail_20' ) start [2025-02-21 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523439', 'tblTempUsageDetail_20' ) end [2025-02-21 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523439', 'tblTempVendorCDR_20' ) start [2025-02-21 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523439', 'tblTempVendorCDR_20' ) end [2025-02-21 07:07:17] Production.INFO: ProcessCDR(1,14523439,1,1,2) [2025-02-21 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523439', 'tblTempUsageDetail_20' ) start [2025-02-21 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523439', 'tblTempUsageDetail_20' ) end [2025-02-21 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:07:22] Production.INFO: ==7665== Releasing lock... [2025-02-21 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:08:05 [end_date_ymd] => 2025-02-21 07:08:05 [RateCDR] => 1 ) [2025-02-21 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:08:05' and `end` < '2025-02-21 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:08:18] Production.INFO: count ==67 [2025-02-21 07:08:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:08:05 - End Time 2025-02-21 07:08:05 [2025-02-21 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523444', 'tblTempUsageDetail_20' ) start [2025-02-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523444', 'tblTempUsageDetail_20' ) end [2025-02-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523444', 'tblTempVendorCDR_20' ) start [2025-02-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523444', 'tblTempVendorCDR_20' ) end [2025-02-21 07:08:18] Production.INFO: ProcessCDR(1,14523444,1,1,2) [2025-02-21 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523444', 'tblTempUsageDetail_20' ) start [2025-02-21 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523444', 'tblTempUsageDetail_20' ) end [2025-02-21 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:08:22] Production.INFO: ==7823== Releasing lock... [2025-02-21 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:09:05 [end_date_ymd] => 2025-02-21 07:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:09:05' and `end` < '2025-02-21 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-21 07:09:17] Production.INFO: count ==67 [2025-02-21 07:09:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:09:05 - End Time 2025-02-21 07:09:05 [2025-02-21 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523449', 'tblTempUsageDetail_20' ) start [2025-02-21 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523449', 'tblTempUsageDetail_20' ) end [2025-02-21 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523449', 'tblTempVendorCDR_20' ) start [2025-02-21 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523449', 'tblTempVendorCDR_20' ) end [2025-02-21 07:09:17] Production.INFO: ProcessCDR(1,14523449,1,1,2) [2025-02-21 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523449', 'tblTempUsageDetail_20' ) start [2025-02-21 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523449', 'tblTempUsageDetail_20' ) end [2025-02-21 07:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:09:20] Production.INFO: ==7898== Releasing lock... [2025-02-21 07:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:09:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:10:06 [end_date_ymd] => 2025-02-21 07:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:10:06' and `end` < '2025-02-21 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-21 07:10:17] Production.INFO: count ==73 [2025-02-21 07:10:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:10:06 - End Time 2025-02-21 07:10:06 [2025-02-21 07:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523455', 'tblTempUsageDetail_20' ) start [2025-02-21 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523455', 'tblTempUsageDetail_20' ) end [2025-02-21 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523455', 'tblTempVendorCDR_20' ) start [2025-02-21 07:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523455', 'tblTempVendorCDR_20' ) end [2025-02-21 07:10:17] Production.INFO: ProcessCDR(1,14523455,1,1,2) [2025-02-21 07:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523455', 'tblTempUsageDetail_20' ) start [2025-02-21 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523455', 'tblTempUsageDetail_20' ) end [2025-02-21 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:10:21] Production.INFO: ==7974== Releasing lock... [2025-02-21 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:11:05 [end_date_ymd] => 2025-02-21 07:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:11:05' and `end` < '2025-02-21 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-21 07:11:17] Production.INFO: count ==79 [2025-02-21 07:11:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:11:05 - End Time 2025-02-21 07:11:05 [2025-02-21 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523460', 'tblTempUsageDetail_20' ) start [2025-02-21 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523460', 'tblTempUsageDetail_20' ) end [2025-02-21 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523460', 'tblTempVendorCDR_20' ) start [2025-02-21 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523460', 'tblTempVendorCDR_20' ) end [2025-02-21 07:11:17] Production.INFO: ProcessCDR(1,14523460,1,1,2) [2025-02-21 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523460', 'tblTempUsageDetail_20' ) start [2025-02-21 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523460', 'tblTempUsageDetail_20' ) end [2025-02-21 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:11:20] Production.INFO: ==8051== Releasing lock... [2025-02-21 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:11:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:12:05 [end_date_ymd] => 2025-02-21 07:12:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:12:05' and `end` < '2025-02-21 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-21 07:12:17] Production.INFO: count ==79 [2025-02-21 07:12:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:12:05 - End Time 2025-02-21 07:12:05 [2025-02-21 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523465', 'tblTempUsageDetail_20' ) start [2025-02-21 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523465', 'tblTempUsageDetail_20' ) end [2025-02-21 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523465', 'tblTempVendorCDR_20' ) start [2025-02-21 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523465', 'tblTempVendorCDR_20' ) end [2025-02-21 07:12:17] Production.INFO: ProcessCDR(1,14523465,1,1,2) [2025-02-21 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523465', 'tblTempUsageDetail_20' ) start [2025-02-21 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523465', 'tblTempUsageDetail_20' ) end [2025-02-21 07:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:12:20] Production.INFO: ==8203== Releasing lock... [2025-02-21 07:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:12:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:13:05 [end_date_ymd] => 2025-02-21 07:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:13:05' and `end` < '2025-02-21 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-21 07:13:18] Production.INFO: count ==79 [2025-02-21 07:13:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:13:05 - End Time 2025-02-21 07:13:05 [2025-02-21 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523470', 'tblTempUsageDetail_20' ) start [2025-02-21 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523470', 'tblTempUsageDetail_20' ) end [2025-02-21 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523470', 'tblTempVendorCDR_20' ) start [2025-02-21 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523470', 'tblTempVendorCDR_20' ) end [2025-02-21 07:13:18] Production.INFO: ProcessCDR(1,14523470,1,1,2) [2025-02-21 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523470', 'tblTempUsageDetail_20' ) start [2025-02-21 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523470', 'tblTempUsageDetail_20' ) end [2025-02-21 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:13:21] Production.INFO: ==8276== Releasing lock... [2025-02-21 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:14:06 [end_date_ymd] => 2025-02-21 07:14:06 [RateCDR] => 1 ) [2025-02-21 07:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:14:06' and `end` < '2025-02-21 07:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:14:18] Production.INFO: count ==79 [2025-02-21 07:14:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:14:06 - End Time 2025-02-21 07:14:06 [2025-02-21 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523475', 'tblTempUsageDetail_20' ) start [2025-02-21 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523475', 'tblTempUsageDetail_20' ) end [2025-02-21 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523475', 'tblTempVendorCDR_20' ) start [2025-02-21 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523475', 'tblTempVendorCDR_20' ) end [2025-02-21 07:14:18] Production.INFO: ProcessCDR(1,14523475,1,1,2) [2025-02-21 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523475', 'tblTempUsageDetail_20' ) start [2025-02-21 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523475', 'tblTempUsageDetail_20' ) end [2025-02-21 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:14:21] Production.INFO: ==8348== Releasing lock... [2025-02-21 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:15:05 [end_date_ymd] => 2025-02-21 07:15:05 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:15:05' and `end` < '2025-02-21 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-21 07:15:17] Production.INFO: count ==79 [2025-02-21 07:15:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:15:05 - End Time 2025-02-21 07:15:05 [2025-02-21 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523480', 'tblTempUsageDetail_20' ) start [2025-02-21 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523480', 'tblTempUsageDetail_20' ) end [2025-02-21 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523480', 'tblTempVendorCDR_20' ) start [2025-02-21 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523480', 'tblTempVendorCDR_20' ) end [2025-02-21 07:15:17] Production.INFO: ProcessCDR(1,14523480,1,1,2) [2025-02-21 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523480', 'tblTempUsageDetail_20' ) start [2025-02-21 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523480', 'tblTempUsageDetail_20' ) end [2025-02-21 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:15:21] Production.INFO: ==8500== Releasing lock... [2025-02-21 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:16:06 [end_date_ymd] => 2025-02-21 07:16:06 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:16:06' and `end` < '2025-02-21 07: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-21 07:16:19] Production.INFO: count ==79 [2025-02-21 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-21 04:16:06 - End Time 2025-02-21 07:16:06 [2025-02-21 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523485', 'tblTempUsageDetail_20' ) start [2025-02-21 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523485', 'tblTempUsageDetail_20' ) end [2025-02-21 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523485', 'tblTempVendorCDR_20' ) start [2025-02-21 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523485', 'tblTempVendorCDR_20' ) end [2025-02-21 07:16:19] Production.INFO: ProcessCDR(1,14523485,1,1,2) [2025-02-21 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523485', 'tblTempUsageDetail_20' ) start [2025-02-21 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523485', 'tblTempUsageDetail_20' ) end [2025-02-21 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:16:22] Production.INFO: ==8570== Releasing lock... [2025-02-21 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:16:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:17:05 [end_date_ymd] => 2025-02-21 07:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:17:05' and `end` < '2025-02-21 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-21 07:17:17] Production.INFO: count ==79 [2025-02-21 07:17:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:17:05 - End Time 2025-02-21 07:17:05 [2025-02-21 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523490', 'tblTempUsageDetail_20' ) start [2025-02-21 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523490', 'tblTempUsageDetail_20' ) end [2025-02-21 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523490', 'tblTempVendorCDR_20' ) start [2025-02-21 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523490', 'tblTempVendorCDR_20' ) end [2025-02-21 07:17:17] Production.INFO: ProcessCDR(1,14523490,1,1,2) [2025-02-21 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523490', 'tblTempUsageDetail_20' ) start [2025-02-21 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523490', 'tblTempUsageDetail_20' ) end [2025-02-21 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:17:21] Production.INFO: ==8644== Releasing lock... [2025-02-21 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:18:06 [end_date_ymd] => 2025-02-21 07:18:06 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:18:06' and `end` < '2025-02-21 07: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-21 07:18:18] Production.INFO: count ==83 [2025-02-21 07:18:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:18:06 - End Time 2025-02-21 07:18:06 [2025-02-21 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523495', 'tblTempUsageDetail_20' ) start [2025-02-21 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523495', 'tblTempUsageDetail_20' ) end [2025-02-21 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523495', 'tblTempVendorCDR_20' ) start [2025-02-21 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523495', 'tblTempVendorCDR_20' ) end [2025-02-21 07:18:18] Production.INFO: ProcessCDR(1,14523495,1,1,2) [2025-02-21 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523495', 'tblTempUsageDetail_20' ) start [2025-02-21 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523495', 'tblTempUsageDetail_20' ) end [2025-02-21 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:18:21] Production.INFO: ==8715== Releasing lock... [2025-02-21 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:19:06 [end_date_ymd] => 2025-02-21 07:19:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:19:06' and `end` < '2025-02-21 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-21 07:19:17] Production.INFO: count ==83 [2025-02-21 07:19:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:19:06 - End Time 2025-02-21 07:19:06 [2025-02-21 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523500', 'tblTempUsageDetail_20' ) start [2025-02-21 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523500', 'tblTempUsageDetail_20' ) end [2025-02-21 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523500', 'tblTempVendorCDR_20' ) start [2025-02-21 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523500', 'tblTempVendorCDR_20' ) end [2025-02-21 07:19:17] Production.INFO: ProcessCDR(1,14523500,1,1,2) [2025-02-21 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523500', 'tblTempUsageDetail_20' ) start [2025-02-21 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523500', 'tblTempUsageDetail_20' ) end [2025-02-21 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:19:21] Production.INFO: ==8788== Releasing lock... [2025-02-21 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-21 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:20:07 [end_date_ymd] => 2025-02-21 07:20:07 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:20:07' and `end` < '2025-02-21 07: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-21 07:20:18] Production.INFO: count ==93 [2025-02-21 07:20:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:20:07 - End Time 2025-02-21 07:20:07 [2025-02-21 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523505', 'tblTempUsageDetail_20' ) start [2025-02-21 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523505', 'tblTempUsageDetail_20' ) end [2025-02-21 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523505', 'tblTempVendorCDR_20' ) start [2025-02-21 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523505', 'tblTempVendorCDR_20' ) end [2025-02-21 07:20:18] Production.INFO: ProcessCDR(1,14523505,1,1,2) [2025-02-21 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523505', 'tblTempUsageDetail_20' ) start [2025-02-21 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523505', 'tblTempUsageDetail_20' ) end [2025-02-21 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:20:22] Production.INFO: ==8899== Releasing lock... [2025-02-21 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:21:05 [end_date_ymd] => 2025-02-21 07:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:21:05' and `end` < '2025-02-21 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-21 07:21:17] Production.INFO: count ==95 [2025-02-21 07:21:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:21:05 - End Time 2025-02-21 07:21:05 [2025-02-21 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523511', 'tblTempUsageDetail_20' ) start [2025-02-21 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523511', 'tblTempUsageDetail_20' ) end [2025-02-21 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523511', 'tblTempVendorCDR_20' ) start [2025-02-21 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523511', 'tblTempVendorCDR_20' ) end [2025-02-21 07:21:17] Production.INFO: ProcessCDR(1,14523511,1,1,2) [2025-02-21 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523511', 'tblTempUsageDetail_20' ) start [2025-02-21 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523511', 'tblTempUsageDetail_20' ) end [2025-02-21 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:21:21] Production.INFO: ==8983== Releasing lock... [2025-02-21 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:22:06 [end_date_ymd] => 2025-02-21 07:22:06 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:22:06' and `end` < '2025-02-21 07: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-21 07:22:18] Production.INFO: count ==95 [2025-02-21 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:22:06 - End Time 2025-02-21 07:22:06 [2025-02-21 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523516', 'tblTempUsageDetail_20' ) start [2025-02-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523516', 'tblTempUsageDetail_20' ) end [2025-02-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523516', 'tblTempVendorCDR_20' ) start [2025-02-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523516', 'tblTempVendorCDR_20' ) end [2025-02-21 07:22:18] Production.INFO: ProcessCDR(1,14523516,1,1,2) [2025-02-21 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523516', 'tblTempUsageDetail_20' ) start [2025-02-21 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523516', 'tblTempUsageDetail_20' ) end [2025-02-21 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:22:21] Production.INFO: ==9059== Releasing lock... [2025-02-21 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:23:05 [end_date_ymd] => 2025-02-21 07:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:23:05' and `end` < '2025-02-21 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-21 07:23:17] Production.INFO: count ==100 [2025-02-21 07:23:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:23:05 - End Time 2025-02-21 07:23:05 [2025-02-21 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523521', 'tblTempUsageDetail_20' ) start [2025-02-21 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523521', 'tblTempUsageDetail_20' ) end [2025-02-21 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523521', 'tblTempVendorCDR_20' ) start [2025-02-21 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523521', 'tblTempVendorCDR_20' ) end [2025-02-21 07:23:17] Production.INFO: ProcessCDR(1,14523521,1,1,2) [2025-02-21 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523521', 'tblTempUsageDetail_20' ) start [2025-02-21 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523521', 'tblTempUsageDetail_20' ) end [2025-02-21 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:23:21] Production.INFO: ==9134== Releasing lock... [2025-02-21 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:24:06 [end_date_ymd] => 2025-02-21 07:24:06 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:24:06' and `end` < '2025-02-21 07: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-21 07:24:18] Production.INFO: count ==100 [2025-02-21 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:24:06 - End Time 2025-02-21 07:24:06 [2025-02-21 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523526', 'tblTempUsageDetail_20' ) start [2025-02-21 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523526', 'tblTempUsageDetail_20' ) end [2025-02-21 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523526', 'tblTempVendorCDR_20' ) start [2025-02-21 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523526', 'tblTempVendorCDR_20' ) end [2025-02-21 07:24:18] Production.INFO: ProcessCDR(1,14523526,1,1,2) [2025-02-21 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523526', 'tblTempUsageDetail_20' ) start [2025-02-21 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523526', 'tblTempUsageDetail_20' ) end [2025-02-21 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:24:21] Production.INFO: ==9206== Releasing lock... [2025-02-21 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:25:06 [end_date_ymd] => 2025-02-21 07:25:06 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:25:06' and `end` < '2025-02-21 07: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-21 07:25:17] Production.INFO: count ==107 [2025-02-21 07:25:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:25:06 - End Time 2025-02-21 07:25:06 [2025-02-21 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523531', 'tblTempUsageDetail_20' ) start [2025-02-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523531', 'tblTempUsageDetail_20' ) end [2025-02-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523531', 'tblTempVendorCDR_20' ) start [2025-02-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523531', 'tblTempVendorCDR_20' ) end [2025-02-21 07:25:17] Production.INFO: ProcessCDR(1,14523531,1,1,2) [2025-02-21 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523531', 'tblTempUsageDetail_20' ) start [2025-02-21 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523531', 'tblTempUsageDetail_20' ) end [2025-02-21 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:25:21] Production.INFO: ==9278== Releasing lock... [2025-02-21 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:26:06 [end_date_ymd] => 2025-02-21 07:26:06 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:26:06' and `end` < '2025-02-21 07: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-21 07:26:18] Production.INFO: count ==107 [2025-02-21 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:26:06 - End Time 2025-02-21 07:26:06 [2025-02-21 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523536', 'tblTempUsageDetail_20' ) start [2025-02-21 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523536', 'tblTempUsageDetail_20' ) end [2025-02-21 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523536', 'tblTempVendorCDR_20' ) start [2025-02-21 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523536', 'tblTempVendorCDR_20' ) end [2025-02-21 07:26:18] Production.INFO: ProcessCDR(1,14523536,1,1,2) [2025-02-21 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523536', 'tblTempUsageDetail_20' ) start [2025-02-21 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523536', 'tblTempUsageDetail_20' ) end [2025-02-21 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:26:21] Production.INFO: ==9351== Releasing lock... [2025-02-21 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:26:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:27:06 [end_date_ymd] => 2025-02-21 07:27:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:27:06' and `end` < '2025-02-21 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-21 07:27:17] Production.INFO: count ==111 [2025-02-21 07:27:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:27:06 - End Time 2025-02-21 07:27:06 [2025-02-21 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523541', 'tblTempUsageDetail_20' ) start [2025-02-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523541', 'tblTempUsageDetail_20' ) end [2025-02-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523541', 'tblTempVendorCDR_20' ) start [2025-02-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523541', 'tblTempVendorCDR_20' ) end [2025-02-21 07:27:17] Production.INFO: ProcessCDR(1,14523541,1,1,2) [2025-02-21 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523541', 'tblTempUsageDetail_20' ) start [2025-02-21 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523541', 'tblTempUsageDetail_20' ) end [2025-02-21 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:27:21] Production.INFO: ==9422== Releasing lock... [2025-02-21 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:27:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:28:05 [end_date_ymd] => 2025-02-21 07:28:05 [RateCDR] => 1 ) [2025-02-21 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:28:05' and `end` < '2025-02-21 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:28:17] Production.INFO: count ==111 [2025-02-21 07:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:28:05 - End Time 2025-02-21 07:28:05 [2025-02-21 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523546', 'tblTempUsageDetail_20' ) start [2025-02-21 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523546', 'tblTempUsageDetail_20' ) end [2025-02-21 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523546', 'tblTempVendorCDR_20' ) start [2025-02-21 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523546', 'tblTempVendorCDR_20' ) end [2025-02-21 07:28:17] Production.INFO: ProcessCDR(1,14523546,1,1,2) [2025-02-21 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523546', 'tblTempUsageDetail_20' ) start [2025-02-21 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523546', 'tblTempUsageDetail_20' ) end [2025-02-21 07:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:28:20] Production.INFO: ==9497== Releasing lock... [2025-02-21 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:28:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:29:06 [end_date_ymd] => 2025-02-21 07:29:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:29:06' and `end` < '2025-02-21 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-21 07:29:17] Production.INFO: count ==111 [2025-02-21 07:29:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:29:06 - End Time 2025-02-21 07:29:06 [2025-02-21 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523551', 'tblTempUsageDetail_20' ) start [2025-02-21 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523551', 'tblTempUsageDetail_20' ) end [2025-02-21 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523551', 'tblTempVendorCDR_20' ) start [2025-02-21 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523551', 'tblTempVendorCDR_20' ) end [2025-02-21 07:29:17] Production.INFO: ProcessCDR(1,14523551,1,1,2) [2025-02-21 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523551', 'tblTempUsageDetail_20' ) start [2025-02-21 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523551', 'tblTempUsageDetail_20' ) end [2025-02-21 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:29:21] Production.INFO: ==9569== Releasing lock... [2025-02-21 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:29:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:30:06 [end_date_ymd] => 2025-02-21 07:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:30:06' and `end` < '2025-02-21 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-21 07:30:18] Production.INFO: count ==110 [2025-02-21 07:30:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:30:06 - End Time 2025-02-21 07:30:06 [2025-02-21 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523556', 'tblTempUsageDetail_20' ) start [2025-02-21 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523556', 'tblTempUsageDetail_20' ) end [2025-02-21 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523556', 'tblTempVendorCDR_20' ) start [2025-02-21 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523556', 'tblTempVendorCDR_20' ) end [2025-02-21 07:30:18] Production.INFO: ProcessCDR(1,14523556,1,1,2) [2025-02-21 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523556', 'tblTempUsageDetail_20' ) start [2025-02-21 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523556', 'tblTempUsageDetail_20' ) end [2025-02-21 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:30:21] Production.INFO: ==9644== Releasing lock... [2025-02-21 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:30:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:31:06 [end_date_ymd] => 2025-02-21 07:31:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:31:06' and `end` < '2025-02-21 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-21 07:31:17] Production.INFO: count ==110 [2025-02-21 07:31:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:31:06 - End Time 2025-02-21 07:31:06 [2025-02-21 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523562', 'tblTempUsageDetail_20' ) start [2025-02-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523562', 'tblTempUsageDetail_20' ) end [2025-02-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523562', 'tblTempVendorCDR_20' ) start [2025-02-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523562', 'tblTempVendorCDR_20' ) end [2025-02-21 07:31:17] Production.INFO: ProcessCDR(1,14523562,1,1,2) [2025-02-21 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523562', 'tblTempUsageDetail_20' ) start [2025-02-21 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523562', 'tblTempUsageDetail_20' ) end [2025-02-21 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:31:21] Production.INFO: ==9718== Releasing lock... [2025-02-21 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:31:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:32:05 [end_date_ymd] => 2025-02-21 07:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:32:05' and `end` < '2025-02-21 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-21 07:32:17] Production.INFO: count ==110 [2025-02-21 07:32:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:32:05 - End Time 2025-02-21 07:32:05 [2025-02-21 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523567', 'tblTempUsageDetail_20' ) start [2025-02-21 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523567', 'tblTempUsageDetail_20' ) end [2025-02-21 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523567', 'tblTempVendorCDR_20' ) start [2025-02-21 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523567', 'tblTempVendorCDR_20' ) end [2025-02-21 07:32:17] Production.INFO: ProcessCDR(1,14523567,1,1,2) [2025-02-21 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523567', 'tblTempUsageDetail_20' ) start [2025-02-21 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523567', 'tblTempUsageDetail_20' ) end [2025-02-21 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:32:20] Production.INFO: ==9789== Releasing lock... [2025-02-21 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:32:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:33:06 [end_date_ymd] => 2025-02-21 07:33:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:33:06' and `end` < '2025-02-21 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-21 07:33:17] Production.INFO: count ==110 [2025-02-21 07:33:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:33:06 - End Time 2025-02-21 07:33:06 [2025-02-21 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523572', 'tblTempUsageDetail_20' ) start [2025-02-21 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523572', 'tblTempUsageDetail_20' ) end [2025-02-21 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523572', 'tblTempVendorCDR_20' ) start [2025-02-21 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523572', 'tblTempVendorCDR_20' ) end [2025-02-21 07:33:17] Production.INFO: ProcessCDR(1,14523572,1,1,2) [2025-02-21 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523572', 'tblTempUsageDetail_20' ) start [2025-02-21 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523572', 'tblTempUsageDetail_20' ) end [2025-02-21 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:33:21] Production.INFO: ==9859== Releasing lock... [2025-02-21 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:33:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:34:06 [end_date_ymd] => 2025-02-21 07:34:06 [RateCDR] => 1 ) [2025-02-21 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:34:06' and `end` < '2025-02-21 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:34:17] Production.INFO: count ==106 [2025-02-21 07:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:34:06 - End Time 2025-02-21 07:34:06 [2025-02-21 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523577', 'tblTempUsageDetail_20' ) start [2025-02-21 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523577', 'tblTempUsageDetail_20' ) end [2025-02-21 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523577', 'tblTempVendorCDR_20' ) start [2025-02-21 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523577', 'tblTempVendorCDR_20' ) end [2025-02-21 07:34:17] Production.INFO: ProcessCDR(1,14523577,1,1,2) [2025-02-21 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523577', 'tblTempUsageDetail_20' ) start [2025-02-21 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523577', 'tblTempUsageDetail_20' ) end [2025-02-21 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:34:21] Production.INFO: ==9929== Releasing lock... [2025-02-21 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:35:06 [end_date_ymd] => 2025-02-21 07:35:06 [RateCDR] => 1 ) [2025-02-21 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:35:06' and `end` < '2025-02-21 07:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:35:18] Production.INFO: count ==106 [2025-02-21 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:35:06 - End Time 2025-02-21 07:35:06 [2025-02-21 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523582', 'tblTempUsageDetail_20' ) start [2025-02-21 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523582', 'tblTempUsageDetail_20' ) end [2025-02-21 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523582', 'tblTempVendorCDR_20' ) start [2025-02-21 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523582', 'tblTempVendorCDR_20' ) end [2025-02-21 07:35:18] Production.INFO: ProcessCDR(1,14523582,1,1,2) [2025-02-21 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523582', 'tblTempUsageDetail_20' ) start [2025-02-21 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523582', 'tblTempUsageDetail_20' ) end [2025-02-21 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:35:21] Production.INFO: ==10045== Releasing lock... [2025-02-21 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:36:05 [end_date_ymd] => 2025-02-21 07:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:36:05' and `end` < '2025-02-21 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-21 07:36:17] Production.INFO: count ==106 [2025-02-21 07:36:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:36:05 - End Time 2025-02-21 07:36:05 [2025-02-21 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523587', 'tblTempUsageDetail_20' ) start [2025-02-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523587', 'tblTempUsageDetail_20' ) end [2025-02-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523587', 'tblTempVendorCDR_20' ) start [2025-02-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523587', 'tblTempVendorCDR_20' ) end [2025-02-21 07:36:17] Production.INFO: ProcessCDR(1,14523587,1,1,2) [2025-02-21 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523587', 'tblTempUsageDetail_20' ) start [2025-02-21 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523587', 'tblTempUsageDetail_20' ) end [2025-02-21 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:36:20] Production.INFO: ==10122== Releasing lock... [2025-02-21 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:37:06 [end_date_ymd] => 2025-02-21 07:37:06 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:37:06' and `end` < '2025-02-21 07: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-21 07:37:18] Production.INFO: count ==106 [2025-02-21 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:37:06 - End Time 2025-02-21 07:37:06 [2025-02-21 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523592', 'tblTempUsageDetail_20' ) start [2025-02-21 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523592', 'tblTempUsageDetail_20' ) end [2025-02-21 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523592', 'tblTempVendorCDR_20' ) start [2025-02-21 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523592', 'tblTempVendorCDR_20' ) end [2025-02-21 07:37:18] Production.INFO: ProcessCDR(1,14523592,1,1,2) [2025-02-21 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523592', 'tblTempUsageDetail_20' ) start [2025-02-21 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523592', 'tblTempUsageDetail_20' ) end [2025-02-21 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:37:21] Production.INFO: ==10193== Releasing lock... [2025-02-21 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:38:05 [end_date_ymd] => 2025-02-21 07:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:38:05' and `end` < '2025-02-21 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-21 07:38:17] Production.INFO: count ==106 [2025-02-21 07:38:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:38:05 - End Time 2025-02-21 07:38:05 [2025-02-21 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523597', 'tblTempUsageDetail_20' ) start [2025-02-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523597', 'tblTempUsageDetail_20' ) end [2025-02-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523597', 'tblTempVendorCDR_20' ) start [2025-02-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523597', 'tblTempVendorCDR_20' ) end [2025-02-21 07:38:17] Production.INFO: ProcessCDR(1,14523597,1,1,2) [2025-02-21 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523597', 'tblTempUsageDetail_20' ) start [2025-02-21 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523597', 'tblTempUsageDetail_20' ) end [2025-02-21 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:38:20] Production.INFO: ==10263== Releasing lock... [2025-02-21 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:39:05 [end_date_ymd] => 2025-02-21 07:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:39:05' and `end` < '2025-02-21 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-21 07:39:17] Production.INFO: count ==106 [2025-02-21 07:39:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:39:05 - End Time 2025-02-21 07:39:05 [2025-02-21 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523602', 'tblTempUsageDetail_20' ) start [2025-02-21 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523602', 'tblTempUsageDetail_20' ) end [2025-02-21 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523602', 'tblTempVendorCDR_20' ) start [2025-02-21 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523602', 'tblTempVendorCDR_20' ) end [2025-02-21 07:39:17] Production.INFO: ProcessCDR(1,14523602,1,1,2) [2025-02-21 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523602', 'tblTempUsageDetail_20' ) start [2025-02-21 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523602', 'tblTempUsageDetail_20' ) end [2025-02-21 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:39:20] Production.INFO: ==10338== Releasing lock... [2025-02-21 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-21 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:40:06 [end_date_ymd] => 2025-02-21 07:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:40:06' and `end` < '2025-02-21 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-21 07:40:18] Production.INFO: count ==108 [2025-02-21 07:40:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:40:06 - End Time 2025-02-21 07:40:06 [2025-02-21 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523608', 'tblTempUsageDetail_20' ) start [2025-02-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523608', 'tblTempUsageDetail_20' ) end [2025-02-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523608', 'tblTempVendorCDR_20' ) start [2025-02-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523608', 'tblTempVendorCDR_20' ) end [2025-02-21 07:40:18] Production.INFO: ProcessCDR(1,14523608,1,1,2) [2025-02-21 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523608', 'tblTempUsageDetail_20' ) start [2025-02-21 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523608', 'tblTempUsageDetail_20' ) end [2025-02-21 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:40:21] Production.INFO: ==10409== Releasing lock... [2025-02-21 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:40:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:41:05 [end_date_ymd] => 2025-02-21 07:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:41:05' and `end` < '2025-02-21 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-21 07:41:17] Production.INFO: count ==108 [2025-02-21 07:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:41:05 - End Time 2025-02-21 07:41:05 [2025-02-21 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523613', 'tblTempUsageDetail_20' ) start [2025-02-21 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523613', 'tblTempUsageDetail_20' ) end [2025-02-21 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523613', 'tblTempVendorCDR_20' ) start [2025-02-21 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523613', 'tblTempVendorCDR_20' ) end [2025-02-21 07:41:17] Production.INFO: ProcessCDR(1,14523613,1,1,2) [2025-02-21 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523613', 'tblTempUsageDetail_20' ) start [2025-02-21 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523613', 'tblTempUsageDetail_20' ) end [2025-02-21 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:41:20] Production.INFO: ==10487== Releasing lock... [2025-02-21 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:41:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:42:05 [end_date_ymd] => 2025-02-21 07:42:05 [RateCDR] => 1 ) [2025-02-21 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 04:42:05' and `end` < '2025-02-21 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 07:42:17] Production.INFO: count ==109 [2025-02-21 07:42:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:42:05 - End Time 2025-02-21 07:42:05 [2025-02-21 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523618', 'tblTempUsageDetail_20' ) start [2025-02-21 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523618', 'tblTempUsageDetail_20' ) end [2025-02-21 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523618', 'tblTempVendorCDR_20' ) start [2025-02-21 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523618', 'tblTempVendorCDR_20' ) end [2025-02-21 07:42:17] Production.INFO: ProcessCDR(1,14523618,1,1,2) [2025-02-21 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523618', 'tblTempUsageDetail_20' ) start [2025-02-21 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523618', 'tblTempUsageDetail_20' ) end [2025-02-21 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:42:21] Production.INFO: ==10558== Releasing lock... [2025-02-21 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:42:21] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:43:05 [end_date_ymd] => 2025-02-21 07:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:43:05' and `end` < '2025-02-21 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-21 07:43:17] Production.INFO: count ==109 [2025-02-21 07:43:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:43:05 - End Time 2025-02-21 07:43:05 [2025-02-21 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523623', 'tblTempUsageDetail_20' ) start [2025-02-21 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523623', 'tblTempUsageDetail_20' ) end [2025-02-21 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523623', 'tblTempVendorCDR_20' ) start [2025-02-21 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523623', 'tblTempVendorCDR_20' ) end [2025-02-21 07:43:17] Production.INFO: ProcessCDR(1,14523623,1,1,2) [2025-02-21 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523623', 'tblTempUsageDetail_20' ) start [2025-02-21 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523623', 'tblTempUsageDetail_20' ) end [2025-02-21 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:43:20] Production.INFO: ==10630== Releasing lock... [2025-02-21 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:43:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:44:04 [end_date_ymd] => 2025-02-21 07:44:04 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:44:04' and `end` < '2025-02-21 07: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-21 07:44:16] Production.INFO: count ==109 [2025-02-21 07:44:16] Production.ERROR: pbx CDR StartTime 2025-02-21 04:44:04 - End Time 2025-02-21 07:44:04 [2025-02-21 07:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523628', 'tblTempUsageDetail_20' ) start [2025-02-21 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523628', 'tblTempUsageDetail_20' ) end [2025-02-21 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523628', 'tblTempVendorCDR_20' ) start [2025-02-21 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523628', 'tblTempVendorCDR_20' ) end [2025-02-21 07:44:16] Production.INFO: ProcessCDR(1,14523628,1,1,2) [2025-02-21 07:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523628', 'tblTempUsageDetail_20' ) start [2025-02-21 07:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523628', 'tblTempUsageDetail_20' ) end [2025-02-21 07:44:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:44:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:44:19] Production.INFO: ==10700== Releasing lock... [2025-02-21 07:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:44:19] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:45:05 [end_date_ymd] => 2025-02-21 07:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:45:05' and `end` < '2025-02-21 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-21 07:45:17] Production.INFO: count ==109 [2025-02-21 07:45:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:45:05 - End Time 2025-02-21 07:45:05 [2025-02-21 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523633', 'tblTempUsageDetail_20' ) start [2025-02-21 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523633', 'tblTempUsageDetail_20' ) end [2025-02-21 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523633', 'tblTempVendorCDR_20' ) start [2025-02-21 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523633', 'tblTempVendorCDR_20' ) end [2025-02-21 07:45:17] Production.INFO: ProcessCDR(1,14523633,1,1,2) [2025-02-21 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523633', 'tblTempUsageDetail_20' ) start [2025-02-21 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523633', 'tblTempUsageDetail_20' ) end [2025-02-21 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:45:20] Production.INFO: ==10772== Releasing lock... [2025-02-21 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:45:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:46:04 [end_date_ymd] => 2025-02-21 07:46:04 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:46:04' and `end` < '2025-02-21 07: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-21 07:46:16] Production.INFO: count ==114 [2025-02-21 07:46:16] Production.ERROR: pbx CDR StartTime 2025-02-21 04:46:04 - End Time 2025-02-21 07:46:04 [2025-02-21 07:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523638', 'tblTempUsageDetail_20' ) start [2025-02-21 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523638', 'tblTempUsageDetail_20' ) end [2025-02-21 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523638', 'tblTempVendorCDR_20' ) start [2025-02-21 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523638', 'tblTempVendorCDR_20' ) end [2025-02-21 07:46:16] Production.INFO: ProcessCDR(1,14523638,1,1,2) [2025-02-21 07:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523638', 'tblTempUsageDetail_20' ) start [2025-02-21 07:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523638', 'tblTempUsageDetail_20' ) end [2025-02-21 07:46:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:46:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:46:19] Production.INFO: ==10841== Releasing lock... [2025-02-21 07:46:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:46:19] Production.INFO: 29 MB #Memory Used# [2025-02-21 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:47:05 [end_date_ymd] => 2025-02-21 07:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:47:05' and `end` < '2025-02-21 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-21 07:47:17] Production.INFO: count ==113 [2025-02-21 07:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:47:05 - End Time 2025-02-21 07:47:05 [2025-02-21 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523643', 'tblTempUsageDetail_20' ) start [2025-02-21 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523643', 'tblTempUsageDetail_20' ) end [2025-02-21 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523643', 'tblTempVendorCDR_20' ) start [2025-02-21 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523643', 'tblTempVendorCDR_20' ) end [2025-02-21 07:47:17] Production.INFO: ProcessCDR(1,14523643,1,1,2) [2025-02-21 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523643', 'tblTempUsageDetail_20' ) start [2025-02-21 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523643', 'tblTempUsageDetail_20' ) end [2025-02-21 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:47:20] Production.INFO: ==10914== Releasing lock... [2025-02-21 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:48:06 [end_date_ymd] => 2025-02-21 07:48:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:48:06' and `end` < '2025-02-21 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-21 07:48:17] Production.INFO: count ==118 [2025-02-21 07:48:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:48:06 - End Time 2025-02-21 07:48:06 [2025-02-21 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523648', 'tblTempUsageDetail_20' ) start [2025-02-21 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523648', 'tblTempUsageDetail_20' ) end [2025-02-21 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523648', 'tblTempVendorCDR_20' ) start [2025-02-21 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523648', 'tblTempVendorCDR_20' ) end [2025-02-21 07:48:17] Production.INFO: ProcessCDR(1,14523648,1,1,2) [2025-02-21 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523648', 'tblTempUsageDetail_20' ) start [2025-02-21 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523648', 'tblTempUsageDetail_20' ) end [2025-02-21 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:48:21] Production.INFO: ==10985== Releasing lock... [2025-02-21 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:49:05 [end_date_ymd] => 2025-02-21 07:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:49:05' and `end` < '2025-02-21 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-21 07:49:17] Production.INFO: count ==123 [2025-02-21 07:49:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:49:05 - End Time 2025-02-21 07:49:05 [2025-02-21 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523653', 'tblTempUsageDetail_20' ) start [2025-02-21 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523653', 'tblTempUsageDetail_20' ) end [2025-02-21 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523653', 'tblTempVendorCDR_20' ) start [2025-02-21 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523653', 'tblTempVendorCDR_20' ) end [2025-02-21 07:49:17] Production.INFO: ProcessCDR(1,14523653,1,1,2) [2025-02-21 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523653', 'tblTempUsageDetail_20' ) start [2025-02-21 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523653', 'tblTempUsageDetail_20' ) end [2025-02-21 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:49:20] Production.INFO: ==11058== Releasing lock... [2025-02-21 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:50:06 [end_date_ymd] => 2025-02-21 07:50:06 [RateCDR] => 1 ) [2025-02-21 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-21 04:50:06' and `end` < '2025-02-21 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-21 07:50:18] Production.INFO: count ==123 [2025-02-21 07:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 04:50:06 - End Time 2025-02-21 07:50:06 [2025-02-21 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523658', 'tblTempUsageDetail_20' ) start [2025-02-21 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523658', 'tblTempUsageDetail_20' ) end [2025-02-21 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523658', 'tblTempVendorCDR_20' ) start [2025-02-21 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523658', 'tblTempVendorCDR_20' ) end [2025-02-21 07:50:18] Production.INFO: ProcessCDR(1,14523658,1,1,2) [2025-02-21 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523658', 'tblTempUsageDetail_20' ) start [2025-02-21 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523658', 'tblTempUsageDetail_20' ) end [2025-02-21 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:50:21] Production.INFO: ==11137== Releasing lock... [2025-02-21 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:51:05 [end_date_ymd] => 2025-02-21 07:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:51:05' and `end` < '2025-02-21 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-21 07:51:17] Production.INFO: count ==123 [2025-02-21 07:51:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:51:05 - End Time 2025-02-21 07:51:05 [2025-02-21 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523664', 'tblTempUsageDetail_20' ) start [2025-02-21 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523664', 'tblTempUsageDetail_20' ) end [2025-02-21 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523664', 'tblTempVendorCDR_20' ) start [2025-02-21 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523664', 'tblTempVendorCDR_20' ) end [2025-02-21 07:51:17] Production.INFO: ProcessCDR(1,14523664,1,1,2) [2025-02-21 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523664', 'tblTempUsageDetail_20' ) start [2025-02-21 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523664', 'tblTempUsageDetail_20' ) end [2025-02-21 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:51:20] Production.INFO: ==11249== Releasing lock... [2025-02-21 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:52:05 [end_date_ymd] => 2025-02-21 07:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:52:05' and `end` < '2025-02-21 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-21 07:52:17] Production.INFO: count ==123 [2025-02-21 07:52:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:52:05 - End Time 2025-02-21 07:52:05 [2025-02-21 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523668', 'tblTempUsageDetail_20' ) start [2025-02-21 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523668', 'tblTempUsageDetail_20' ) end [2025-02-21 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523668', 'tblTempVendorCDR_20' ) start [2025-02-21 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523668', 'tblTempVendorCDR_20' ) end [2025-02-21 07:52:17] Production.INFO: ProcessCDR(1,14523668,1,1,2) [2025-02-21 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523668', 'tblTempUsageDetail_20' ) start [2025-02-21 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523668', 'tblTempUsageDetail_20' ) end [2025-02-21 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:52:20] Production.INFO: ==11319== Releasing lock... [2025-02-21 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:53:04 [end_date_ymd] => 2025-02-21 07:53:04 [RateCDR] => 1 ) [2025-02-21 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-21 04:53:04' and `end` < '2025-02-21 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-21 07:53:16] Production.INFO: count ==123 [2025-02-21 07:53:16] Production.ERROR: pbx CDR StartTime 2025-02-21 04:53:04 - End Time 2025-02-21 07:53:04 [2025-02-21 07:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523674', 'tblTempUsageDetail_20' ) start [2025-02-21 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523674', 'tblTempUsageDetail_20' ) end [2025-02-21 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523674', 'tblTempVendorCDR_20' ) start [2025-02-21 07:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523674', 'tblTempVendorCDR_20' ) end [2025-02-21 07:53:16] Production.INFO: ProcessCDR(1,14523674,1,1,2) [2025-02-21 07:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523674', 'tblTempUsageDetail_20' ) start [2025-02-21 07:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523674', 'tblTempUsageDetail_20' ) end [2025-02-21 07:53:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:53:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:53:19] Production.INFO: ==11389== Releasing lock... [2025-02-21 07:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:53:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:54:05 [end_date_ymd] => 2025-02-21 07:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:54:05' and `end` < '2025-02-21 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-21 07:54:17] Production.INFO: count ==128 [2025-02-21 07:54:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:54:05 - End Time 2025-02-21 07:54:05 [2025-02-21 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523679', 'tblTempUsageDetail_20' ) start [2025-02-21 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523679', 'tblTempUsageDetail_20' ) end [2025-02-21 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523679', 'tblTempVendorCDR_20' ) start [2025-02-21 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523679', 'tblTempVendorCDR_20' ) end [2025-02-21 07:54:17] Production.INFO: ProcessCDR(1,14523679,1,1,2) [2025-02-21 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523679', 'tblTempUsageDetail_20' ) start [2025-02-21 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523679', 'tblTempUsageDetail_20' ) end [2025-02-21 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:54:20] Production.INFO: ==11460== Releasing lock... [2025-02-21 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:55:06 [end_date_ymd] => 2025-02-21 07:55:06 [RateCDR] => 1 ) [2025-02-21 07: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-21 04:55:06' and `end` < '2025-02-21 07: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-21 07:55:17] Production.INFO: count ==128 [2025-02-21 07:55:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:55:06 - End Time 2025-02-21 07:55:06 [2025-02-21 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523684', 'tblTempUsageDetail_20' ) start [2025-02-21 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523684', 'tblTempUsageDetail_20' ) end [2025-02-21 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523684', 'tblTempVendorCDR_20' ) start [2025-02-21 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523684', 'tblTempVendorCDR_20' ) end [2025-02-21 07:55:17] Production.INFO: ProcessCDR(1,14523684,1,1,2) [2025-02-21 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523684', 'tblTempUsageDetail_20' ) start [2025-02-21 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523684', 'tblTempUsageDetail_20' ) end [2025-02-21 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:55:21] Production.INFO: ==11533== Releasing lock... [2025-02-21 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:56:05 [end_date_ymd] => 2025-02-21 07:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:56:05' and `end` < '2025-02-21 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-21 07:56:17] Production.INFO: count ==128 [2025-02-21 07:56:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:56:05 - End Time 2025-02-21 07:56:05 [2025-02-21 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523689', 'tblTempUsageDetail_20' ) start [2025-02-21 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523689', 'tblTempUsageDetail_20' ) end [2025-02-21 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523689', 'tblTempVendorCDR_20' ) start [2025-02-21 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523689', 'tblTempVendorCDR_20' ) end [2025-02-21 07:56:17] Production.INFO: ProcessCDR(1,14523689,1,1,2) [2025-02-21 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523689', 'tblTempUsageDetail_20' ) start [2025-02-21 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523689', 'tblTempUsageDetail_20' ) end [2025-02-21 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:56:20] Production.INFO: ==11604== Releasing lock... [2025-02-21 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:56:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:57:05 [end_date_ymd] => 2025-02-21 07:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:57:05' and `end` < '2025-02-21 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-21 07:57:17] Production.INFO: count ==133 [2025-02-21 07:57:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:57:05 - End Time 2025-02-21 07:57:05 [2025-02-21 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523694', 'tblTempUsageDetail_20' ) start [2025-02-21 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523694', 'tblTempUsageDetail_20' ) end [2025-02-21 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523694', 'tblTempVendorCDR_20' ) start [2025-02-21 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523694', 'tblTempVendorCDR_20' ) end [2025-02-21 07:57:17] Production.INFO: ProcessCDR(1,14523694,1,1,2) [2025-02-21 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523694', 'tblTempUsageDetail_20' ) start [2025-02-21 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523694', 'tblTempUsageDetail_20' ) end [2025-02-21 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:57:21] Production.INFO: ==11674== Releasing lock... [2025-02-21 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:58:05 [end_date_ymd] => 2025-02-21 07:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:58:05' and `end` < '2025-02-21 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-21 07:58:17] Production.INFO: count ==133 [2025-02-21 07:58:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:58:05 - End Time 2025-02-21 07:58:05 [2025-02-21 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523699', 'tblTempUsageDetail_20' ) start [2025-02-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523699', 'tblTempUsageDetail_20' ) end [2025-02-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523699', 'tblTempVendorCDR_20' ) start [2025-02-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523699', 'tblTempVendorCDR_20' ) end [2025-02-21 07:58:17] Production.INFO: ProcessCDR(1,14523699,1,1,2) [2025-02-21 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523699', 'tblTempUsageDetail_20' ) start [2025-02-21 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523699', 'tblTempUsageDetail_20' ) end [2025-02-21 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:58:20] Production.INFO: ==11743== Releasing lock... [2025-02-21 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:58:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 04:59:05 [end_date_ymd] => 2025-02-21 07:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 04:59:05' and `end` < '2025-02-21 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-21 07:59:17] Production.INFO: count ==134 [2025-02-21 07:59:17] Production.ERROR: pbx CDR StartTime 2025-02-21 04:59:05 - End Time 2025-02-21 07:59:05 [2025-02-21 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523704', 'tblTempUsageDetail_20' ) start [2025-02-21 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523704', 'tblTempUsageDetail_20' ) end [2025-02-21 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523704', 'tblTempVendorCDR_20' ) start [2025-02-21 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523704', 'tblTempVendorCDR_20' ) end [2025-02-21 07:59:17] Production.INFO: ProcessCDR(1,14523704,1,1,2) [2025-02-21 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523704', 'tblTempUsageDetail_20' ) start [2025-02-21 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523704', 'tblTempUsageDetail_20' ) end [2025-02-21 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 07:59:20] Production.INFO: ==11815== Releasing lock... [2025-02-21 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 07:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:00:05 [end_date_ymd] => 2025-02-21 08:00:05 [RateCDR] => 1 ) [2025-02-21 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:00:05' and `end` < '2025-02-21 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:00:17] Production.INFO: count ==138 [2025-02-21 08:00:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:00:05 - End Time 2025-02-21 08:00:05 [2025-02-21 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523710', 'tblTempUsageDetail_20' ) start [2025-02-21 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523710', 'tblTempUsageDetail_20' ) end [2025-02-21 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523710', 'tblTempVendorCDR_20' ) start [2025-02-21 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523710', 'tblTempVendorCDR_20' ) end [2025-02-21 08:00:17] Production.INFO: ProcessCDR(1,14523710,1,1,2) [2025-02-21 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523710', 'tblTempUsageDetail_20' ) start [2025-02-21 08:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523710', 'tblTempUsageDetail_20' ) end [2025-02-21 08:00:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:00:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:00:20] Production.INFO: ==11897== Releasing lock... [2025-02-21 08:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:00:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:01:05 [end_date_ymd] => 2025-02-21 08:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:01:05' and `end` < '2025-02-21 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-21 08:01:17] Production.INFO: count ==138 [2025-02-21 08:01:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:01:05 - End Time 2025-02-21 08:01:05 [2025-02-21 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523715', 'tblTempUsageDetail_20' ) start [2025-02-21 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523715', 'tblTempUsageDetail_20' ) end [2025-02-21 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523715', 'tblTempVendorCDR_20' ) start [2025-02-21 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523715', 'tblTempVendorCDR_20' ) end [2025-02-21 08:01:17] Production.INFO: ProcessCDR(1,14523715,1,1,2) [2025-02-21 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523715', 'tblTempUsageDetail_20' ) start [2025-02-21 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523715', 'tblTempUsageDetail_20' ) end [2025-02-21 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:01:20] Production.INFO: ==11985== Releasing lock... [2025-02-21 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:01:20] Production.INFO: 29 MB #Memory Used# [2025-02-21 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:02:05 [end_date_ymd] => 2025-02-21 08:02:05 [RateCDR] => 1 ) [2025-02-21 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:02:05' and `end` < '2025-02-21 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:02:16] Production.INFO: count ==144 [2025-02-21 08:02:16] Production.ERROR: pbx CDR StartTime 2025-02-21 05:02:05 - End Time 2025-02-21 08:02:05 [2025-02-21 08:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523720', 'tblTempUsageDetail_20' ) start [2025-02-21 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523720', 'tblTempUsageDetail_20' ) end [2025-02-21 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523720', 'tblTempVendorCDR_20' ) start [2025-02-21 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523720', 'tblTempVendorCDR_20' ) end [2025-02-21 08:02:16] Production.INFO: ProcessCDR(1,14523720,1,1,2) [2025-02-21 08:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523720', 'tblTempUsageDetail_20' ) start [2025-02-21 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523720', 'tblTempUsageDetail_20' ) end [2025-02-21 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:02:21] Production.INFO: ==12055== Releasing lock... [2025-02-21 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:03:05 [end_date_ymd] => 2025-02-21 08:03:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:03:05' and `end` < '2025-02-21 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-21 08:03:17] Production.INFO: count ==144 [2025-02-21 08:03:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:03:05 - End Time 2025-02-21 08:03:05 [2025-02-21 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523725', 'tblTempUsageDetail_20' ) start [2025-02-21 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523725', 'tblTempUsageDetail_20' ) end [2025-02-21 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523725', 'tblTempVendorCDR_20' ) start [2025-02-21 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523725', 'tblTempVendorCDR_20' ) end [2025-02-21 08:03:17] Production.INFO: ProcessCDR(1,14523725,1,1,2) [2025-02-21 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523725', 'tblTempUsageDetail_20' ) start [2025-02-21 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523725', 'tblTempUsageDetail_20' ) end [2025-02-21 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:03:20] Production.INFO: ==12132== Releasing lock... [2025-02-21 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:03:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:04:05 [end_date_ymd] => 2025-02-21 08:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:04:05' and `end` < '2025-02-21 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-21 08:04:17] Production.INFO: count ==148 [2025-02-21 08:04:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:04:05 - End Time 2025-02-21 08:04:05 [2025-02-21 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523730', 'tblTempUsageDetail_20' ) start [2025-02-21 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523730', 'tblTempUsageDetail_20' ) end [2025-02-21 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523730', 'tblTempVendorCDR_20' ) start [2025-02-21 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523730', 'tblTempVendorCDR_20' ) end [2025-02-21 08:04:17] Production.INFO: ProcessCDR(1,14523730,1,1,2) [2025-02-21 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523730', 'tblTempUsageDetail_20' ) start [2025-02-21 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523730', 'tblTempUsageDetail_20' ) end [2025-02-21 08:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:04:20] Production.INFO: ==12202== Releasing lock... [2025-02-21 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:04:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:05:05 [end_date_ymd] => 2025-02-21 08:05:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:05:05' and `end` < '2025-02-21 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-21 08:05:17] Production.INFO: count ==148 [2025-02-21 08:05:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:05:05 - End Time 2025-02-21 08:05:05 [2025-02-21 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523735', 'tblTempUsageDetail_20' ) start [2025-02-21 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523735', 'tblTempUsageDetail_20' ) end [2025-02-21 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523735', 'tblTempVendorCDR_20' ) start [2025-02-21 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523735', 'tblTempVendorCDR_20' ) end [2025-02-21 08:05:17] Production.INFO: ProcessCDR(1,14523735,1,1,2) [2025-02-21 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523735', 'tblTempUsageDetail_20' ) start [2025-02-21 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523735', 'tblTempUsageDetail_20' ) end [2025-02-21 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:05:20] Production.INFO: ==12275== Releasing lock... [2025-02-21 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:06:05 [end_date_ymd] => 2025-02-21 08:06:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:06:05' and `end` < '2025-02-21 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-21 08:06:17] Production.INFO: count ==148 [2025-02-21 08:06:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:06:05 - End Time 2025-02-21 08:06:05 [2025-02-21 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523740', 'tblTempUsageDetail_20' ) start [2025-02-21 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523740', 'tblTempUsageDetail_20' ) end [2025-02-21 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523740', 'tblTempVendorCDR_20' ) start [2025-02-21 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523740', 'tblTempVendorCDR_20' ) end [2025-02-21 08:06:17] Production.INFO: ProcessCDR(1,14523740,1,1,2) [2025-02-21 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523740', 'tblTempUsageDetail_20' ) start [2025-02-21 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523740', 'tblTempUsageDetail_20' ) end [2025-02-21 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:06:20] Production.INFO: ==12384== Releasing lock... [2025-02-21 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:06:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:07:05 [end_date_ymd] => 2025-02-21 08:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:07:05' and `end` < '2025-02-21 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-21 08:07:17] Production.INFO: count ==150 [2025-02-21 08:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:07:05 - End Time 2025-02-21 08:07:05 [2025-02-21 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523745', 'tblTempUsageDetail_20' ) start [2025-02-21 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523745', 'tblTempUsageDetail_20' ) end [2025-02-21 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523745', 'tblTempVendorCDR_20' ) start [2025-02-21 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523745', 'tblTempVendorCDR_20' ) end [2025-02-21 08:07:17] Production.INFO: ProcessCDR(1,14523745,1,1,2) [2025-02-21 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523745', 'tblTempUsageDetail_20' ) start [2025-02-21 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523745', 'tblTempUsageDetail_20' ) end [2025-02-21 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:07:20] Production.INFO: ==12455== Releasing lock... [2025-02-21 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:07:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-21 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:08:05 [end_date_ymd] => 2025-02-21 08:08:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:08:05' and `end` < '2025-02-21 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-21 08:08:17] Production.INFO: count ==159 [2025-02-21 08:08:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:08:05 - End Time 2025-02-21 08:08:05 [2025-02-21 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523750', 'tblTempUsageDetail_20' ) start [2025-02-21 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523750', 'tblTempUsageDetail_20' ) end [2025-02-21 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523750', 'tblTempVendorCDR_20' ) start [2025-02-21 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523750', 'tblTempVendorCDR_20' ) end [2025-02-21 08:08:17] Production.INFO: ProcessCDR(1,14523750,1,1,2) [2025-02-21 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523750', 'tblTempUsageDetail_20' ) start [2025-02-21 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523750', 'tblTempUsageDetail_20' ) end [2025-02-21 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:08:22] Production.INFO: ==12527== Releasing lock... [2025-02-21 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-21 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:09:05 [end_date_ymd] => 2025-02-21 08:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:09:05' and `end` < '2025-02-21 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-21 08:09:17] Production.INFO: count ==165 [2025-02-21 08:09:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:09:05 - End Time 2025-02-21 08:09:05 [2025-02-21 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523755', 'tblTempUsageDetail_20' ) start [2025-02-21 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523755', 'tblTempUsageDetail_20' ) end [2025-02-21 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523755', 'tblTempVendorCDR_20' ) start [2025-02-21 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523755', 'tblTempVendorCDR_20' ) end [2025-02-21 08:09:17] Production.INFO: ProcessCDR(1,14523755,1,1,2) [2025-02-21 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523755', 'tblTempUsageDetail_20' ) start [2025-02-21 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523755', 'tblTempUsageDetail_20' ) end [2025-02-21 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:09:20] Production.INFO: ==12601== Releasing lock... [2025-02-21 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:09:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:10:06 [end_date_ymd] => 2025-02-21 08:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 05:10:06' and `end` < '2025-02-21 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-21 08:10:18] Production.INFO: count ==182 [2025-02-21 08:10:18] Production.ERROR: pbx CDR StartTime 2025-02-21 05:10:06 - End Time 2025-02-21 08:10:06 [2025-02-21 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523761', 'tblTempUsageDetail_20' ) start [2025-02-21 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523761', 'tblTempUsageDetail_20' ) end [2025-02-21 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523761', 'tblTempVendorCDR_20' ) start [2025-02-21 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523761', 'tblTempVendorCDR_20' ) end [2025-02-21 08:10:18] Production.INFO: ProcessCDR(1,14523761,1,1,2) [2025-02-21 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523761', 'tblTempUsageDetail_20' ) start [2025-02-21 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523761', 'tblTempUsageDetail_20' ) end [2025-02-21 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:10:21] Production.INFO: ==12673== Releasing lock... [2025-02-21 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-21 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:11:05 [end_date_ymd] => 2025-02-21 08:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:11:05' and `end` < '2025-02-21 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-21 08:11:17] Production.INFO: count ==196 [2025-02-21 08:11:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:11:05 - End Time 2025-02-21 08:11:05 [2025-02-21 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523766', 'tblTempUsageDetail_20' ) start [2025-02-21 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523766', 'tblTempUsageDetail_20' ) end [2025-02-21 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523766', 'tblTempVendorCDR_20' ) start [2025-02-21 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523766', 'tblTempVendorCDR_20' ) end [2025-02-21 08:11:17] Production.INFO: ProcessCDR(1,14523766,1,1,2) [2025-02-21 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523766', 'tblTempUsageDetail_20' ) start [2025-02-21 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523766', 'tblTempUsageDetail_20' ) end [2025-02-21 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:11:20] Production.INFO: ==12748== Releasing lock... [2025-02-21 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:11:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:12:05 [end_date_ymd] => 2025-02-21 08:12:05 [RateCDR] => 1 ) [2025-02-21 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:12:05' and `end` < '2025-02-21 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:12:17] Production.INFO: count ==197 [2025-02-21 08:12:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:12:05 - End Time 2025-02-21 08:12:05 [2025-02-21 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523771', 'tblTempUsageDetail_20' ) start [2025-02-21 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523771', 'tblTempUsageDetail_20' ) end [2025-02-21 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523771', 'tblTempVendorCDR_20' ) start [2025-02-21 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523771', 'tblTempVendorCDR_20' ) end [2025-02-21 08:12:17] Production.INFO: ProcessCDR(1,14523771,1,1,2) [2025-02-21 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523771', 'tblTempUsageDetail_20' ) start [2025-02-21 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523771', 'tblTempUsageDetail_20' ) end [2025-02-21 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:12:21] Production.INFO: ==12820== Releasing lock... [2025-02-21 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:12:21] Production.INFO: 30 MB #Memory Used# [2025-02-21 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:13:05 [end_date_ymd] => 2025-02-21 08:13:05 [RateCDR] => 1 ) [2025-02-21 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:13:05' and `end` < '2025-02-21 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:13:17] Production.INFO: count ==199 [2025-02-21 08:13:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:13:05 - End Time 2025-02-21 08:13:05 [2025-02-21 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523776', 'tblTempUsageDetail_20' ) start [2025-02-21 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523776', 'tblTempUsageDetail_20' ) end [2025-02-21 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523776', 'tblTempVendorCDR_20' ) start [2025-02-21 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523776', 'tblTempVendorCDR_20' ) end [2025-02-21 08:13:17] Production.INFO: ProcessCDR(1,14523776,1,1,2) [2025-02-21 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523776', 'tblTempUsageDetail_20' ) start [2025-02-21 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523776', 'tblTempUsageDetail_20' ) end [2025-02-21 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:13:22] Production.INFO: ==12892== Releasing lock... [2025-02-21 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:14:05 [end_date_ymd] => 2025-02-21 08:14:05 [RateCDR] => 1 ) [2025-02-21 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:14:05' and `end` < '2025-02-21 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:14:17] Production.INFO: count ==202 [2025-02-21 08:14:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:14:05 - End Time 2025-02-21 08:14:05 [2025-02-21 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523781', 'tblTempUsageDetail_20' ) start [2025-02-21 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523781', 'tblTempUsageDetail_20' ) end [2025-02-21 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523781', 'tblTempVendorCDR_20' ) start [2025-02-21 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523781', 'tblTempVendorCDR_20' ) end [2025-02-21 08:14:17] Production.INFO: ProcessCDR(1,14523781,1,1,2) [2025-02-21 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523781', 'tblTempUsageDetail_20' ) start [2025-02-21 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523781', 'tblTempUsageDetail_20' ) end [2025-02-21 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:14:22] Production.INFO: ==12963== Releasing lock... [2025-02-21 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:14:22] Production.INFO: 30 MB #Memory Used# [2025-02-21 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:15:05 [end_date_ymd] => 2025-02-21 08:15:05 [RateCDR] => 1 ) [2025-02-21 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:15:05' and `end` < '2025-02-21 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:15:17] Production.INFO: count ==216 [2025-02-21 08:15:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:15:05 - End Time 2025-02-21 08:15:05 [2025-02-21 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523786', 'tblTempUsageDetail_20' ) start [2025-02-21 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523786', 'tblTempUsageDetail_20' ) end [2025-02-21 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523786', 'tblTempVendorCDR_20' ) start [2025-02-21 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523786', 'tblTempVendorCDR_20' ) end [2025-02-21 08:15:17] Production.INFO: ProcessCDR(1,14523786,1,1,2) [2025-02-21 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523786', 'tblTempUsageDetail_20' ) start [2025-02-21 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523786', 'tblTempUsageDetail_20' ) end [2025-02-21 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:15:20] Production.INFO: ==13033== Releasing lock... [2025-02-21 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:15:20] Production.INFO: 30 MB #Memory Used# [2025-02-21 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:16:05 [end_date_ymd] => 2025-02-21 08:16:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:16:05' and `end` < '2025-02-21 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-21 08:16:17] Production.INFO: count ==220 [2025-02-21 08:16:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:16:05 - End Time 2025-02-21 08:16:05 [2025-02-21 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523791', 'tblTempUsageDetail_20' ) start [2025-02-21 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523791', 'tblTempUsageDetail_20' ) end [2025-02-21 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523791', 'tblTempVendorCDR_20' ) start [2025-02-21 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523791', 'tblTempVendorCDR_20' ) end [2025-02-21 08:16:17] Production.INFO: ProcessCDR(1,14523791,1,1,2) [2025-02-21 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523791', 'tblTempUsageDetail_20' ) start [2025-02-21 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523791', 'tblTempUsageDetail_20' ) end [2025-02-21 08:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:16:20] Production.INFO: ==13106== Releasing lock... [2025-02-21 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:16:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:17:05 [end_date_ymd] => 2025-02-21 08:17:05 [RateCDR] => 1 ) [2025-02-21 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:17:05' and `end` < '2025-02-21 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:17:17] Production.INFO: count ==227 [2025-02-21 08:17:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:17:05 - End Time 2025-02-21 08:17:05 [2025-02-21 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523796', 'tblTempUsageDetail_20' ) start [2025-02-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523796', 'tblTempUsageDetail_20' ) end [2025-02-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523796', 'tblTempVendorCDR_20' ) start [2025-02-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523796', 'tblTempVendorCDR_20' ) end [2025-02-21 08:17:17] Production.INFO: ProcessCDR(1,14523796,1,1,2) [2025-02-21 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523796', 'tblTempUsageDetail_20' ) start [2025-02-21 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523796', 'tblTempUsageDetail_20' ) end [2025-02-21 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:17:22] Production.INFO: ==13180== Releasing lock... [2025-02-21 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:17:22] Production.INFO: 30 MB #Memory Used# [2025-02-21 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:18:05 [end_date_ymd] => 2025-02-21 08:18:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:18:05' and `end` < '2025-02-21 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-21 08:18:16] Production.INFO: count ==234 [2025-02-21 08:18:16] Production.ERROR: pbx CDR StartTime 2025-02-21 05:18:05 - End Time 2025-02-21 08:18:05 [2025-02-21 08:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523801', 'tblTempUsageDetail_20' ) start [2025-02-21 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523801', 'tblTempUsageDetail_20' ) end [2025-02-21 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523801', 'tblTempVendorCDR_20' ) start [2025-02-21 08:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523801', 'tblTempVendorCDR_20' ) end [2025-02-21 08:18:16] Production.INFO: ProcessCDR(1,14523801,1,1,2) [2025-02-21 08:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523801', 'tblTempUsageDetail_20' ) start [2025-02-21 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523801', 'tblTempUsageDetail_20' ) end [2025-02-21 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:18:21] Production.INFO: ==13263== Releasing lock... [2025-02-21 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:19:05 [end_date_ymd] => 2025-02-21 08:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:19:05' and `end` < '2025-02-21 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-21 08:19:17] Production.INFO: count ==236 [2025-02-21 08:19:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:19:05 - End Time 2025-02-21 08:19:05 [2025-02-21 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523806', 'tblTempUsageDetail_20' ) start [2025-02-21 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523806', 'tblTempUsageDetail_20' ) end [2025-02-21 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523806', 'tblTempVendorCDR_20' ) start [2025-02-21 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523806', 'tblTempVendorCDR_20' ) end [2025-02-21 08:19:17] Production.INFO: ProcessCDR(1,14523806,1,1,2) [2025-02-21 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523806', 'tblTempUsageDetail_20' ) start [2025-02-21 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523806', 'tblTempUsageDetail_20' ) end [2025-02-21 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:19:22] Production.INFO: ==13339== Releasing lock... [2025-02-21 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:20:05 [end_date_ymd] => 2025-02-21 08:20:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:20:05' and `end` < '2025-02-21 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-21 08:20:17] Production.INFO: count ==258 [2025-02-21 08:20:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:20:05 - End Time 2025-02-21 08:20:05 [2025-02-21 08:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523811', 'tblTempUsageDetail_20' ) start [2025-02-21 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523811', 'tblTempUsageDetail_20' ) end [2025-02-21 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523811', 'tblTempVendorCDR_20' ) start [2025-02-21 08:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523811', 'tblTempVendorCDR_20' ) end [2025-02-21 08:20:17] Production.INFO: ProcessCDR(1,14523811,1,1,2) [2025-02-21 08:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523811', 'tblTempUsageDetail_20' ) start [2025-02-21 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523811', 'tblTempUsageDetail_20' ) end [2025-02-21 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:20:21] Production.INFO: ==13413== Releasing lock... [2025-02-21 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-21 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:21:05 [end_date_ymd] => 2025-02-21 08:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:21:05' and `end` < '2025-02-21 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-21 08:21:17] Production.INFO: count ==296 [2025-02-21 08:21:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:21:05 - End Time 2025-02-21 08:21:05 [2025-02-21 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523817', 'tblTempUsageDetail_20' ) start [2025-02-21 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523817', 'tblTempUsageDetail_20' ) end [2025-02-21 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523817', 'tblTempVendorCDR_20' ) start [2025-02-21 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523817', 'tblTempVendorCDR_20' ) end [2025-02-21 08:21:17] Production.INFO: ProcessCDR(1,14523817,1,1,2) [2025-02-21 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523817', 'tblTempUsageDetail_20' ) start [2025-02-21 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523817', 'tblTempUsageDetail_20' ) end [2025-02-21 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:21:22] Production.INFO: ==13524== Releasing lock... [2025-02-21 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:21:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:22:05 [end_date_ymd] => 2025-02-21 08:22:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:22:05' and `end` < '2025-02-21 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-21 08:22:17] Production.INFO: count ==298 [2025-02-21 08:22:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:22:05 - End Time 2025-02-21 08:22:05 [2025-02-21 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523822', 'tblTempUsageDetail_20' ) start [2025-02-21 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523822', 'tblTempUsageDetail_20' ) end [2025-02-21 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523822', 'tblTempVendorCDR_20' ) start [2025-02-21 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523822', 'tblTempVendorCDR_20' ) end [2025-02-21 08:22:17] Production.INFO: ProcessCDR(1,14523822,1,1,2) [2025-02-21 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523822', 'tblTempUsageDetail_20' ) start [2025-02-21 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523822', 'tblTempUsageDetail_20' ) end [2025-02-21 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:22:20] Production.INFO: ==13595== Releasing lock... [2025-02-21 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:22:20] Production.INFO: 31 MB #Memory Used# [2025-02-21 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:23:05 [end_date_ymd] => 2025-02-21 08:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:23:05' and `end` < '2025-02-21 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-21 08:23:17] Production.INFO: count ==300 [2025-02-21 08:23:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:23:05 - End Time 2025-02-21 08:23:05 [2025-02-21 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523827', 'tblTempUsageDetail_20' ) start [2025-02-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523827', 'tblTempUsageDetail_20' ) end [2025-02-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523827', 'tblTempVendorCDR_20' ) start [2025-02-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523827', 'tblTempVendorCDR_20' ) end [2025-02-21 08:23:17] Production.INFO: ProcessCDR(1,14523827,1,1,2) [2025-02-21 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523827', 'tblTempUsageDetail_20' ) start [2025-02-21 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523827', 'tblTempUsageDetail_20' ) end [2025-02-21 08:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:23:20] Production.INFO: ==13667== Releasing lock... [2025-02-21 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:23:20] Production.INFO: 31 MB #Memory Used# [2025-02-21 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:24:05 [end_date_ymd] => 2025-02-21 08:24:05 [RateCDR] => 1 ) [2025-02-21 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:24:05' and `end` < '2025-02-21 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:24:17] Production.INFO: count ==310 [2025-02-21 08:24:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:24:05 - End Time 2025-02-21 08:24:05 [2025-02-21 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523832', 'tblTempUsageDetail_20' ) start [2025-02-21 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523832', 'tblTempUsageDetail_20' ) end [2025-02-21 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523832', 'tblTempVendorCDR_20' ) start [2025-02-21 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523832', 'tblTempVendorCDR_20' ) end [2025-02-21 08:24:17] Production.INFO: ProcessCDR(1,14523832,1,1,2) [2025-02-21 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523832', 'tblTempUsageDetail_20' ) start [2025-02-21 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523832', 'tblTempUsageDetail_20' ) end [2025-02-21 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:24:22] Production.INFO: ==13738== Releasing lock... [2025-02-21 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-21 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:25:05 [end_date_ymd] => 2025-02-21 08:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:25:05' and `end` < '2025-02-21 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-21 08:25:17] Production.INFO: count ==315 [2025-02-21 08:25:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:25:05 - End Time 2025-02-21 08:25:05 [2025-02-21 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523837', 'tblTempUsageDetail_20' ) start [2025-02-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523837', 'tblTempUsageDetail_20' ) end [2025-02-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523837', 'tblTempVendorCDR_20' ) start [2025-02-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523837', 'tblTempVendorCDR_20' ) end [2025-02-21 08:25:17] Production.INFO: ProcessCDR(1,14523837,1,1,2) [2025-02-21 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523837', 'tblTempUsageDetail_20' ) start [2025-02-21 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523837', 'tblTempUsageDetail_20' ) end [2025-02-21 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:25:20] Production.INFO: ==13808== Releasing lock... [2025-02-21 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:25:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:26:06 [end_date_ymd] => 2025-02-21 08:26:06 [RateCDR] => 1 ) [2025-02-21 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:26:06' and `end` < '2025-02-21 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:26:17] Production.INFO: count ==327 [2025-02-21 08:26:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:26:06 - End Time 2025-02-21 08:26:06 [2025-02-21 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523842', 'tblTempUsageDetail_20' ) start [2025-02-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523842', 'tblTempUsageDetail_20' ) end [2025-02-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523842', 'tblTempVendorCDR_20' ) start [2025-02-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523842', 'tblTempVendorCDR_20' ) end [2025-02-21 08:26:17] Production.INFO: ProcessCDR(1,14523842,1,1,2) [2025-02-21 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523842', 'tblTempUsageDetail_20' ) start [2025-02-21 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523842', 'tblTempUsageDetail_20' ) end [2025-02-21 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:26:21] Production.INFO: ==13880== Releasing lock... [2025-02-21 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-21 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:27:05 [end_date_ymd] => 2025-02-21 08:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:27:05' and `end` < '2025-02-21 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-21 08:27:17] Production.INFO: count ==336 [2025-02-21 08:27:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:27:05 - End Time 2025-02-21 08:27:05 [2025-02-21 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523847', 'tblTempUsageDetail_20' ) start [2025-02-21 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523847', 'tblTempUsageDetail_20' ) end [2025-02-21 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523847', 'tblTempVendorCDR_20' ) start [2025-02-21 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523847', 'tblTempVendorCDR_20' ) end [2025-02-21 08:27:17] Production.INFO: ProcessCDR(1,14523847,1,1,2) [2025-02-21 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523847', 'tblTempUsageDetail_20' ) start [2025-02-21 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523847', 'tblTempUsageDetail_20' ) end [2025-02-21 08:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:27:20] Production.INFO: ==13953== Releasing lock... [2025-02-21 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:27:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:28:05 [end_date_ymd] => 2025-02-21 08:28:05 [RateCDR] => 1 ) [2025-02-21 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:28:05' and `end` < '2025-02-21 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:28:17] Production.INFO: count ==338 [2025-02-21 08:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:28:05 - End Time 2025-02-21 08:28:05 [2025-02-21 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523852', 'tblTempUsageDetail_20' ) start [2025-02-21 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523852', 'tblTempUsageDetail_20' ) end [2025-02-21 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523852', 'tblTempVendorCDR_20' ) start [2025-02-21 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523852', 'tblTempVendorCDR_20' ) end [2025-02-21 08:28:17] Production.INFO: ProcessCDR(1,14523852,1,1,2) [2025-02-21 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523852', 'tblTempUsageDetail_20' ) start [2025-02-21 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523852', 'tblTempUsageDetail_20' ) end [2025-02-21 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:28:21] Production.INFO: ==14025== Releasing lock... [2025-02-21 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-21 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:29:05 [end_date_ymd] => 2025-02-21 08:29:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:29:05' and `end` < '2025-02-21 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-21 08:29:17] Production.INFO: count ==343 [2025-02-21 08:29:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:29:05 - End Time 2025-02-21 08:29:05 [2025-02-21 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523857', 'tblTempUsageDetail_20' ) start [2025-02-21 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523857', 'tblTempUsageDetail_20' ) end [2025-02-21 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523857', 'tblTempVendorCDR_20' ) start [2025-02-21 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523857', 'tblTempVendorCDR_20' ) end [2025-02-21 08:29:17] Production.INFO: ProcessCDR(1,14523857,1,1,2) [2025-02-21 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523857', 'tblTempUsageDetail_20' ) start [2025-02-21 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523857', 'tblTempUsageDetail_20' ) end [2025-02-21 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:29:20] Production.INFO: ==14095== Releasing lock... [2025-02-21 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:29:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-21 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:30:06 [end_date_ymd] => 2025-02-21 08:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 05:30:06' and `end` < '2025-02-21 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-21 08:30:18] Production.INFO: count ==356 [2025-02-21 08:30:18] Production.ERROR: pbx CDR StartTime 2025-02-21 05:30:06 - End Time 2025-02-21 08:30:06 [2025-02-21 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523863', 'tblTempUsageDetail_20' ) start [2025-02-21 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523863', 'tblTempUsageDetail_20' ) end [2025-02-21 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523863', 'tblTempVendorCDR_20' ) start [2025-02-21 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523863', 'tblTempVendorCDR_20' ) end [2025-02-21 08:30:18] Production.INFO: ProcessCDR(1,14523863,1,1,2) [2025-02-21 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523863', 'tblTempUsageDetail_20' ) start [2025-02-21 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523863', 'tblTempUsageDetail_20' ) end [2025-02-21 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:30:22] Production.INFO: ==14172== Releasing lock... [2025-02-21 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:30:22] Production.INFO: 31 MB #Memory Used# [2025-02-21 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:31:04 [end_date_ymd] => 2025-02-21 08:31:04 [RateCDR] => 1 ) [2025-02-21 08: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-21 05:31:04' and `end` < '2025-02-21 08: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-21 08:31:16] Production.INFO: count ==378 [2025-02-21 08:31:16] Production.ERROR: pbx CDR StartTime 2025-02-21 05:31:04 - End Time 2025-02-21 08:31:04 [2025-02-21 08:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523868', 'tblTempUsageDetail_20' ) start [2025-02-21 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523868', 'tblTempUsageDetail_20' ) end [2025-02-21 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523868', 'tblTempVendorCDR_20' ) start [2025-02-21 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523868', 'tblTempVendorCDR_20' ) end [2025-02-21 08:31:16] Production.INFO: ProcessCDR(1,14523868,1,1,2) [2025-02-21 08:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523868', 'tblTempUsageDetail_20' ) start [2025-02-21 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523868', 'tblTempUsageDetail_20' ) end [2025-02-21 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:31:21] Production.INFO: ==14246== Releasing lock... [2025-02-21 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:31:21] Production.INFO: 31 MB #Memory Used# [2025-02-21 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:32:06 [end_date_ymd] => 2025-02-21 08:32:06 [RateCDR] => 1 ) [2025-02-21 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-21 05:32:06' and `end` < '2025-02-21 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-21 08:32:18] Production.INFO: count ==378 [2025-02-21 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-21 05:32:06 - End Time 2025-02-21 08:32:06 [2025-02-21 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523873', 'tblTempUsageDetail_20' ) start [2025-02-21 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523873', 'tblTempUsageDetail_20' ) end [2025-02-21 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523873', 'tblTempVendorCDR_20' ) start [2025-02-21 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523873', 'tblTempVendorCDR_20' ) end [2025-02-21 08:32:18] Production.INFO: ProcessCDR(1,14523873,1,1,2) [2025-02-21 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523873', 'tblTempUsageDetail_20' ) start [2025-02-21 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523873', 'tblTempUsageDetail_20' ) end [2025-02-21 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:32:21] Production.INFO: ==14318== Releasing lock... [2025-02-21 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:32:21] Production.INFO: 31 MB #Memory Used# [2025-02-21 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:33:05 [end_date_ymd] => 2025-02-21 08:33:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:33:05' and `end` < '2025-02-21 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-21 08:33:17] Production.INFO: count ==384 [2025-02-21 08:33:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:33:05 - End Time 2025-02-21 08:33:05 [2025-02-21 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523878', 'tblTempUsageDetail_20' ) start [2025-02-21 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523878', 'tblTempUsageDetail_20' ) end [2025-02-21 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523878', 'tblTempVendorCDR_20' ) start [2025-02-21 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523878', 'tblTempVendorCDR_20' ) end [2025-02-21 08:33:17] Production.INFO: ProcessCDR(1,14523878,1,1,2) [2025-02-21 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523878', 'tblTempUsageDetail_20' ) start [2025-02-21 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523878', 'tblTempUsageDetail_20' ) end [2025-02-21 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:33:20] Production.INFO: ==14389== Releasing lock... [2025-02-21 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:33:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-21 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:34:06 [end_date_ymd] => 2025-02-21 08:34:06 [RateCDR] => 1 ) [2025-02-21 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:34:06' and `end` < '2025-02-21 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:34:17] Production.INFO: count ==388 [2025-02-21 08:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:34:06 - End Time 2025-02-21 08:34:06 [2025-02-21 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523883', 'tblTempUsageDetail_20' ) start [2025-02-21 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523883', 'tblTempUsageDetail_20' ) end [2025-02-21 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523883', 'tblTempVendorCDR_20' ) start [2025-02-21 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523883', 'tblTempVendorCDR_20' ) end [2025-02-21 08:34:18] Production.INFO: ProcessCDR(1,14523883,1,1,2) [2025-02-21 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523883', 'tblTempUsageDetail_20' ) start [2025-02-21 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523883', 'tblTempUsageDetail_20' ) end [2025-02-21 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:34:21] Production.INFO: ==14461== Releasing lock... [2025-02-21 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-21 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:35:05 [end_date_ymd] => 2025-02-21 08:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:35:05' and `end` < '2025-02-21 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-21 08:35:17] Production.INFO: count ==388 [2025-02-21 08:35:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:35:05 - End Time 2025-02-21 08:35:05 [2025-02-21 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523888', 'tblTempUsageDetail_20' ) start [2025-02-21 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523888', 'tblTempUsageDetail_20' ) end [2025-02-21 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523888', 'tblTempVendorCDR_20' ) start [2025-02-21 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523888', 'tblTempVendorCDR_20' ) end [2025-02-21 08:35:17] Production.INFO: ProcessCDR(1,14523888,1,1,2) [2025-02-21 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523888', 'tblTempUsageDetail_20' ) start [2025-02-21 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523888', 'tblTempUsageDetail_20' ) end [2025-02-21 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:35:20] Production.INFO: ==14531== Releasing lock... [2025-02-21 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:35:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-21 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:36:06 [end_date_ymd] => 2025-02-21 08:36:06 [RateCDR] => 1 ) [2025-02-21 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:36:06' and `end` < '2025-02-21 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:36:17] Production.INFO: count ==393 [2025-02-21 08:36:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:36:06 - End Time 2025-02-21 08:36:06 [2025-02-21 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523893', 'tblTempUsageDetail_20' ) start [2025-02-21 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523893', 'tblTempUsageDetail_20' ) end [2025-02-21 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523893', 'tblTempVendorCDR_20' ) start [2025-02-21 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523893', 'tblTempVendorCDR_20' ) end [2025-02-21 08:36:18] Production.INFO: ProcessCDR(1,14523893,1,1,2) [2025-02-21 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523893', 'tblTempUsageDetail_20' ) start [2025-02-21 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523893', 'tblTempUsageDetail_20' ) end [2025-02-21 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:36:21] Production.INFO: ==14602== Releasing lock... [2025-02-21 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-21 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:37:04 [end_date_ymd] => 2025-02-21 08:37:04 [RateCDR] => 1 ) [2025-02-21 08: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-21 05:37:04' and `end` < '2025-02-21 08: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-21 08:37:16] Production.INFO: count ==407 [2025-02-21 08:37:16] Production.ERROR: pbx CDR StartTime 2025-02-21 05:37:04 - End Time 2025-02-21 08:37:04 [2025-02-21 08:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523898', 'tblTempUsageDetail_20' ) start [2025-02-21 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523898', 'tblTempUsageDetail_20' ) end [2025-02-21 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523898', 'tblTempVendorCDR_20' ) start [2025-02-21 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523898', 'tblTempVendorCDR_20' ) end [2025-02-21 08:37:16] Production.INFO: ProcessCDR(1,14523898,1,1,2) [2025-02-21 08:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523898', 'tblTempUsageDetail_20' ) start [2025-02-21 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523898', 'tblTempUsageDetail_20' ) end [2025-02-21 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:37:21] Production.INFO: ==14727== Releasing lock... [2025-02-21 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-21 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:38:05 [end_date_ymd] => 2025-02-21 08:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:38:05' and `end` < '2025-02-21 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-21 08:38:17] Production.INFO: count ==424 [2025-02-21 08:38:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:38:05 - End Time 2025-02-21 08:38:05 [2025-02-21 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523903', 'tblTempUsageDetail_20' ) start [2025-02-21 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523903', 'tblTempUsageDetail_20' ) end [2025-02-21 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523903', 'tblTempVendorCDR_20' ) start [2025-02-21 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523903', 'tblTempVendorCDR_20' ) end [2025-02-21 08:38:17] Production.INFO: ProcessCDR(1,14523903,1,1,2) [2025-02-21 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523903', 'tblTempUsageDetail_20' ) start [2025-02-21 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523903', 'tblTempUsageDetail_20' ) end [2025-02-21 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:38:22] Production.INFO: ==14819== Releasing lock... [2025-02-21 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:38:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-21 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:39:04 [end_date_ymd] => 2025-02-21 08:39:04 [RateCDR] => 1 ) [2025-02-21 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:39:04' and `end` < '2025-02-21 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:39:16] Production.INFO: count ==421 [2025-02-21 08:39:16] Production.ERROR: pbx CDR StartTime 2025-02-21 05:39:04 - End Time 2025-02-21 08:39:04 [2025-02-21 08:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523908', 'tblTempUsageDetail_20' ) start [2025-02-21 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523908', 'tblTempUsageDetail_20' ) end [2025-02-21 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523908', 'tblTempVendorCDR_20' ) start [2025-02-21 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523908', 'tblTempVendorCDR_20' ) end [2025-02-21 08:39:16] Production.INFO: ProcessCDR(1,14523908,1,1,2) [2025-02-21 08:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523908', 'tblTempUsageDetail_20' ) start [2025-02-21 08:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523908', 'tblTempUsageDetail_20' ) end [2025-02-21 08:39:19] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:39:19] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:39:19] Production.INFO: ==14913== Releasing lock... [2025-02-21 08:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:39:19] Production.INFO: 32 MB #Memory Used# [2025-02-21 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:40:06 [end_date_ymd] => 2025-02-21 08:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 05:40:06' and `end` < '2025-02-21 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-21 08:40:18] Production.INFO: count ==437 [2025-02-21 08:40:18] Production.ERROR: pbx CDR StartTime 2025-02-21 05:40:06 - End Time 2025-02-21 08:40:06 [2025-02-21 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523913', 'tblTempUsageDetail_20' ) start [2025-02-21 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523913', 'tblTempUsageDetail_20' ) end [2025-02-21 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523913', 'tblTempVendorCDR_20' ) start [2025-02-21 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523913', 'tblTempVendorCDR_20' ) end [2025-02-21 08:40:18] Production.INFO: ProcessCDR(1,14523913,1,1,2) [2025-02-21 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523913', 'tblTempUsageDetail_20' ) start [2025-02-21 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523913', 'tblTempUsageDetail_20' ) end [2025-02-21 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:40:23] Production.INFO: ==15005== Releasing lock... [2025-02-21 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:40:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-21 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:41:06 [end_date_ymd] => 2025-02-21 08:41:06 [RateCDR] => 1 ) [2025-02-21 08:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:41:06' and `end` < '2025-02-21 08:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:41:18] Production.INFO: count ==487 [2025-02-21 08:41:18] Production.ERROR: pbx CDR StartTime 2025-02-21 05:41:06 - End Time 2025-02-21 08:41:06 [2025-02-21 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523919', 'tblTempUsageDetail_20' ) start [2025-02-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523919', 'tblTempUsageDetail_20' ) end [2025-02-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523919', 'tblTempVendorCDR_20' ) start [2025-02-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523919', 'tblTempVendorCDR_20' ) end [2025-02-21 08:41:18] Production.INFO: ProcessCDR(1,14523919,1,1,2) [2025-02-21 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523919', 'tblTempUsageDetail_20' ) start [2025-02-21 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523919', 'tblTempUsageDetail_20' ) end [2025-02-21 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:41:23] Production.INFO: ==15100== Releasing lock... [2025-02-21 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:41:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-21 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:42:05 [end_date_ymd] => 2025-02-21 08:42:05 [RateCDR] => 1 ) [2025-02-21 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:42:05' and `end` < '2025-02-21 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:42:17] Production.INFO: count ==491 [2025-02-21 08:42:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:42:05 - End Time 2025-02-21 08:42:05 [2025-02-21 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523924', 'tblTempUsageDetail_20' ) start [2025-02-21 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523924', 'tblTempUsageDetail_20' ) end [2025-02-21 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523924', 'tblTempVendorCDR_20' ) start [2025-02-21 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523924', 'tblTempVendorCDR_20' ) end [2025-02-21 08:42:17] Production.INFO: ProcessCDR(1,14523924,1,1,2) [2025-02-21 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523924', 'tblTempUsageDetail_20' ) start [2025-02-21 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523924', 'tblTempUsageDetail_20' ) end [2025-02-21 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:42:22] Production.INFO: ==15198== Releasing lock... [2025-02-21 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:42:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-21 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:43:05 [end_date_ymd] => 2025-02-21 08:43:05 [RateCDR] => 1 ) [2025-02-21 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:43:05' and `end` < '2025-02-21 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:43:17] Production.INFO: count ==501 [2025-02-21 08:43:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:43:05 - End Time 2025-02-21 08:43:05 [2025-02-21 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523929', 'tblTempUsageDetail_20' ) start [2025-02-21 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523929', 'tblTempUsageDetail_20' ) end [2025-02-21 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523929', 'tblTempVendorCDR_20' ) start [2025-02-21 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523929', 'tblTempVendorCDR_20' ) end [2025-02-21 08:43:17] Production.INFO: ProcessCDR(1,14523929,1,1,2) [2025-02-21 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523929', 'tblTempUsageDetail_20' ) start [2025-02-21 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523929', 'tblTempUsageDetail_20' ) end [2025-02-21 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:43:22] Production.INFO: ==15293== Releasing lock... [2025-02-21 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-21 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:44:05 [end_date_ymd] => 2025-02-21 08:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:44:05' and `end` < '2025-02-21 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-21 08:44:17] Production.INFO: count ==525 [2025-02-21 08:44:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:44:05 - End Time 2025-02-21 08:44:05 [2025-02-21 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523934', 'tblTempUsageDetail_20' ) start [2025-02-21 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523934', 'tblTempUsageDetail_20' ) end [2025-02-21 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523934', 'tblTempVendorCDR_20' ) start [2025-02-21 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523934', 'tblTempVendorCDR_20' ) end [2025-02-21 08:44:17] Production.INFO: ProcessCDR(1,14523934,1,1,2) [2025-02-21 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523934', 'tblTempUsageDetail_20' ) start [2025-02-21 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523934', 'tblTempUsageDetail_20' ) end [2025-02-21 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:44:22] Production.INFO: ==15390== Releasing lock... [2025-02-21 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-21 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:45:05 [end_date_ymd] => 2025-02-21 08:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:45:05' and `end` < '2025-02-21 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-21 08:45:17] Production.INFO: count ==539 [2025-02-21 08:45:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:45:05 - End Time 2025-02-21 08:45:05 [2025-02-21 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523939', 'tblTempUsageDetail_20' ) start [2025-02-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523939', 'tblTempUsageDetail_20' ) end [2025-02-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523939', 'tblTempVendorCDR_20' ) start [2025-02-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523939', 'tblTempVendorCDR_20' ) end [2025-02-21 08:45:17] Production.INFO: ProcessCDR(1,14523939,1,1,2) [2025-02-21 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523939', 'tblTempUsageDetail_20' ) start [2025-02-21 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523939', 'tblTempUsageDetail_20' ) end [2025-02-21 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:45:21] Production.INFO: ==15483== Releasing lock... [2025-02-21 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-21 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:46:05 [end_date_ymd] => 2025-02-21 08:46:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:46:05' and `end` < '2025-02-21 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-21 08:46:17] Production.INFO: count ==541 [2025-02-21 08:46:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:46:05 - End Time 2025-02-21 08:46:05 [2025-02-21 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523944', 'tblTempUsageDetail_20' ) start [2025-02-21 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523944', 'tblTempUsageDetail_20' ) end [2025-02-21 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523944', 'tblTempVendorCDR_20' ) start [2025-02-21 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523944', 'tblTempVendorCDR_20' ) end [2025-02-21 08:46:17] Production.INFO: ProcessCDR(1,14523944,1,1,2) [2025-02-21 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523944', 'tblTempUsageDetail_20' ) start [2025-02-21 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523944', 'tblTempUsageDetail_20' ) end [2025-02-21 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:46:22] Production.INFO: ==15575== Releasing lock... [2025-02-21 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-21 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:47:06 [end_date_ymd] => 2025-02-21 08:47:06 [RateCDR] => 1 ) [2025-02-21 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-21 05:47:06' and `end` < '2025-02-21 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-21 08:47:17] Production.INFO: count ==559 [2025-02-21 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-21 05:47:06 - End Time 2025-02-21 08:47:06 [2025-02-21 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523949', 'tblTempUsageDetail_20' ) start [2025-02-21 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523949', 'tblTempUsageDetail_20' ) end [2025-02-21 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523949', 'tblTempVendorCDR_20' ) start [2025-02-21 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523949', 'tblTempVendorCDR_20' ) end [2025-02-21 08:47:18] Production.INFO: ProcessCDR(1,14523949,1,1,2) [2025-02-21 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523949', 'tblTempUsageDetail_20' ) start [2025-02-21 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523949', 'tblTempUsageDetail_20' ) end [2025-02-21 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:47:23] Production.INFO: ==15673== Releasing lock... [2025-02-21 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:47:23] Production.INFO: 33 MB #Memory Used# [2025-02-21 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:48:05 [end_date_ymd] => 2025-02-21 08:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:48:05' and `end` < '2025-02-21 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-21 08:48:17] Production.INFO: count ==566 [2025-02-21 08:48:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:48:05 - End Time 2025-02-21 08:48:05 [2025-02-21 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523954', 'tblTempUsageDetail_20' ) start [2025-02-21 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523954', 'tblTempUsageDetail_20' ) end [2025-02-21 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523954', 'tblTempVendorCDR_20' ) start [2025-02-21 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523954', 'tblTempVendorCDR_20' ) end [2025-02-21 08:48:17] Production.INFO: ProcessCDR(1,14523954,1,1,2) [2025-02-21 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523954', 'tblTempUsageDetail_20' ) start [2025-02-21 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523954', 'tblTempUsageDetail_20' ) end [2025-02-21 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:48:21] Production.INFO: ==15765== Releasing lock... [2025-02-21 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:48:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-21 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:49:05 [end_date_ymd] => 2025-02-21 08:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:49:05' and `end` < '2025-02-21 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:49:17] Production.INFO: count ==574 [2025-02-21 08:49:18] Production.ERROR: pbx CDR StartTime 2025-02-21 05:49:05 - End Time 2025-02-21 08:49:05 [2025-02-21 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523959', 'tblTempUsageDetail_20' ) start [2025-02-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523959', 'tblTempUsageDetail_20' ) end [2025-02-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523959', 'tblTempVendorCDR_20' ) start [2025-02-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523959', 'tblTempVendorCDR_20' ) end [2025-02-21 08:49:18] Production.INFO: ProcessCDR(1,14523959,1,1,2) [2025-02-21 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523959', 'tblTempUsageDetail_20' ) start [2025-02-21 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523959', 'tblTempUsageDetail_20' ) end [2025-02-21 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:49:22] Production.INFO: ==15883== Releasing lock... [2025-02-21 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:49:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-21 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:50:05 [end_date_ymd] => 2025-02-21 08:50:05 [RateCDR] => 1 ) [2025-02-21 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:50:05' and `end` < '2025-02-21 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:50:17] Production.INFO: count ==606 [2025-02-21 08:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 05:50:05 - End Time 2025-02-21 08:50:05 [2025-02-21 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523964', 'tblTempUsageDetail_20' ) start [2025-02-21 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523964', 'tblTempUsageDetail_20' ) end [2025-02-21 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523964', 'tblTempVendorCDR_20' ) start [2025-02-21 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523964', 'tblTempVendorCDR_20' ) end [2025-02-21 08:50:18] Production.INFO: ProcessCDR(1,14523964,1,1,2) [2025-02-21 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523964', 'tblTempUsageDetail_20' ) start [2025-02-21 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523964', 'tblTempUsageDetail_20' ) end [2025-02-21 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:50:23] Production.INFO: ==15980== Releasing lock... [2025-02-21 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:50:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-21 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:51:05 [end_date_ymd] => 2025-02-21 08:51:05 [RateCDR] => 1 ) [2025-02-21 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:51:05' and `end` < '2025-02-21 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:51:17] Production.INFO: count ==657 [2025-02-21 08:51:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:51:05 - End Time 2025-02-21 08:51:05 [2025-02-21 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523970', 'tblTempUsageDetail_20' ) start [2025-02-21 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523970', 'tblTempUsageDetail_20' ) end [2025-02-21 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523970', 'tblTempVendorCDR_20' ) start [2025-02-21 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523970', 'tblTempVendorCDR_20' ) end [2025-02-21 08:51:17] Production.INFO: ProcessCDR(1,14523970,1,1,2) [2025-02-21 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523970', 'tblTempUsageDetail_20' ) start [2025-02-21 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523970', 'tblTempUsageDetail_20' ) end [2025-02-21 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:51:21] Production.INFO: ==16078== Releasing lock... [2025-02-21 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:51:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-21 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:52:05 [end_date_ymd] => 2025-02-21 08:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:52:05' and `end` < '2025-02-21 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-21 08:52:17] Production.INFO: count ==657 [2025-02-21 08:52:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:52:05 - End Time 2025-02-21 08:52:05 [2025-02-21 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523975', 'tblTempUsageDetail_20' ) start [2025-02-21 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523975', 'tblTempUsageDetail_20' ) end [2025-02-21 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523975', 'tblTempVendorCDR_20' ) start [2025-02-21 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523975', 'tblTempVendorCDR_20' ) end [2025-02-21 08:52:17] Production.INFO: ProcessCDR(1,14523975,1,1,2) [2025-02-21 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523975', 'tblTempUsageDetail_20' ) start [2025-02-21 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523975', 'tblTempUsageDetail_20' ) end [2025-02-21 08:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:52:20] Production.INFO: ==16211== Releasing lock... [2025-02-21 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:52:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-21 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:53:06 [end_date_ymd] => 2025-02-21 08:53:06 [RateCDR] => 1 ) [2025-02-21 08:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:53:06' and `end` < '2025-02-21 08:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:53:18] Production.INFO: count ==684 [2025-02-21 08:53:18] Production.ERROR: pbx CDR StartTime 2025-02-21 05:53:06 - End Time 2025-02-21 08:53:06 [2025-02-21 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523980', 'tblTempUsageDetail_20' ) start [2025-02-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523980', 'tblTempUsageDetail_20' ) end [2025-02-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523980', 'tblTempVendorCDR_20' ) start [2025-02-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523980', 'tblTempVendorCDR_20' ) end [2025-02-21 08:53:18] Production.INFO: ProcessCDR(1,14523980,1,1,2) [2025-02-21 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523980', 'tblTempUsageDetail_20' ) start [2025-02-21 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523980', 'tblTempUsageDetail_20' ) end [2025-02-21 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:53:21] Production.INFO: ==16310== Releasing lock... [2025-02-21 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-21 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:54:05 [end_date_ymd] => 2025-02-21 08:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:54:05' and `end` < '2025-02-21 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-21 08:54:17] Production.INFO: count ==708 [2025-02-21 08:54:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:54:05 - End Time 2025-02-21 08:54:05 [2025-02-21 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523985', 'tblTempUsageDetail_20' ) start [2025-02-21 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523985', 'tblTempUsageDetail_20' ) end [2025-02-21 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523985', 'tblTempVendorCDR_20' ) start [2025-02-21 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523985', 'tblTempVendorCDR_20' ) end [2025-02-21 08:54:17] Production.INFO: ProcessCDR(1,14523985,1,1,2) [2025-02-21 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523985', 'tblTempUsageDetail_20' ) start [2025-02-21 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523985', 'tblTempUsageDetail_20' ) end [2025-02-21 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:54:22] Production.INFO: ==16406== Releasing lock... [2025-02-21 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-21 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:55:05 [end_date_ymd] => 2025-02-21 08:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:55:05' and `end` < '2025-02-21 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-21 08:55:17] Production.INFO: count ==723 [2025-02-21 08:55:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:55:05 - End Time 2025-02-21 08:55:05 [2025-02-21 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523990', 'tblTempUsageDetail_20' ) start [2025-02-21 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523990', 'tblTempUsageDetail_20' ) end [2025-02-21 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523990', 'tblTempVendorCDR_20' ) start [2025-02-21 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523990', 'tblTempVendorCDR_20' ) end [2025-02-21 08:55:17] Production.INFO: ProcessCDR(1,14523990,1,1,2) [2025-02-21 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523990', 'tblTempUsageDetail_20' ) start [2025-02-21 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523990', 'tblTempUsageDetail_20' ) end [2025-02-21 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:55:21] Production.INFO: ==16500== Releasing lock... [2025-02-21 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-21 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:56:05 [end_date_ymd] => 2025-02-21 08:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:56:05' and `end` < '2025-02-21 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-21 08:56:17] Production.INFO: count ==723 [2025-02-21 08:56:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:56:05 - End Time 2025-02-21 08:56:05 [2025-02-21 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523995', 'tblTempUsageDetail_20' ) start [2025-02-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14523995', 'tblTempUsageDetail_20' ) end [2025-02-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523995', 'tblTempVendorCDR_20' ) start [2025-02-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14523995', 'tblTempVendorCDR_20' ) end [2025-02-21 08:56:17] Production.INFO: ProcessCDR(1,14523995,1,1,2) [2025-02-21 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14523995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14523995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14523995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14523995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523995', 'tblTempUsageDetail_20' ) start [2025-02-21 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14523995', 'tblTempUsageDetail_20' ) end [2025-02-21 08:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:56:20] Production.INFO: ==16602== Releasing lock... [2025-02-21 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:56:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-21 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:57:05 [end_date_ymd] => 2025-02-21 08:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:57:05' and `end` < '2025-02-21 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-21 08:57:17] Production.INFO: count ==731 [2025-02-21 08:57:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:57:05 - End Time 2025-02-21 08:57:05 [2025-02-21 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524000', 'tblTempUsageDetail_20' ) start [2025-02-21 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524000', 'tblTempUsageDetail_20' ) end [2025-02-21 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524000', 'tblTempVendorCDR_20' ) start [2025-02-21 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524000', 'tblTempVendorCDR_20' ) end [2025-02-21 08:57:17] Production.INFO: ProcessCDR(1,14524000,1,1,2) [2025-02-21 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524000', 'tblTempUsageDetail_20' ) start [2025-02-21 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524000', 'tblTempUsageDetail_20' ) end [2025-02-21 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:57:22] Production.INFO: ==16698== Releasing lock... [2025-02-21 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:57:22] Production.INFO: 34 MB #Memory Used# [2025-02-21 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:58:05 [end_date_ymd] => 2025-02-21 08:58:05 [RateCDR] => 1 ) [2025-02-21 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 05:58:05' and `end` < '2025-02-21 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 08:58:17] Production.INFO: count ==731 [2025-02-21 08:58:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:58:05 - End Time 2025-02-21 08:58:05 [2025-02-21 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524005', 'tblTempUsageDetail_20' ) start [2025-02-21 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524005', 'tblTempUsageDetail_20' ) end [2025-02-21 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524005', 'tblTempVendorCDR_20' ) start [2025-02-21 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524005', 'tblTempVendorCDR_20' ) end [2025-02-21 08:58:17] Production.INFO: ProcessCDR(1,14524005,1,1,2) [2025-02-21 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524005', 'tblTempUsageDetail_20' ) start [2025-02-21 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524005', 'tblTempUsageDetail_20' ) end [2025-02-21 08:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:58:20] Production.INFO: ==16801== Releasing lock... [2025-02-21 08:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:58:20] Production.INFO: 34 MB #Memory Used# [2025-02-21 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 05:59:05 [end_date_ymd] => 2025-02-21 08:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 05:59:05' and `end` < '2025-02-21 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-21 08:59:17] Production.INFO: count ==736 [2025-02-21 08:59:17] Production.ERROR: pbx CDR StartTime 2025-02-21 05:59:05 - End Time 2025-02-21 08:59:05 [2025-02-21 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524010', 'tblTempUsageDetail_20' ) start [2025-02-21 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524010', 'tblTempUsageDetail_20' ) end [2025-02-21 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524010', 'tblTempVendorCDR_20' ) start [2025-02-21 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524010', 'tblTempVendorCDR_20' ) end [2025-02-21 08:59:17] Production.INFO: ProcessCDR(1,14524010,1,1,2) [2025-02-21 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524010', 'tblTempUsageDetail_20' ) start [2025-02-21 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524010', 'tblTempUsageDetail_20' ) end [2025-02-21 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 08:59:22] Production.INFO: ==16905== Releasing lock... [2025-02-21 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 08:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-21 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:00:06 [end_date_ymd] => 2025-02-21 09:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 06:00:06' and `end` < '2025-02-21 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-21 09:00:18] Production.INFO: count ==755 [2025-02-21 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:00:06 - End Time 2025-02-21 09:00:06 [2025-02-21 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524016', 'tblTempUsageDetail_20' ) start [2025-02-21 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524016', 'tblTempUsageDetail_20' ) end [2025-02-21 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524016', 'tblTempVendorCDR_20' ) start [2025-02-21 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524016', 'tblTempVendorCDR_20' ) end [2025-02-21 09:00:19] Production.INFO: ProcessCDR(1,14524016,1,1,2) [2025-02-21 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524016', 'tblTempUsageDetail_20' ) start [2025-02-21 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524016', 'tblTempUsageDetail_20' ) end [2025-02-21 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:00:24] Production.INFO: ==17014== Releasing lock... [2025-02-21 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:00:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-21 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:01:05 [end_date_ymd] => 2025-02-21 09:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:01:05' and `end` < '2025-02-21 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-21 09:01:17] Production.INFO: count ==781 [2025-02-21 09:01:17] Production.ERROR: pbx CDR StartTime 2025-02-21 06:01:05 - End Time 2025-02-21 09:01:05 [2025-02-21 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524021', 'tblTempUsageDetail_20' ) start [2025-02-21 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524021', 'tblTempUsageDetail_20' ) end [2025-02-21 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524021', 'tblTempVendorCDR_20' ) start [2025-02-21 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524021', 'tblTempVendorCDR_20' ) end [2025-02-21 09:01:17] Production.INFO: ProcessCDR(1,14524021,1,1,2) [2025-02-21 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524021', 'tblTempUsageDetail_20' ) start [2025-02-21 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524021', 'tblTempUsageDetail_20' ) end [2025-02-21 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:01:22] Production.INFO: ==17131== Releasing lock... [2025-02-21 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-21 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:02:06 [end_date_ymd] => 2025-02-21 09:02:06 [RateCDR] => 1 ) [2025-02-21 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-21 06:02:06' and `end` < '2025-02-21 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-21 09:02:18] Production.INFO: count ==792 [2025-02-21 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:02:06 - End Time 2025-02-21 09:02:06 [2025-02-21 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524026', 'tblTempUsageDetail_20' ) start [2025-02-21 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524026', 'tblTempUsageDetail_20' ) end [2025-02-21 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524026', 'tblTempVendorCDR_20' ) start [2025-02-21 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524026', 'tblTempVendorCDR_20' ) end [2025-02-21 09:02:18] Production.INFO: ProcessCDR(1,14524026,1,1,2) [2025-02-21 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524026', 'tblTempUsageDetail_20' ) start [2025-02-21 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524026', 'tblTempUsageDetail_20' ) end [2025-02-21 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:02:23] Production.INFO: ==17239== Releasing lock... [2025-02-21 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:02:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-21 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:03:06 [end_date_ymd] => 2025-02-21 09:03:06 [RateCDR] => 1 ) [2025-02-21 09:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:03:06' and `end` < '2025-02-21 09:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:03:17] Production.INFO: count ==793 [2025-02-21 09:03:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:03:06 - End Time 2025-02-21 09:03:06 [2025-02-21 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524031', 'tblTempUsageDetail_20' ) start [2025-02-21 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524031', 'tblTempUsageDetail_20' ) end [2025-02-21 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524031', 'tblTempVendorCDR_20' ) start [2025-02-21 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524031', 'tblTempVendorCDR_20' ) end [2025-02-21 09:03:18] Production.INFO: ProcessCDR(1,14524031,1,1,2) [2025-02-21 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524031', 'tblTempUsageDetail_20' ) start [2025-02-21 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524031', 'tblTempUsageDetail_20' ) end [2025-02-21 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:03:22] Production.INFO: ==17339== Releasing lock... [2025-02-21 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:03:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-21 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:04:06 [end_date_ymd] => 2025-02-21 09:04:06 [RateCDR] => 1 ) [2025-02-21 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:04:06' and `end` < '2025-02-21 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:04:18] Production.INFO: count ==807 [2025-02-21 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:04:06 - End Time 2025-02-21 09:04:06 [2025-02-21 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524036', 'tblTempUsageDetail_20' ) start [2025-02-21 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524036', 'tblTempUsageDetail_20' ) end [2025-02-21 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524036', 'tblTempVendorCDR_20' ) start [2025-02-21 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524036', 'tblTempVendorCDR_20' ) end [2025-02-21 09:04:19] Production.INFO: ProcessCDR(1,14524036,1,1,2) [2025-02-21 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524036', 'tblTempUsageDetail_20' ) start [2025-02-21 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524036', 'tblTempUsageDetail_20' ) end [2025-02-21 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:04:24] Production.INFO: ==17444== Releasing lock... [2025-02-21 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:04:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-21 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:05:06 [end_date_ymd] => 2025-02-21 09:05:06 [RateCDR] => 1 ) [2025-02-21 09:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:05:06' and `end` < '2025-02-21 09:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:05:18] Production.INFO: count ==823 [2025-02-21 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:05:06 - End Time 2025-02-21 09:05:06 [2025-02-21 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524041', 'tblTempUsageDetail_20' ) start [2025-02-21 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524041', 'tblTempUsageDetail_20' ) end [2025-02-21 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524041', 'tblTempVendorCDR_20' ) start [2025-02-21 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524041', 'tblTempVendorCDR_20' ) end [2025-02-21 09:05:18] Production.INFO: ProcessCDR(1,14524041,1,1,2) [2025-02-21 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524041', 'tblTempUsageDetail_20' ) start [2025-02-21 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524041', 'tblTempUsageDetail_20' ) end [2025-02-21 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:05:23] Production.INFO: ==17549== Releasing lock... [2025-02-21 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:05:23] Production.INFO: 34 MB #Memory Used# [2025-02-21 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:06:05 [end_date_ymd] => 2025-02-21 09:06:05 [RateCDR] => 1 ) [2025-02-21 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:06:05' and `end` < '2025-02-21 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:06:17] Production.INFO: count ==851 [2025-02-21 09:06:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:06:05 - End Time 2025-02-21 09:06:05 [2025-02-21 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524046', 'tblTempUsageDetail_20' ) start [2025-02-21 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524046', 'tblTempUsageDetail_20' ) end [2025-02-21 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524046', 'tblTempVendorCDR_20' ) start [2025-02-21 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524046', 'tblTempVendorCDR_20' ) end [2025-02-21 09:06:18] Production.INFO: ProcessCDR(1,14524046,1,1,2) [2025-02-21 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524046', 'tblTempUsageDetail_20' ) start [2025-02-21 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524046', 'tblTempUsageDetail_20' ) end [2025-02-21 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:06:24] Production.INFO: ==17640== Releasing lock... [2025-02-21 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:06:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-21 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:07:06 [end_date_ymd] => 2025-02-21 09:07:06 [RateCDR] => 1 ) [2025-02-21 09:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:07:06' and `end` < '2025-02-21 09:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:07:18] Production.INFO: count ==868 [2025-02-21 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:07:06 - End Time 2025-02-21 09:07:06 [2025-02-21 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524051', 'tblTempUsageDetail_20' ) start [2025-02-21 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524051', 'tblTempUsageDetail_20' ) end [2025-02-21 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524051', 'tblTempVendorCDR_20' ) start [2025-02-21 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524051', 'tblTempVendorCDR_20' ) end [2025-02-21 09:07:18] Production.INFO: ProcessCDR(1,14524051,1,1,2) [2025-02-21 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524051', 'tblTempUsageDetail_20' ) start [2025-02-21 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524051', 'tblTempUsageDetail_20' ) end [2025-02-21 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:07:24] Production.INFO: ==17749== Releasing lock... [2025-02-21 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:07:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-21 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:08:05 [end_date_ymd] => 2025-02-21 09:08:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:08:05' and `end` < '2025-02-21 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-21 09:08:17] Production.INFO: count ==873 [2025-02-21 09:08:17] Production.ERROR: pbx CDR StartTime 2025-02-21 06:08:05 - End Time 2025-02-21 09:08:05 [2025-02-21 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524056', 'tblTempUsageDetail_20' ) start [2025-02-21 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524056', 'tblTempUsageDetail_20' ) end [2025-02-21 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524056', 'tblTempVendorCDR_20' ) start [2025-02-21 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524056', 'tblTempVendorCDR_20' ) end [2025-02-21 09:08:17] Production.INFO: ProcessCDR(1,14524056,1,1,2) [2025-02-21 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524056', 'tblTempUsageDetail_20' ) start [2025-02-21 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524056', 'tblTempUsageDetail_20' ) end [2025-02-21 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:08:23] Production.INFO: ==17891== Releasing lock... [2025-02-21 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:08:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-21 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:09:06 [end_date_ymd] => 2025-02-21 09:09:06 [RateCDR] => 1 ) [2025-02-21 09: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-21 06:09:06' and `end` < '2025-02-21 09: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-21 09:09:18] Production.INFO: count ==876 [2025-02-21 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:09:06 - End Time 2025-02-21 09:09:06 [2025-02-21 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524061', 'tblTempUsageDetail_20' ) start [2025-02-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524061', 'tblTempUsageDetail_20' ) end [2025-02-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524061', 'tblTempVendorCDR_20' ) start [2025-02-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524061', 'tblTempVendorCDR_20' ) end [2025-02-21 09:09:18] Production.INFO: ProcessCDR(1,14524061,1,1,2) [2025-02-21 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524061', 'tblTempUsageDetail_20' ) start [2025-02-21 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524061', 'tblTempUsageDetail_20' ) end [2025-02-21 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:09:24] Production.INFO: ==17997== Releasing lock... [2025-02-21 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:09:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-21 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:10:06 [end_date_ymd] => 2025-02-21 09:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 06:10:06' and `end` < '2025-02-21 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-21 09:10:18] Production.INFO: count ==901 [2025-02-21 09:10:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:10:06 - End Time 2025-02-21 09:10:06 [2025-02-21 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524066', 'tblTempUsageDetail_20' ) start [2025-02-21 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524066', 'tblTempUsageDetail_20' ) end [2025-02-21 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524066', 'tblTempVendorCDR_20' ) start [2025-02-21 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524066', 'tblTempVendorCDR_20' ) end [2025-02-21 09:10:19] Production.INFO: ProcessCDR(1,14524066,1,1,2) [2025-02-21 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524066', 'tblTempUsageDetail_20' ) start [2025-02-21 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524066', 'tblTempUsageDetail_20' ) end [2025-02-21 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:10:24] Production.INFO: ==18103== Releasing lock... [2025-02-21 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:10:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-21 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:11:06 [end_date_ymd] => 2025-02-21 09:11:06 [RateCDR] => 1 ) [2025-02-21 09:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:11:06' and `end` < '2025-02-21 09:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:11:18] Production.INFO: count ==994 [2025-02-21 09:11:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:11:06 - End Time 2025-02-21 09:11:06 [2025-02-21 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524072', 'tblTempUsageDetail_20' ) start [2025-02-21 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524072', 'tblTempUsageDetail_20' ) end [2025-02-21 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524072', 'tblTempVendorCDR_20' ) start [2025-02-21 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524072', 'tblTempVendorCDR_20' ) end [2025-02-21 09:11:18] Production.INFO: ProcessCDR(1,14524072,1,1,2) [2025-02-21 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524072', 'tblTempUsageDetail_20' ) start [2025-02-21 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524072', 'tblTempUsageDetail_20' ) end [2025-02-21 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:11:24] Production.INFO: ==18212== Releasing lock... [2025-02-21 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:11:24] Production.INFO: 35.75 MB #Memory Used# [2025-02-21 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:12:06 [end_date_ymd] => 2025-02-21 09:12:06 [RateCDR] => 1 ) [2025-02-21 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:12:06' and `end` < '2025-02-21 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:12:18] Production.INFO: count ==1015 [2025-02-21 09:12:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:12:06 - End Time 2025-02-21 09:12:06 [2025-02-21 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524077', 'tblTempUsageDetail_20' ) start [2025-02-21 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524077', 'tblTempUsageDetail_20' ) end [2025-02-21 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524077', 'tblTempVendorCDR_20' ) start [2025-02-21 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524077', 'tblTempVendorCDR_20' ) end [2025-02-21 09:12:18] Production.INFO: ProcessCDR(1,14524077,1,1,2) [2025-02-21 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524077', 'tblTempUsageDetail_20' ) start [2025-02-21 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524077', 'tblTempUsageDetail_20' ) end [2025-02-21 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:12:22] Production.INFO: ==18318== Releasing lock... [2025-02-21 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:12:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-21 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:13:05 [end_date_ymd] => 2025-02-21 09:13:05 [RateCDR] => 1 ) [2025-02-21 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:13:05' and `end` < '2025-02-21 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:13:17] Production.INFO: count ==1034 [2025-02-21 09:13:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:13:05 - End Time 2025-02-21 09:13:05 [2025-02-21 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524082', 'tblTempUsageDetail_20' ) start [2025-02-21 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524082', 'tblTempUsageDetail_20' ) end [2025-02-21 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524082', 'tblTempVendorCDR_20' ) start [2025-02-21 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524082', 'tblTempVendorCDR_20' ) end [2025-02-21 09:13:18] Production.INFO: ProcessCDR(1,14524082,1,1,2) [2025-02-21 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524082', 'tblTempUsageDetail_20' ) start [2025-02-21 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524082', 'tblTempUsageDetail_20' ) end [2025-02-21 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:13:24] Production.INFO: ==18428== Releasing lock... [2025-02-21 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:13:24] Production.INFO: 35.75 MB #Memory Used# [2025-02-21 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:14:05 [end_date_ymd] => 2025-02-21 09:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:14:05' and `end` < '2025-02-21 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-21 09:14:18] Production.INFO: count ==1049 [2025-02-21 09:14:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:14:05 - End Time 2025-02-21 09:14:05 [2025-02-21 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524087', 'tblTempUsageDetail_20' ) start [2025-02-21 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524087', 'tblTempUsageDetail_20' ) end [2025-02-21 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524087', 'tblTempVendorCDR_20' ) start [2025-02-21 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524087', 'tblTempVendorCDR_20' ) end [2025-02-21 09:14:18] Production.INFO: ProcessCDR(1,14524087,1,1,2) [2025-02-21 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524087', 'tblTempUsageDetail_20' ) start [2025-02-21 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524087', 'tblTempUsageDetail_20' ) end [2025-02-21 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:14:24] Production.INFO: ==18535== Releasing lock... [2025-02-21 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:14:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-21 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:15:06 [end_date_ymd] => 2025-02-21 09:15:06 [RateCDR] => 1 ) [2025-02-21 09: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-21 06:15:06' and `end` < '2025-02-21 09: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-21 09:15:18] Production.INFO: count ==1062 [2025-02-21 09:15:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:15:06 - End Time 2025-02-21 09:15:06 [2025-02-21 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524092', 'tblTempUsageDetail_20' ) start [2025-02-21 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524092', 'tblTempUsageDetail_20' ) end [2025-02-21 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524092', 'tblTempVendorCDR_20' ) start [2025-02-21 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524092', 'tblTempVendorCDR_20' ) end [2025-02-21 09:15:19] Production.INFO: ProcessCDR(1,14524092,1,1,2) [2025-02-21 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524092', 'tblTempUsageDetail_20' ) start [2025-02-21 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524092', 'tblTempUsageDetail_20' ) end [2025-02-21 09:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:15:25] Production.INFO: ==18649== Releasing lock... [2025-02-21 09:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:15:25] Production.INFO: 36 MB #Memory Used# [2025-02-21 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:16:05 [end_date_ymd] => 2025-02-21 09:16:05 [RateCDR] => 1 ) [2025-02-21 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:16:05' and `end` < '2025-02-21 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:16:17] Production.INFO: count ==1068 [2025-02-21 09:16:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:16:05 - End Time 2025-02-21 09:16:05 [2025-02-21 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524097', 'tblTempUsageDetail_20' ) start [2025-02-21 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524097', 'tblTempUsageDetail_20' ) end [2025-02-21 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524097', 'tblTempVendorCDR_20' ) start [2025-02-21 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524097', 'tblTempVendorCDR_20' ) end [2025-02-21 09:16:18] Production.INFO: ProcessCDR(1,14524097,1,1,2) [2025-02-21 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524097', 'tblTempUsageDetail_20' ) start [2025-02-21 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524097', 'tblTempUsageDetail_20' ) end [2025-02-21 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:16:23] Production.INFO: ==18757== Releasing lock... [2025-02-21 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-21 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:17:06 [end_date_ymd] => 2025-02-21 09:17:06 [RateCDR] => 1 ) [2025-02-21 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:17:06' and `end` < '2025-02-21 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:17:18] Production.INFO: count ==1093 [2025-02-21 09:17:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:17:06 - End Time 2025-02-21 09:17:06 [2025-02-21 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524102', 'tblTempUsageDetail_20' ) start [2025-02-21 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524102', 'tblTempUsageDetail_20' ) end [2025-02-21 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524102', 'tblTempVendorCDR_20' ) start [2025-02-21 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524102', 'tblTempVendorCDR_20' ) end [2025-02-21 09:17:18] Production.INFO: ProcessCDR(1,14524102,1,1,2) [2025-02-21 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524102', 'tblTempUsageDetail_20' ) start [2025-02-21 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524102', 'tblTempUsageDetail_20' ) end [2025-02-21 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:17:24] Production.INFO: ==18873== Releasing lock... [2025-02-21 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:17:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-21 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:18:05 [end_date_ymd] => 2025-02-21 09:18:05 [RateCDR] => 1 ) [2025-02-21 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:18:05' and `end` < '2025-02-21 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:18:17] Production.INFO: count ==1102 [2025-02-21 09:18:17] Production.ERROR: pbx CDR StartTime 2025-02-21 06:18:05 - End Time 2025-02-21 09:18:05 [2025-02-21 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524107', 'tblTempUsageDetail_20' ) start [2025-02-21 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524107', 'tblTempUsageDetail_20' ) end [2025-02-21 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524107', 'tblTempVendorCDR_20' ) start [2025-02-21 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524107', 'tblTempVendorCDR_20' ) end [2025-02-21 09:18:17] Production.INFO: ProcessCDR(1,14524107,1,1,2) [2025-02-21 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524107', 'tblTempUsageDetail_20' ) start [2025-02-21 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524107', 'tblTempUsageDetail_20' ) end [2025-02-21 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:18:23] Production.INFO: ==18985== Releasing lock... [2025-02-21 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:18:23] Production.INFO: 37 MB #Memory Used# [2025-02-21 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:19:06 [end_date_ymd] => 2025-02-21 09:19:06 [RateCDR] => 1 ) [2025-02-21 09:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:19:06' and `end` < '2025-02-21 09:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:19:18] Production.INFO: count ==1129 [2025-02-21 09:19:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:19:06 - End Time 2025-02-21 09:19:06 [2025-02-21 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524112', 'tblTempUsageDetail_20' ) start [2025-02-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524112', 'tblTempUsageDetail_20' ) end [2025-02-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524112', 'tblTempVendorCDR_20' ) start [2025-02-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524112', 'tblTempVendorCDR_20' ) end [2025-02-21 09:19:18] Production.INFO: ProcessCDR(1,14524112,1,1,2) [2025-02-21 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524112', 'tblTempUsageDetail_20' ) start [2025-02-21 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524112', 'tblTempUsageDetail_20' ) end [2025-02-21 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:19:24] Production.INFO: ==19099== Releasing lock... [2025-02-21 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:19:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-21 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:20:06 [end_date_ymd] => 2025-02-21 09:20:06 [RateCDR] => 1 ) [2025-02-21 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-21 06:20:06' and `end` < '2025-02-21 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-21 09:20:18] Production.INFO: count ==1149 [2025-02-21 09:20:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:20:06 - End Time 2025-02-21 09:20:06 [2025-02-21 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524117', 'tblTempUsageDetail_20' ) start [2025-02-21 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524117', 'tblTempUsageDetail_20' ) end [2025-02-21 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524117', 'tblTempVendorCDR_20' ) start [2025-02-21 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524117', 'tblTempVendorCDR_20' ) end [2025-02-21 09:20:19] Production.INFO: ProcessCDR(1,14524117,1,1,2) [2025-02-21 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524117', 'tblTempUsageDetail_20' ) start [2025-02-21 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524117', 'tblTempUsageDetail_20' ) end [2025-02-21 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:20:25] Production.INFO: ==19208== Releasing lock... [2025-02-21 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:20:25] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:21:05 [end_date_ymd] => 2025-02-21 09:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:21:05' and `end` < '2025-02-21 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-21 09:21:17] Production.INFO: count ==1196 [2025-02-21 09:21:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:21:05 - End Time 2025-02-21 09:21:05 [2025-02-21 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524123', 'tblTempUsageDetail_20' ) start [2025-02-21 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524123', 'tblTempUsageDetail_20' ) end [2025-02-21 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524123', 'tblTempVendorCDR_20' ) start [2025-02-21 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524123', 'tblTempVendorCDR_20' ) end [2025-02-21 09:21:18] Production.INFO: ProcessCDR(1,14524123,1,1,2) [2025-02-21 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524123', 'tblTempUsageDetail_20' ) start [2025-02-21 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524123', 'tblTempUsageDetail_20' ) end [2025-02-21 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:21:23] Production.INFO: ==19323== Releasing lock... [2025-02-21 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:21:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:22:05 [end_date_ymd] => 2025-02-21 09:22:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:22:05' and `end` < '2025-02-21 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-21 09:22:17] Production.INFO: count ==1204 [2025-02-21 09:22:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:22:05 - End Time 2025-02-21 09:22:05 [2025-02-21 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524128', 'tblTempUsageDetail_20' ) start [2025-02-21 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524128', 'tblTempUsageDetail_20' ) end [2025-02-21 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524128', 'tblTempVendorCDR_20' ) start [2025-02-21 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524128', 'tblTempVendorCDR_20' ) end [2025-02-21 09:22:18] Production.INFO: ProcessCDR(1,14524128,1,1,2) [2025-02-21 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524128', 'tblTempUsageDetail_20' ) start [2025-02-21 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524128', 'tblTempUsageDetail_20' ) end [2025-02-21 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:22:21] Production.INFO: ==19430== Releasing lock... [2025-02-21 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:22:21] Production.INFO: 37 MB #Memory Used# [2025-02-21 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:23:06 [end_date_ymd] => 2025-02-21 09:23:06 [RateCDR] => 1 ) [2025-02-21 09: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-21 06:23:06' and `end` < '2025-02-21 09: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-21 09:23:18] Production.INFO: count ==1227 [2025-02-21 09:23:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:23:06 - End Time 2025-02-21 09:23:06 [2025-02-21 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524133', 'tblTempUsageDetail_20' ) start [2025-02-21 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524133', 'tblTempUsageDetail_20' ) end [2025-02-21 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524133', 'tblTempVendorCDR_20' ) start [2025-02-21 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524133', 'tblTempVendorCDR_20' ) end [2025-02-21 09:23:18] Production.INFO: ProcessCDR(1,14524133,1,1,2) [2025-02-21 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524133', 'tblTempUsageDetail_20' ) start [2025-02-21 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524133', 'tblTempUsageDetail_20' ) end [2025-02-21 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:23:24] Production.INFO: ==19582== Releasing lock... [2025-02-21 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:23:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-21 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:24:06 [end_date_ymd] => 2025-02-21 09:24:06 [RateCDR] => 1 ) [2025-02-21 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:24:06' and `end` < '2025-02-21 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:24:18] Production.INFO: count ==1279 [2025-02-21 09:24:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:24:06 - End Time 2025-02-21 09:24:06 [2025-02-21 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524138', 'tblTempUsageDetail_20' ) start [2025-02-21 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524138', 'tblTempUsageDetail_20' ) end [2025-02-21 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524138', 'tblTempVendorCDR_20' ) start [2025-02-21 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524138', 'tblTempVendorCDR_20' ) end [2025-02-21 09:24:19] Production.INFO: ProcessCDR(1,14524138,1,1,2) [2025-02-21 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524138', 'tblTempUsageDetail_20' ) start [2025-02-21 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524138', 'tblTempUsageDetail_20' ) end [2025-02-21 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:24:24] Production.INFO: ==19694== Releasing lock... [2025-02-21 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:24:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-21 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:25:06 [end_date_ymd] => 2025-02-21 09:25:06 [RateCDR] => 1 ) [2025-02-21 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:25:06' and `end` < '2025-02-21 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:25:17] Production.INFO: count ==1284 [2025-02-21 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:25:06 - End Time 2025-02-21 09:25:06 [2025-02-21 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524143', 'tblTempUsageDetail_20' ) start [2025-02-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524143', 'tblTempUsageDetail_20' ) end [2025-02-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524143', 'tblTempVendorCDR_20' ) start [2025-02-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524143', 'tblTempVendorCDR_20' ) end [2025-02-21 09:25:18] Production.INFO: ProcessCDR(1,14524143,1,1,2) [2025-02-21 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524143', 'tblTempUsageDetail_20' ) start [2025-02-21 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524143', 'tblTempUsageDetail_20' ) end [2025-02-21 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:25:23] Production.INFO: ==19806== Releasing lock... [2025-02-21 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:25:23] Production.INFO: 38 MB #Memory Used# [2025-02-21 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:26:05 [end_date_ymd] => 2025-02-21 09:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:26:05' and `end` < '2025-02-21 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-21 09:26:18] Production.INFO: count ==1304 [2025-02-21 09:26:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:26:05 - End Time 2025-02-21 09:26:05 [2025-02-21 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524148', 'tblTempUsageDetail_20' ) start [2025-02-21 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524148', 'tblTempUsageDetail_20' ) end [2025-02-21 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524148', 'tblTempVendorCDR_20' ) start [2025-02-21 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524148', 'tblTempVendorCDR_20' ) end [2025-02-21 09:26:18] Production.INFO: ProcessCDR(1,14524148,1,1,2) [2025-02-21 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524148', 'tblTempUsageDetail_20' ) start [2025-02-21 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524148', 'tblTempUsageDetail_20' ) end [2025-02-21 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:26:24] Production.INFO: ==19922== Releasing lock... [2025-02-21 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:26:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-21 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:27:06 [end_date_ymd] => 2025-02-21 09:27:06 [RateCDR] => 1 ) [2025-02-21 09: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-21 06:27:06' and `end` < '2025-02-21 09: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-21 09:27:18] Production.INFO: count ==1327 [2025-02-21 09:27:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:27:06 - End Time 2025-02-21 09:27:06 [2025-02-21 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524153', 'tblTempUsageDetail_20' ) start [2025-02-21 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524153', 'tblTempUsageDetail_20' ) end [2025-02-21 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524153', 'tblTempVendorCDR_20' ) start [2025-02-21 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524153', 'tblTempVendorCDR_20' ) end [2025-02-21 09:27:19] Production.INFO: ProcessCDR(1,14524153,1,1,2) [2025-02-21 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524153', 'tblTempUsageDetail_20' ) start [2025-02-21 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524153', 'tblTempUsageDetail_20' ) end [2025-02-21 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:27:24] Production.INFO: ==20027== Releasing lock... [2025-02-21 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:27:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-21 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:28:05 [end_date_ymd] => 2025-02-21 09:28:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:28:05' and `end` < '2025-02-21 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-21 09:28:17] Production.INFO: count ==1343 [2025-02-21 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:28:05 - End Time 2025-02-21 09:28:05 [2025-02-21 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524158', 'tblTempUsageDetail_20' ) start [2025-02-21 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524158', 'tblTempUsageDetail_20' ) end [2025-02-21 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524158', 'tblTempVendorCDR_20' ) start [2025-02-21 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524158', 'tblTempVendorCDR_20' ) end [2025-02-21 09:28:18] Production.INFO: ProcessCDR(1,14524158,1,1,2) [2025-02-21 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524158', 'tblTempUsageDetail_20' ) start [2025-02-21 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524158', 'tblTempUsageDetail_20' ) end [2025-02-21 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:28:23] Production.INFO: ==20133== Releasing lock... [2025-02-21 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:28:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-21 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:29:06 [end_date_ymd] => 2025-02-21 09:29:06 [RateCDR] => 1 ) [2025-02-21 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-21 06:29:06' and `end` < '2025-02-21 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-21 09:29:18] Production.INFO: count ==1361 [2025-02-21 09:29:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:29:06 - End Time 2025-02-21 09:29:06 [2025-02-21 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524163', 'tblTempUsageDetail_20' ) start [2025-02-21 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524163', 'tblTempUsageDetail_20' ) end [2025-02-21 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524163', 'tblTempVendorCDR_20' ) start [2025-02-21 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524163', 'tblTempVendorCDR_20' ) end [2025-02-21 09:29:18] Production.INFO: ProcessCDR(1,14524163,1,1,2) [2025-02-21 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524163', 'tblTempUsageDetail_20' ) start [2025-02-21 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524163', 'tblTempUsageDetail_20' ) end [2025-02-21 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:29:24] Production.INFO: ==20242== Releasing lock... [2025-02-21 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:29:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-21 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:30:06 [end_date_ymd] => 2025-02-21 09:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 06:30:06' and `end` < '2025-02-21 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-21 09:30:18] Production.INFO: count ==1373 [2025-02-21 09:30:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:30:06 - End Time 2025-02-21 09:30:06 [2025-02-21 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524168', 'tblTempUsageDetail_20' ) start [2025-02-21 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524168', 'tblTempUsageDetail_20' ) end [2025-02-21 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524168', 'tblTempVendorCDR_20' ) start [2025-02-21 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524168', 'tblTempVendorCDR_20' ) end [2025-02-21 09:30:19] Production.INFO: ProcessCDR(1,14524168,1,1,2) [2025-02-21 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524168', 'tblTempUsageDetail_20' ) start [2025-02-21 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524168', 'tblTempUsageDetail_20' ) end [2025-02-21 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:30:25] Production.INFO: ==20347== Releasing lock... [2025-02-21 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:30:25] Production.INFO: 38.25 MB #Memory Used# [2025-02-21 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:31:05 [end_date_ymd] => 2025-02-21 09:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:31:05' and `end` < '2025-02-21 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-21 09:31:17] Production.INFO: count ==1438 [2025-02-21 09:31:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:31:05 - End Time 2025-02-21 09:31:05 [2025-02-21 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524174', 'tblTempUsageDetail_20' ) start [2025-02-21 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524174', 'tblTempUsageDetail_20' ) end [2025-02-21 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524174', 'tblTempVendorCDR_20' ) start [2025-02-21 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524174', 'tblTempVendorCDR_20' ) end [2025-02-21 09:31:18] Production.INFO: ProcessCDR(1,14524174,1,1,2) [2025-02-21 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524174', 'tblTempUsageDetail_20' ) start [2025-02-21 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524174', 'tblTempUsageDetail_20' ) end [2025-02-21 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:31:23] Production.INFO: ==20452== Releasing lock... [2025-02-21 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:31:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-21 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:32:05 [end_date_ymd] => 2025-02-21 09:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:32:05' and `end` < '2025-02-21 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-21 09:32:17] Production.INFO: count ==1442 [2025-02-21 09:32:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:32:05 - End Time 2025-02-21 09:32:05 [2025-02-21 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524179', 'tblTempUsageDetail_20' ) start [2025-02-21 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524179', 'tblTempUsageDetail_20' ) end [2025-02-21 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524179', 'tblTempVendorCDR_20' ) start [2025-02-21 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524179', 'tblTempVendorCDR_20' ) end [2025-02-21 09:32:18] Production.INFO: ProcessCDR(1,14524179,1,1,2) [2025-02-21 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524179', 'tblTempUsageDetail_20' ) start [2025-02-21 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524179', 'tblTempUsageDetail_20' ) end [2025-02-21 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:32:23] Production.INFO: ==20551== Releasing lock... [2025-02-21 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:32:23] Production.INFO: 39 MB #Memory Used# [2025-02-21 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:33:06 [end_date_ymd] => 2025-02-21 09:33:06 [RateCDR] => 1 ) [2025-02-21 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:33:06' and `end` < '2025-02-21 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:33:18] Production.INFO: count ==1452 [2025-02-21 09:33:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:33:06 - End Time 2025-02-21 09:33:06 [2025-02-21 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524184', 'tblTempUsageDetail_20' ) start [2025-02-21 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524184', 'tblTempUsageDetail_20' ) end [2025-02-21 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524184', 'tblTempVendorCDR_20' ) start [2025-02-21 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524184', 'tblTempVendorCDR_20' ) end [2025-02-21 09:33:19] Production.INFO: ProcessCDR(1,14524184,1,1,2) [2025-02-21 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524184', 'tblTempUsageDetail_20' ) start [2025-02-21 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524184', 'tblTempUsageDetail_20' ) end [2025-02-21 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:33:24] Production.INFO: ==20659== Releasing lock... [2025-02-21 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:33:24] Production.INFO: 39 MB #Memory Used# [2025-02-21 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:34:06 [end_date_ymd] => 2025-02-21 09:34:06 [RateCDR] => 1 ) [2025-02-21 09:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:34:06' and `end` < '2025-02-21 09:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:34:18] Production.INFO: count ==1456 [2025-02-21 09:34:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:34:06 - End Time 2025-02-21 09:34:06 [2025-02-21 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524189', 'tblTempUsageDetail_20' ) start [2025-02-21 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524189', 'tblTempUsageDetail_20' ) end [2025-02-21 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524189', 'tblTempVendorCDR_20' ) start [2025-02-21 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524189', 'tblTempVendorCDR_20' ) end [2025-02-21 09:34:19] Production.INFO: ProcessCDR(1,14524189,1,1,2) [2025-02-21 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524189', 'tblTempUsageDetail_20' ) start [2025-02-21 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524189', 'tblTempUsageDetail_20' ) end [2025-02-21 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:34:22] Production.INFO: ==20753== Releasing lock... [2025-02-21 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:34:22] Production.INFO: 39 MB #Memory Used# [2025-02-21 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:35:06 [end_date_ymd] => 2025-02-21 09:35:06 [RateCDR] => 1 ) [2025-02-21 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:35:06' and `end` < '2025-02-21 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:35:18] Production.INFO: count ==1481 [2025-02-21 09:35:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:35:06 - End Time 2025-02-21 09:35:06 [2025-02-21 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524194', 'tblTempUsageDetail_20' ) start [2025-02-21 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524194', 'tblTempUsageDetail_20' ) end [2025-02-21 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524194', 'tblTempVendorCDR_20' ) start [2025-02-21 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524194', 'tblTempVendorCDR_20' ) end [2025-02-21 09:35:19] Production.INFO: ProcessCDR(1,14524194,1,1,2) [2025-02-21 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524194', 'tblTempUsageDetail_20' ) start [2025-02-21 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524194', 'tblTempUsageDetail_20' ) end [2025-02-21 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:35:24] Production.INFO: ==20851== Releasing lock... [2025-02-21 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:35:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-21 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:36:05 [end_date_ymd] => 2025-02-21 09:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:36:05' and `end` < '2025-02-21 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-21 09:36:18] Production.INFO: count ==1499 [2025-02-21 09:36:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:36:05 - End Time 2025-02-21 09:36:05 [2025-02-21 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524199', 'tblTempUsageDetail_20' ) start [2025-02-21 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524199', 'tblTempUsageDetail_20' ) end [2025-02-21 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524199', 'tblTempVendorCDR_20' ) start [2025-02-21 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524199', 'tblTempVendorCDR_20' ) end [2025-02-21 09:36:18] Production.INFO: ProcessCDR(1,14524199,1,1,2) [2025-02-21 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524199', 'tblTempUsageDetail_20' ) start [2025-02-21 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524199', 'tblTempUsageDetail_20' ) end [2025-02-21 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:36:24] Production.INFO: ==20947== Releasing lock... [2025-02-21 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:36:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-21 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:37:05 [end_date_ymd] => 2025-02-21 09:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:37:05' and `end` < '2025-02-21 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-21 09:37:18] Production.INFO: count ==1511 [2025-02-21 09:37:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:37:05 - End Time 2025-02-21 09:37:05 [2025-02-21 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524204', 'tblTempUsageDetail_20' ) start [2025-02-21 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524204', 'tblTempUsageDetail_20' ) end [2025-02-21 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524204', 'tblTempVendorCDR_20' ) start [2025-02-21 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524204', 'tblTempVendorCDR_20' ) end [2025-02-21 09:37:18] Production.INFO: ProcessCDR(1,14524204,1,1,2) [2025-02-21 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524204', 'tblTempUsageDetail_20' ) start [2025-02-21 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524204', 'tblTempUsageDetail_20' ) end [2025-02-21 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:37:24] Production.INFO: ==21052== Releasing lock... [2025-02-21 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:37:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-21 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:38:05 [end_date_ymd] => 2025-02-21 09:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:38:05' and `end` < '2025-02-21 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-21 09:38:18] Production.INFO: count ==1523 [2025-02-21 09:38:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:38:05 - End Time 2025-02-21 09:38:05 [2025-02-21 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524209', 'tblTempUsageDetail_20' ) start [2025-02-21 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524209', 'tblTempUsageDetail_20' ) end [2025-02-21 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524209', 'tblTempVendorCDR_20' ) start [2025-02-21 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524209', 'tblTempVendorCDR_20' ) end [2025-02-21 09:38:19] Production.INFO: ProcessCDR(1,14524209,1,1,2) [2025-02-21 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524209', 'tblTempUsageDetail_20' ) start [2025-02-21 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524209', 'tblTempUsageDetail_20' ) end [2025-02-21 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:38:24] Production.INFO: ==21146== Releasing lock... [2025-02-21 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:38:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-21 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:39:05 [end_date_ymd] => 2025-02-21 09:39:05 [RateCDR] => 1 ) [2025-02-21 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:39:05' and `end` < '2025-02-21 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:39:18] Production.INFO: count ==1537 [2025-02-21 09:39:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:39:05 - End Time 2025-02-21 09:39:05 [2025-02-21 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524214', 'tblTempUsageDetail_20' ) start [2025-02-21 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524214', 'tblTempUsageDetail_20' ) end [2025-02-21 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524214', 'tblTempVendorCDR_20' ) start [2025-02-21 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524214', 'tblTempVendorCDR_20' ) end [2025-02-21 09:39:18] Production.INFO: ProcessCDR(1,14524214,1,1,2) [2025-02-21 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524214', 'tblTempUsageDetail_20' ) start [2025-02-21 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524214', 'tblTempUsageDetail_20' ) end [2025-02-21 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:39:23] Production.INFO: ==21282== Releasing lock... [2025-02-21 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:39:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-21 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:40:06 [end_date_ymd] => 2025-02-21 09:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 06:40:06' and `end` < '2025-02-21 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-21 09:40:18] Production.INFO: count ==1556 [2025-02-21 09:40:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:40:06 - End Time 2025-02-21 09:40:06 [2025-02-21 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524220', 'tblTempUsageDetail_20' ) start [2025-02-21 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524220', 'tblTempUsageDetail_20' ) end [2025-02-21 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524220', 'tblTempVendorCDR_20' ) start [2025-02-21 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524220', 'tblTempVendorCDR_20' ) end [2025-02-21 09:40:19] Production.INFO: ProcessCDR(1,14524220,1,1,2) [2025-02-21 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524220', 'tblTempUsageDetail_20' ) start [2025-02-21 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524220', 'tblTempUsageDetail_20' ) end [2025-02-21 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:40:24] Production.INFO: ==21362== Releasing lock... [2025-02-21 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:40:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-21 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:41:06 [end_date_ymd] => 2025-02-21 09:41:06 [RateCDR] => 1 ) [2025-02-21 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-21 06:41:06' and `end` < '2025-02-21 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:41:18] Production.INFO: count ==1644 [2025-02-21 09:41:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:41:06 - End Time 2025-02-21 09:41:06 [2025-02-21 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524225', 'tblTempUsageDetail_20' ) start [2025-02-21 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524225', 'tblTempUsageDetail_20' ) end [2025-02-21 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524225', 'tblTempVendorCDR_20' ) start [2025-02-21 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524225', 'tblTempVendorCDR_20' ) end [2025-02-21 09:41:19] Production.INFO: ProcessCDR(1,14524225,1,1,2) [2025-02-21 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524225', 'tblTempUsageDetail_20' ) start [2025-02-21 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524225', 'tblTempUsageDetail_20' ) end [2025-02-21 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:41:24] Production.INFO: ==21441== Releasing lock... [2025-02-21 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:41:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-21 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:42:05 [end_date_ymd] => 2025-02-21 09:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:42:05' and `end` < '2025-02-21 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-21 09:42:18] Production.INFO: count ==1657 [2025-02-21 09:42:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:42:05 - End Time 2025-02-21 09:42:05 [2025-02-21 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524230', 'tblTempUsageDetail_20' ) start [2025-02-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524230', 'tblTempUsageDetail_20' ) end [2025-02-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524230', 'tblTempVendorCDR_20' ) start [2025-02-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524230', 'tblTempVendorCDR_20' ) end [2025-02-21 09:42:18] Production.INFO: ProcessCDR(1,14524230,1,1,2) [2025-02-21 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524230', 'tblTempUsageDetail_20' ) start [2025-02-21 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524230', 'tblTempUsageDetail_20' ) end [2025-02-21 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:42:24] Production.INFO: ==21520== Releasing lock... [2025-02-21 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:42:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-21 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:43:05 [end_date_ymd] => 2025-02-21 09:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:43:05' and `end` < '2025-02-21 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-21 09:43:18] Production.INFO: count ==1682 [2025-02-21 09:43:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:43:05 - End Time 2025-02-21 09:43:05 [2025-02-21 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524235', 'tblTempUsageDetail_20' ) start [2025-02-21 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524235', 'tblTempUsageDetail_20' ) end [2025-02-21 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524235', 'tblTempVendorCDR_20' ) start [2025-02-21 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524235', 'tblTempVendorCDR_20' ) end [2025-02-21 09:43:18] Production.INFO: ProcessCDR(1,14524235,1,1,2) [2025-02-21 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524235', 'tblTempUsageDetail_20' ) start [2025-02-21 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524235', 'tblTempUsageDetail_20' ) end [2025-02-21 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:43:24] Production.INFO: ==21598== Releasing lock... [2025-02-21 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:43:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-21 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:44:05 [end_date_ymd] => 2025-02-21 09:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:44:05' and `end` < '2025-02-21 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-21 09:44:17] Production.INFO: count ==1706 [2025-02-21 09:44:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:44:05 - End Time 2025-02-21 09:44:05 [2025-02-21 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524240', 'tblTempUsageDetail_20' ) start [2025-02-21 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524240', 'tblTempUsageDetail_20' ) end [2025-02-21 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524240', 'tblTempVendorCDR_20' ) start [2025-02-21 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524240', 'tblTempVendorCDR_20' ) end [2025-02-21 09:44:18] Production.INFO: ProcessCDR(1,14524240,1,1,2) [2025-02-21 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524240', 'tblTempUsageDetail_20' ) start [2025-02-21 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524240', 'tblTempUsageDetail_20' ) end [2025-02-21 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:44:23] Production.INFO: ==21679== Releasing lock... [2025-02-21 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:44:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-21 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:45:06 [end_date_ymd] => 2025-02-21 09:45:06 [RateCDR] => 1 ) [2025-02-21 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:45:06' and `end` < '2025-02-21 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:45:18] Production.INFO: count ==1726 [2025-02-21 09:45:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:45:06 - End Time 2025-02-21 09:45:06 [2025-02-21 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524245', 'tblTempUsageDetail_20' ) start [2025-02-21 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524245', 'tblTempUsageDetail_20' ) end [2025-02-21 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524245', 'tblTempVendorCDR_20' ) start [2025-02-21 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524245', 'tblTempVendorCDR_20' ) end [2025-02-21 09:45:19] Production.INFO: ProcessCDR(1,14524245,1,1,2) [2025-02-21 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524245', 'tblTempUsageDetail_20' ) start [2025-02-21 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524245', 'tblTempUsageDetail_20' ) end [2025-02-21 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:45:25] Production.INFO: ==21764== Releasing lock... [2025-02-21 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:45:25] Production.INFO: 41 MB #Memory Used# [2025-02-21 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:46:05 [end_date_ymd] => 2025-02-21 09:46:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:46:05' and `end` < '2025-02-21 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-21 09:46:17] Production.INFO: count ==1739 [2025-02-21 09:46:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:46:05 - End Time 2025-02-21 09:46:05 [2025-02-21 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524250', 'tblTempUsageDetail_20' ) start [2025-02-21 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524250', 'tblTempUsageDetail_20' ) end [2025-02-21 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524250', 'tblTempVendorCDR_20' ) start [2025-02-21 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524250', 'tblTempVendorCDR_20' ) end [2025-02-21 09:46:18] Production.INFO: ProcessCDR(1,14524250,1,1,2) [2025-02-21 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524250', 'tblTempUsageDetail_20' ) start [2025-02-21 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524250', 'tblTempUsageDetail_20' ) end [2025-02-21 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:46:24] Production.INFO: ==21847== Releasing lock... [2025-02-21 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:46:24] Production.INFO: 41 MB #Memory Used# [2025-02-21 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:47:06 [end_date_ymd] => 2025-02-21 09:47:06 [RateCDR] => 1 ) [2025-02-21 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-21 06:47:06' and `end` < '2025-02-21 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-21 09:47:18] Production.INFO: count ==1744 [2025-02-21 09:47:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:47:06 - End Time 2025-02-21 09:47:06 [2025-02-21 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524255', 'tblTempUsageDetail_20' ) start [2025-02-21 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524255', 'tblTempUsageDetail_20' ) end [2025-02-21 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524255', 'tblTempVendorCDR_20' ) start [2025-02-21 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524255', 'tblTempVendorCDR_20' ) end [2025-02-21 09:47:19] Production.INFO: ProcessCDR(1,14524255,1,1,2) [2025-02-21 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524255', 'tblTempUsageDetail_20' ) start [2025-02-21 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524255', 'tblTempUsageDetail_20' ) end [2025-02-21 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:47:25] Production.INFO: ==21926== Releasing lock... [2025-02-21 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:47:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:48:05 [end_date_ymd] => 2025-02-21 09:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:48:05' and `end` < '2025-02-21 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-21 09:48:18] Production.INFO: count ==1776 [2025-02-21 09:48:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:48:05 - End Time 2025-02-21 09:48:05 [2025-02-21 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524260', 'tblTempUsageDetail_20' ) start [2025-02-21 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524260', 'tblTempUsageDetail_20' ) end [2025-02-21 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524260', 'tblTempVendorCDR_20' ) start [2025-02-21 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524260', 'tblTempVendorCDR_20' ) end [2025-02-21 09:48:18] Production.INFO: ProcessCDR(1,14524260,1,1,2) [2025-02-21 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524260', 'tblTempUsageDetail_20' ) start [2025-02-21 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524260', 'tblTempUsageDetail_20' ) end [2025-02-21 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:48:24] Production.INFO: ==22008== Releasing lock... [2025-02-21 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:48:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:49:05 [end_date_ymd] => 2025-02-21 09:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:49:05' and `end` < '2025-02-21 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-21 09:49:17] Production.INFO: count ==1779 [2025-02-21 09:49:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:49:05 - End Time 2025-02-21 09:49:05 [2025-02-21 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524265', 'tblTempUsageDetail_20' ) start [2025-02-21 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524265', 'tblTempUsageDetail_20' ) end [2025-02-21 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524265', 'tblTempVendorCDR_20' ) start [2025-02-21 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524265', 'tblTempVendorCDR_20' ) end [2025-02-21 09:49:18] Production.INFO: ProcessCDR(1,14524265,1,1,2) [2025-02-21 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524265', 'tblTempUsageDetail_20' ) start [2025-02-21 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524265', 'tblTempUsageDetail_20' ) end [2025-02-21 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:49:23] Production.INFO: ==22094== Releasing lock... [2025-02-21 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:49:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:50:06 [end_date_ymd] => 2025-02-21 09:50:06 [RateCDR] => 1 ) [2025-02-21 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:50:06' and `end` < '2025-02-21 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:50:18] Production.INFO: count ==1814 [2025-02-21 09:50:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:50:06 - End Time 2025-02-21 09:50:06 [2025-02-21 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524270', 'tblTempUsageDetail_20' ) start [2025-02-21 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524270', 'tblTempUsageDetail_20' ) end [2025-02-21 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524270', 'tblTempVendorCDR_20' ) start [2025-02-21 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524270', 'tblTempVendorCDR_20' ) end [2025-02-21 09:50:19] Production.INFO: ProcessCDR(1,14524270,1,1,2) [2025-02-21 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524270', 'tblTempUsageDetail_20' ) start [2025-02-21 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524270', 'tblTempUsageDetail_20' ) end [2025-02-21 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:50:24] Production.INFO: ==22179== Releasing lock... [2025-02-21 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:50:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:51:05 [end_date_ymd] => 2025-02-21 09:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:51:05' and `end` < '2025-02-21 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-21 09:51:18] Production.INFO: count ==1931 [2025-02-21 09:51:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:51:05 - End Time 2025-02-21 09:51:05 [2025-02-21 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524276', 'tblTempUsageDetail_20' ) start [2025-02-21 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524276', 'tblTempUsageDetail_20' ) end [2025-02-21 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524276', 'tblTempVendorCDR_20' ) start [2025-02-21 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524276', 'tblTempVendorCDR_20' ) end [2025-02-21 09:51:19] Production.INFO: ProcessCDR(1,14524276,1,1,2) [2025-02-21 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524276', 'tblTempUsageDetail_20' ) start [2025-02-21 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524276', 'tblTempUsageDetail_20' ) end [2025-02-21 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:51:23] Production.INFO: ==22259== Releasing lock... [2025-02-21 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:51:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-21 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:52:05 [end_date_ymd] => 2025-02-21 09:52:05 [RateCDR] => 1 ) [2025-02-21 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:52:05' and `end` < '2025-02-21 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:52:17] Production.INFO: count ==1963 [2025-02-21 09:52:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:52:05 - End Time 2025-02-21 09:52:05 [2025-02-21 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524281', 'tblTempUsageDetail_20' ) start [2025-02-21 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524281', 'tblTempUsageDetail_20' ) end [2025-02-21 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524281', 'tblTempVendorCDR_20' ) start [2025-02-21 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524281', 'tblTempVendorCDR_20' ) end [2025-02-21 09:52:18] Production.INFO: ProcessCDR(1,14524281,1,1,2) [2025-02-21 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524281', 'tblTempUsageDetail_20' ) start [2025-02-21 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524281', 'tblTempUsageDetail_20' ) end [2025-02-21 09:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:52:23] Production.INFO: ==22343== Releasing lock... [2025-02-21 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:52:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-21 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:53:05 [end_date_ymd] => 2025-02-21 09:53:05 [RateCDR] => 1 ) [2025-02-21 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:53:05' and `end` < '2025-02-21 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:53:18] Production.INFO: count ==1976 [2025-02-21 09:53:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:53:05 - End Time 2025-02-21 09:53:05 [2025-02-21 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524286', 'tblTempUsageDetail_20' ) start [2025-02-21 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524286', 'tblTempUsageDetail_20' ) end [2025-02-21 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524286', 'tblTempVendorCDR_20' ) start [2025-02-21 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524286', 'tblTempVendorCDR_20' ) end [2025-02-21 09:53:18] Production.INFO: ProcessCDR(1,14524286,1,1,2) [2025-02-21 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524286', 'tblTempUsageDetail_20' ) start [2025-02-21 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524286', 'tblTempUsageDetail_20' ) end [2025-02-21 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:53:23] Production.INFO: ==22421== Releasing lock... [2025-02-21 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:53:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-21 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:54:05 [end_date_ymd] => 2025-02-21 09:54:05 [RateCDR] => 1 ) [2025-02-21 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:54:05' and `end` < '2025-02-21 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:54:17] Production.INFO: count ==2022 [2025-02-21 09:54:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:54:05 - End Time 2025-02-21 09:54:05 [2025-02-21 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524291', 'tblTempUsageDetail_20' ) start [2025-02-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524291', 'tblTempUsageDetail_20' ) end [2025-02-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524291', 'tblTempVendorCDR_20' ) start [2025-02-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524291', 'tblTempVendorCDR_20' ) end [2025-02-21 09:54:18] Production.INFO: ProcessCDR(1,14524291,1,1,2) [2025-02-21 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524291', 'tblTempUsageDetail_20' ) start [2025-02-21 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524291', 'tblTempUsageDetail_20' ) end [2025-02-21 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:54:23] Production.INFO: ==22539== Releasing lock... [2025-02-21 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:54:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-21 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:55:05 [end_date_ymd] => 2025-02-21 09:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:55:05' and `end` < '2025-02-21 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-21 09:55:17] Production.INFO: count ==2049 [2025-02-21 09:55:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:55:05 - End Time 2025-02-21 09:55:05 [2025-02-21 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524296', 'tblTempUsageDetail_20' ) start [2025-02-21 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524296', 'tblTempUsageDetail_20' ) end [2025-02-21 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524296', 'tblTempVendorCDR_20' ) start [2025-02-21 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524296', 'tblTempVendorCDR_20' ) end [2025-02-21 09:55:18] Production.INFO: ProcessCDR(1,14524296,1,1,2) [2025-02-21 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524296', 'tblTempUsageDetail_20' ) start [2025-02-21 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524296', 'tblTempUsageDetail_20' ) end [2025-02-21 09:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:55:23] Production.INFO: ==22618== Releasing lock... [2025-02-21 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:55:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-21 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:56:05 [end_date_ymd] => 2025-02-21 09:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:56:05' and `end` < '2025-02-21 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-21 09:56:18] Production.INFO: count ==2070 [2025-02-21 09:56:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:56:05 - End Time 2025-02-21 09:56:05 [2025-02-21 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524301', 'tblTempUsageDetail_20' ) start [2025-02-21 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524301', 'tblTempUsageDetail_20' ) end [2025-02-21 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524301', 'tblTempVendorCDR_20' ) start [2025-02-21 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524301', 'tblTempVendorCDR_20' ) end [2025-02-21 09:56:18] Production.INFO: ProcessCDR(1,14524301,1,1,2) [2025-02-21 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524301', 'tblTempUsageDetail_20' ) start [2025-02-21 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524301', 'tblTempUsageDetail_20' ) end [2025-02-21 09:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:56:23] Production.INFO: ==22704== Releasing lock... [2025-02-21 09:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:56:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-21 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:57:06 [end_date_ymd] => 2025-02-21 09:57:06 [RateCDR] => 1 ) [2025-02-21 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 06:57:06' and `end` < '2025-02-21 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 09:57:18] Production.INFO: count ==2095 [2025-02-21 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-21 06:57:06 - End Time 2025-02-21 09:57:06 [2025-02-21 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524306', 'tblTempUsageDetail_20' ) start [2025-02-21 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524306', 'tblTempUsageDetail_20' ) end [2025-02-21 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524306', 'tblTempVendorCDR_20' ) start [2025-02-21 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524306', 'tblTempVendorCDR_20' ) end [2025-02-21 09:57:19] Production.INFO: ProcessCDR(1,14524306,1,1,2) [2025-02-21 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524306', 'tblTempUsageDetail_20' ) start [2025-02-21 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524306', 'tblTempUsageDetail_20' ) end [2025-02-21 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:57:24] Production.INFO: ==22784== Releasing lock... [2025-02-21 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:57:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-21 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:58:05 [end_date_ymd] => 2025-02-21 09:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:58:05' and `end` < '2025-02-21 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-21 09:58:17] Production.INFO: count ==2112 [2025-02-21 09:58:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:58:05 - End Time 2025-02-21 09:58:05 [2025-02-21 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524311', 'tblTempUsageDetail_20' ) start [2025-02-21 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524311', 'tblTempUsageDetail_20' ) end [2025-02-21 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524311', 'tblTempVendorCDR_20' ) start [2025-02-21 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524311', 'tblTempVendorCDR_20' ) end [2025-02-21 09:58:18] Production.INFO: ProcessCDR(1,14524311,1,1,2) [2025-02-21 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524311', 'tblTempUsageDetail_20' ) start [2025-02-21 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524311', 'tblTempUsageDetail_20' ) end [2025-02-21 09:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:58:23] Production.INFO: ==22857== Releasing lock... [2025-02-21 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:58:23] Production.INFO: 44 MB #Memory Used# [2025-02-21 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 06:59:05 [end_date_ymd] => 2025-02-21 09:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 06:59:05' and `end` < '2025-02-21 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-21 09:59:17] Production.INFO: count ==2129 [2025-02-21 09:59:18] Production.ERROR: pbx CDR StartTime 2025-02-21 06:59:05 - End Time 2025-02-21 09:59:05 [2025-02-21 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524316', 'tblTempUsageDetail_20' ) start [2025-02-21 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524316', 'tblTempUsageDetail_20' ) end [2025-02-21 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524316', 'tblTempVendorCDR_20' ) start [2025-02-21 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524316', 'tblTempVendorCDR_20' ) end [2025-02-21 09:59:18] Production.INFO: ProcessCDR(1,14524316,1,1,2) [2025-02-21 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524316', 'tblTempUsageDetail_20' ) start [2025-02-21 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524316', 'tblTempUsageDetail_20' ) end [2025-02-21 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 09:59:23] Production.INFO: ==22947== Releasing lock... [2025-02-21 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 09:59:23] Production.INFO: 44 MB #Memory Used# [2025-02-21 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:00:07 [end_date_ymd] => 2025-02-21 10:00:07 [RateCDR] => 1 ) [2025-02-21 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:00:07' and `end` < '2025-02-21 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:00:19] Production.INFO: count ==2147 [2025-02-21 10:00:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:00:07 - End Time 2025-02-21 10:00:07 [2025-02-21 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524322', 'tblTempUsageDetail_20' ) start [2025-02-21 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524322', 'tblTempUsageDetail_20' ) end [2025-02-21 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524322', 'tblTempVendorCDR_20' ) start [2025-02-21 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524322', 'tblTempVendorCDR_20' ) end [2025-02-21 10:00:20] Production.INFO: ProcessCDR(1,14524322,1,1,2) [2025-02-21 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524322', 'tblTempUsageDetail_20' ) start [2025-02-21 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524322', 'tblTempUsageDetail_20' ) end [2025-02-21 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:00:25] Production.INFO: ==23026== Releasing lock... [2025-02-21 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:00:25] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:01:05 [end_date_ymd] => 2025-02-21 10:01:05 [RateCDR] => 1 ) [2025-02-21 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:01:05' and `end` < '2025-02-21 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:01:17] Production.INFO: count ==2201 [2025-02-21 10:01:18] Production.ERROR: pbx CDR StartTime 2025-02-21 07:01:05 - End Time 2025-02-21 10:01:05 [2025-02-21 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524327', 'tblTempUsageDetail_20' ) start [2025-02-21 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524327', 'tblTempUsageDetail_20' ) end [2025-02-21 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524327', 'tblTempVendorCDR_20' ) start [2025-02-21 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524327', 'tblTempVendorCDR_20' ) end [2025-02-21 10:01:18] Production.INFO: ProcessCDR(1,14524327,1,1,2) [2025-02-21 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524327', 'tblTempUsageDetail_20' ) start [2025-02-21 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524327', 'tblTempUsageDetail_20' ) end [2025-02-21 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:01:23] Production.INFO: ==23131== Releasing lock... [2025-02-21 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:01:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-21 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:02:06 [end_date_ymd] => 2025-02-21 10:02:06 [RateCDR] => 1 ) [2025-02-21 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:02:06' and `end` < '2025-02-21 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:02:18] Production.INFO: count ==2206 [2025-02-21 10:02:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:02:06 - End Time 2025-02-21 10:02:06 [2025-02-21 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524332', 'tblTempUsageDetail_20' ) start [2025-02-21 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524332', 'tblTempUsageDetail_20' ) end [2025-02-21 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524332', 'tblTempVendorCDR_20' ) start [2025-02-21 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524332', 'tblTempVendorCDR_20' ) end [2025-02-21 10:02:19] Production.INFO: ProcessCDR(1,14524332,1,1,2) [2025-02-21 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524332', 'tblTempUsageDetail_20' ) start [2025-02-21 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524332', 'tblTempUsageDetail_20' ) end [2025-02-21 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:02:25] Production.INFO: ==23206== Releasing lock... [2025-02-21 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:02:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-21 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:03:06 [end_date_ymd] => 2025-02-21 10:03:06 [RateCDR] => 1 ) [2025-02-21 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:03:06' and `end` < '2025-02-21 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:03:18] Production.INFO: count ==2217 [2025-02-21 10:03:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:03:06 - End Time 2025-02-21 10:03:06 [2025-02-21 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524337', 'tblTempUsageDetail_20' ) start [2025-02-21 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524337', 'tblTempUsageDetail_20' ) end [2025-02-21 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524337', 'tblTempVendorCDR_20' ) start [2025-02-21 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524337', 'tblTempVendorCDR_20' ) end [2025-02-21 10:03:19] Production.INFO: ProcessCDR(1,14524337,1,1,2) [2025-02-21 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524337', 'tblTempUsageDetail_20' ) start [2025-02-21 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524337', 'tblTempUsageDetail_20' ) end [2025-02-21 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:03:24] Production.INFO: ==23285== Releasing lock... [2025-02-21 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:03:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-21 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:04:06 [end_date_ymd] => 2025-02-21 10:04:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:04:06' and `end` < '2025-02-21 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-21 10:04:18] Production.INFO: count ==2225 [2025-02-21 10:04:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:04:06 - End Time 2025-02-21 10:04:06 [2025-02-21 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524342', 'tblTempUsageDetail_20' ) start [2025-02-21 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524342', 'tblTempUsageDetail_20' ) end [2025-02-21 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524342', 'tblTempVendorCDR_20' ) start [2025-02-21 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524342', 'tblTempVendorCDR_20' ) end [2025-02-21 10:04:19] Production.INFO: ProcessCDR(1,14524342,1,1,2) [2025-02-21 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524342', 'tblTempUsageDetail_20' ) start [2025-02-21 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524342', 'tblTempUsageDetail_20' ) end [2025-02-21 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:04:25] Production.INFO: ==23367== Releasing lock... [2025-02-21 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:04:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-21 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:05:05 [end_date_ymd] => 2025-02-21 10:05:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:05:05' and `end` < '2025-02-21 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-21 10:05:17] Production.INFO: count ==2244 [2025-02-21 10:05:18] Production.ERROR: pbx CDR StartTime 2025-02-21 07:05:05 - End Time 2025-02-21 10:05:05 [2025-02-21 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524347', 'tblTempUsageDetail_20' ) start [2025-02-21 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524347', 'tblTempUsageDetail_20' ) end [2025-02-21 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524347', 'tblTempVendorCDR_20' ) start [2025-02-21 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524347', 'tblTempVendorCDR_20' ) end [2025-02-21 10:05:18] Production.INFO: ProcessCDR(1,14524347,1,1,2) [2025-02-21 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524347', 'tblTempUsageDetail_20' ) start [2025-02-21 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524347', 'tblTempUsageDetail_20' ) end [2025-02-21 10:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:05:24] Production.INFO: ==23442== Releasing lock... [2025-02-21 10:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:05:24] Production.INFO: 45 MB #Memory Used# [2025-02-21 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:06:06 [end_date_ymd] => 2025-02-21 10:06:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:06:06' and `end` < '2025-02-21 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-21 10:06:18] Production.INFO: count ==2257 [2025-02-21 10:06:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:06:06 - End Time 2025-02-21 10:06:06 [2025-02-21 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524352', 'tblTempUsageDetail_20' ) start [2025-02-21 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524352', 'tblTempUsageDetail_20' ) end [2025-02-21 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524352', 'tblTempVendorCDR_20' ) start [2025-02-21 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524352', 'tblTempVendorCDR_20' ) end [2025-02-21 10:06:19] Production.INFO: ProcessCDR(1,14524352,1,1,2) [2025-02-21 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524352', 'tblTempUsageDetail_20' ) start [2025-02-21 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524352', 'tblTempUsageDetail_20' ) end [2025-02-21 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:06:24] Production.INFO: ==23521== Releasing lock... [2025-02-21 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:06:24] Production.INFO: 45 MB #Memory Used# [2025-02-21 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:07:06 [end_date_ymd] => 2025-02-21 10:07:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:07:06' and `end` < '2025-02-21 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-21 10:07:18] Production.INFO: count ==2275 [2025-02-21 10:07:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:07:06 - End Time 2025-02-21 10:07:06 [2025-02-21 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524357', 'tblTempUsageDetail_20' ) start [2025-02-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524357', 'tblTempUsageDetail_20' ) end [2025-02-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524357', 'tblTempVendorCDR_20' ) start [2025-02-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524357', 'tblTempVendorCDR_20' ) end [2025-02-21 10:07:19] Production.INFO: ProcessCDR(1,14524357,1,1,2) [2025-02-21 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524357', 'tblTempUsageDetail_20' ) start [2025-02-21 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524357', 'tblTempUsageDetail_20' ) end [2025-02-21 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:07:25] Production.INFO: ==23602== Releasing lock... [2025-02-21 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:07:25] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:08:05 [end_date_ymd] => 2025-02-21 10:08:05 [RateCDR] => 1 ) [2025-02-21 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:08:05' and `end` < '2025-02-21 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:08:17] Production.INFO: count ==2278 [2025-02-21 10:08:18] Production.ERROR: pbx CDR StartTime 2025-02-21 07:08:05 - End Time 2025-02-21 10:08:05 [2025-02-21 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524362', 'tblTempUsageDetail_20' ) start [2025-02-21 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524362', 'tblTempUsageDetail_20' ) end [2025-02-21 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524362', 'tblTempVendorCDR_20' ) start [2025-02-21 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524362', 'tblTempVendorCDR_20' ) end [2025-02-21 10:08:18] Production.INFO: ProcessCDR(1,14524362,1,1,2) [2025-02-21 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524362', 'tblTempUsageDetail_20' ) start [2025-02-21 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524362', 'tblTempUsageDetail_20' ) end [2025-02-21 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:08:24] Production.INFO: ==23677== Releasing lock... [2025-02-21 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:08:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:09:05 [end_date_ymd] => 2025-02-21 10:09:05 [RateCDR] => 1 ) [2025-02-21 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:09:05' and `end` < '2025-02-21 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:09:17] Production.INFO: count ==2298 [2025-02-21 10:09:18] Production.ERROR: pbx CDR StartTime 2025-02-21 07:09:05 - End Time 2025-02-21 10:09:05 [2025-02-21 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524367', 'tblTempUsageDetail_20' ) start [2025-02-21 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524367', 'tblTempUsageDetail_20' ) end [2025-02-21 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524367', 'tblTempVendorCDR_20' ) start [2025-02-21 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524367', 'tblTempVendorCDR_20' ) end [2025-02-21 10:09:18] Production.INFO: ProcessCDR(1,14524367,1,1,2) [2025-02-21 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524367', 'tblTempUsageDetail_20' ) start [2025-02-21 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524367', 'tblTempUsageDetail_20' ) end [2025-02-21 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:09:24] Production.INFO: ==23758== Releasing lock... [2025-02-21 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:09:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:10:07 [end_date_ymd] => 2025-02-21 10:10:07 [RateCDR] => 1 ) [2025-02-21 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-21 07:10:07' and `end` < '2025-02-21 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-21 10:10:19] Production.INFO: count ==2336 [2025-02-21 10:10:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:10:07 - End Time 2025-02-21 10:10:07 [2025-02-21 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524373', 'tblTempUsageDetail_20' ) start [2025-02-21 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524373', 'tblTempUsageDetail_20' ) end [2025-02-21 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524373', 'tblTempVendorCDR_20' ) start [2025-02-21 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524373', 'tblTempVendorCDR_20' ) end [2025-02-21 10:10:20] Production.INFO: ProcessCDR(1,14524373,1,1,2) [2025-02-21 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524373', 'tblTempUsageDetail_20' ) start [2025-02-21 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524373', 'tblTempUsageDetail_20' ) end [2025-02-21 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:10:26] Production.INFO: ==23872== Releasing lock... [2025-02-21 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:10:26] Production.INFO: 45.5 MB #Memory Used# [2025-02-21 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:11:06 [end_date_ymd] => 2025-02-21 10:11:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:11:06' and `end` < '2025-02-21 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-21 10:11:18] Production.INFO: count ==2395 [2025-02-21 10:11:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:11:06 - End Time 2025-02-21 10:11:06 [2025-02-21 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524378', 'tblTempUsageDetail_20' ) start [2025-02-21 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524378', 'tblTempUsageDetail_20' ) end [2025-02-21 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524378', 'tblTempVendorCDR_20' ) start [2025-02-21 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524378', 'tblTempVendorCDR_20' ) end [2025-02-21 10:11:19] Production.INFO: ProcessCDR(1,14524378,1,1,2) [2025-02-21 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524378', 'tblTempUsageDetail_20' ) start [2025-02-21 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524378', 'tblTempUsageDetail_20' ) end [2025-02-21 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:11:24] Production.INFO: ==23946== Releasing lock... [2025-02-21 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:11:24] Production.INFO: 46 MB #Memory Used# [2025-02-21 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:12:05 [end_date_ymd] => 2025-02-21 10:12:05 [RateCDR] => 1 ) [2025-02-21 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:12:05' and `end` < '2025-02-21 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-21 10:12:17] Production.INFO: count ==2415 [2025-02-21 10:12:18] Production.ERROR: pbx CDR StartTime 2025-02-21 07:12:05 - End Time 2025-02-21 10:12:05 [2025-02-21 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524383', 'tblTempUsageDetail_20' ) start [2025-02-21 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524383', 'tblTempUsageDetail_20' ) end [2025-02-21 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524383', 'tblTempVendorCDR_20' ) start [2025-02-21 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524383', 'tblTempVendorCDR_20' ) end [2025-02-21 10:12:18] Production.INFO: ProcessCDR(1,14524383,1,1,2) [2025-02-21 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524383', 'tblTempUsageDetail_20' ) start [2025-02-21 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524383', 'tblTempUsageDetail_20' ) end [2025-02-21 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:12:24] Production.INFO: ==24027== Releasing lock... [2025-02-21 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:12:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-21 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:13:05 [end_date_ymd] => 2025-02-21 10:13:05 [RateCDR] => 1 ) [2025-02-21 10: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-21 07:13:05' and `end` < '2025-02-21 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:13:18] Production.INFO: count ==2431 [2025-02-21 10:13:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:13:05 - End Time 2025-02-21 10:13:05 [2025-02-21 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524388', 'tblTempUsageDetail_20' ) start [2025-02-21 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524388', 'tblTempUsageDetail_20' ) end [2025-02-21 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524388', 'tblTempVendorCDR_20' ) start [2025-02-21 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524388', 'tblTempVendorCDR_20' ) end [2025-02-21 10:13:19] Production.INFO: ProcessCDR(1,14524388,1,1,2) [2025-02-21 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524388', 'tblTempUsageDetail_20' ) start [2025-02-21 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524388', 'tblTempUsageDetail_20' ) end [2025-02-21 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:13:24] Production.INFO: ==24108== Releasing lock... [2025-02-21 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:13:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-21 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:14:06 [end_date_ymd] => 2025-02-21 10:14:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:14:06' and `end` < '2025-02-21 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-21 10:14:18] Production.INFO: count ==2432 [2025-02-21 10:14:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:14:06 - End Time 2025-02-21 10:14:06 [2025-02-21 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524393', 'tblTempUsageDetail_20' ) start [2025-02-21 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524393', 'tblTempUsageDetail_20' ) end [2025-02-21 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524393', 'tblTempVendorCDR_20' ) start [2025-02-21 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524393', 'tblTempVendorCDR_20' ) end [2025-02-21 10:14:19] Production.INFO: ProcessCDR(1,14524393,1,1,2) [2025-02-21 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524393', 'tblTempUsageDetail_20' ) start [2025-02-21 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524393', 'tblTempUsageDetail_20' ) end [2025-02-21 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:14:24] Production.INFO: ==24184== Releasing lock... [2025-02-21 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:14:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-21 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:15:05 [end_date_ymd] => 2025-02-21 10:15:05 [RateCDR] => 1 ) [2025-02-21 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:15:05' and `end` < '2025-02-21 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-21 10:15:18] Production.INFO: count ==2446 [2025-02-21 10:15:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:15:05 - End Time 2025-02-21 10:15:05 [2025-02-21 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524398', 'tblTempUsageDetail_20' ) start [2025-02-21 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524398', 'tblTempUsageDetail_20' ) end [2025-02-21 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524398', 'tblTempVendorCDR_20' ) start [2025-02-21 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524398', 'tblTempVendorCDR_20' ) end [2025-02-21 10:15:19] Production.INFO: ProcessCDR(1,14524398,1,1,2) [2025-02-21 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524398', 'tblTempUsageDetail_20' ) start [2025-02-21 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524398', 'tblTempUsageDetail_20' ) end [2025-02-21 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:15:25] Production.INFO: ==24261== Releasing lock... [2025-02-21 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:15:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:16:06 [end_date_ymd] => 2025-02-21 10:16:06 [RateCDR] => 1 ) [2025-02-21 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:16:06' and `end` < '2025-02-21 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:16:18] Production.INFO: count ==2465 [2025-02-21 10:16:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:16:06 - End Time 2025-02-21 10:16:06 [2025-02-21 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524403', 'tblTempUsageDetail_20' ) start [2025-02-21 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524403', 'tblTempUsageDetail_20' ) end [2025-02-21 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524403', 'tblTempVendorCDR_20' ) start [2025-02-21 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524403', 'tblTempVendorCDR_20' ) end [2025-02-21 10:16:20] Production.INFO: ProcessCDR(1,14524403,1,1,2) [2025-02-21 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524403', 'tblTempUsageDetail_20' ) start [2025-02-21 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524403', 'tblTempUsageDetail_20' ) end [2025-02-21 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:16:25] Production.INFO: ==24344== Releasing lock... [2025-02-21 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:16:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:17:05 [end_date_ymd] => 2025-02-21 10:17:05 [RateCDR] => 1 ) [2025-02-21 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:17:05' and `end` < '2025-02-21 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:17:18] Production.INFO: count ==2484 [2025-02-21 10:17:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:17:05 - End Time 2025-02-21 10:17:05 [2025-02-21 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524408', 'tblTempUsageDetail_20' ) start [2025-02-21 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524408', 'tblTempUsageDetail_20' ) end [2025-02-21 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524408', 'tblTempVendorCDR_20' ) start [2025-02-21 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524408', 'tblTempVendorCDR_20' ) end [2025-02-21 10:17:19] Production.INFO: ProcessCDR(1,14524408,1,1,2) [2025-02-21 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524408', 'tblTempUsageDetail_20' ) start [2025-02-21 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524408', 'tblTempUsageDetail_20' ) end [2025-02-21 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:17:24] Production.INFO: ==24421== Releasing lock... [2025-02-21 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:17:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:18:06 [end_date_ymd] => 2025-02-21 10:18:06 [RateCDR] => 1 ) [2025-02-21 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:18:06' and `end` < '2025-02-21 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:18:18] Production.INFO: count ==2499 [2025-02-21 10:18:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:18:06 - End Time 2025-02-21 10:18:06 [2025-02-21 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524413', 'tblTempUsageDetail_20' ) start [2025-02-21 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524413', 'tblTempUsageDetail_20' ) end [2025-02-21 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524413', 'tblTempVendorCDR_20' ) start [2025-02-21 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524413', 'tblTempVendorCDR_20' ) end [2025-02-21 10:18:19] Production.INFO: ProcessCDR(1,14524413,1,1,2) [2025-02-21 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524413', 'tblTempUsageDetail_20' ) start [2025-02-21 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524413', 'tblTempUsageDetail_20' ) end [2025-02-21 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:18:25] Production.INFO: ==24496== Releasing lock... [2025-02-21 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:18:25] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:19:05 [end_date_ymd] => 2025-02-21 10:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:19:05' and `end` < '2025-02-21 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-21 10:19:18] Production.INFO: count ==2516 [2025-02-21 10:19:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:19:05 - End Time 2025-02-21 10:19:05 [2025-02-21 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524418', 'tblTempUsageDetail_20' ) start [2025-02-21 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524418', 'tblTempUsageDetail_20' ) end [2025-02-21 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524418', 'tblTempVendorCDR_20' ) start [2025-02-21 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524418', 'tblTempVendorCDR_20' ) end [2025-02-21 10:19:19] Production.INFO: ProcessCDR(1,14524418,1,1,2) [2025-02-21 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524418', 'tblTempUsageDetail_20' ) start [2025-02-21 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524418', 'tblTempUsageDetail_20' ) end [2025-02-21 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:19:24] Production.INFO: ==24578== Releasing lock... [2025-02-21 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:19:24] Production.INFO: 47 MB #Memory Used# [2025-02-21 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:20:07 [end_date_ymd] => 2025-02-21 10:20:07 [RateCDR] => 1 ) [2025-02-21 10:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:20:07' and `end` < '2025-02-21 10:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:20:19] Production.INFO: count ==2541 [2025-02-21 10:20:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:20:07 - End Time 2025-02-21 10:20:07 [2025-02-21 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524424', 'tblTempUsageDetail_20' ) start [2025-02-21 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524424', 'tblTempUsageDetail_20' ) end [2025-02-21 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524424', 'tblTempVendorCDR_20' ) start [2025-02-21 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524424', 'tblTempVendorCDR_20' ) end [2025-02-21 10:20:21] Production.INFO: ProcessCDR(1,14524424,1,1,2) [2025-02-21 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524424', 'tblTempUsageDetail_20' ) start [2025-02-21 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524424', 'tblTempUsageDetail_20' ) end [2025-02-21 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:20:26] Production.INFO: ==24657== Releasing lock... [2025-02-21 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:20:26] Production.INFO: 47.25 MB #Memory Used# [2025-02-21 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:21:05 [end_date_ymd] => 2025-02-21 10:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:21:05' and `end` < '2025-02-21 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-21 10:21:17] Production.INFO: count ==2682 [2025-02-21 10:21:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:21:05 - End Time 2025-02-21 10:21:05 [2025-02-21 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524429', 'tblTempUsageDetail_20' ) start [2025-02-21 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524429', 'tblTempUsageDetail_20' ) end [2025-02-21 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524429', 'tblTempVendorCDR_20' ) start [2025-02-21 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524429', 'tblTempVendorCDR_20' ) end [2025-02-21 10:21:19] Production.INFO: ProcessCDR(1,14524429,1,1,2) [2025-02-21 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524429', 'tblTempUsageDetail_20' ) start [2025-02-21 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524429', 'tblTempUsageDetail_20' ) end [2025-02-21 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:21:24] Production.INFO: ==24737== Releasing lock... [2025-02-21 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:21:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-21 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:22:06 [end_date_ymd] => 2025-02-21 10:22:06 [RateCDR] => 1 ) [2025-02-21 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:22:06' and `end` < '2025-02-21 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:22:18] Production.INFO: count ==2706 [2025-02-21 10:22:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:22:06 - End Time 2025-02-21 10:22:06 [2025-02-21 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524434', 'tblTempUsageDetail_20' ) start [2025-02-21 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524434', 'tblTempUsageDetail_20' ) end [2025-02-21 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524434', 'tblTempVendorCDR_20' ) start [2025-02-21 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524434', 'tblTempVendorCDR_20' ) end [2025-02-21 10:22:19] Production.INFO: ProcessCDR(1,14524434,1,1,2) [2025-02-21 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524434', 'tblTempUsageDetail_20' ) start [2025-02-21 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524434', 'tblTempUsageDetail_20' ) end [2025-02-21 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:22:24] Production.INFO: ==24817== Releasing lock... [2025-02-21 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:22:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-21 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:23:05 [end_date_ymd] => 2025-02-21 10:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:23:05' and `end` < '2025-02-21 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-21 10:23:18] Production.INFO: count ==2730 [2025-02-21 10:23:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:23:05 - End Time 2025-02-21 10:23:05 [2025-02-21 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524439', 'tblTempUsageDetail_20' ) start [2025-02-21 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524439', 'tblTempUsageDetail_20' ) end [2025-02-21 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524439', 'tblTempVendorCDR_20' ) start [2025-02-21 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524439', 'tblTempVendorCDR_20' ) end [2025-02-21 10:23:19] Production.INFO: ProcessCDR(1,14524439,1,1,2) [2025-02-21 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524439', 'tblTempUsageDetail_20' ) start [2025-02-21 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524439', 'tblTempUsageDetail_20' ) end [2025-02-21 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:23:24] Production.INFO: ==24890== Releasing lock... [2025-02-21 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:23:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-21 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:24:06 [end_date_ymd] => 2025-02-21 10:24:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:24:06' and `end` < '2025-02-21 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-21 10:24:18] Production.INFO: count ==2730 [2025-02-21 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:24:06 - End Time 2025-02-21 10:24:06 [2025-02-21 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524444', 'tblTempUsageDetail_20' ) start [2025-02-21 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524444', 'tblTempUsageDetail_20' ) end [2025-02-21 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524444', 'tblTempVendorCDR_20' ) start [2025-02-21 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524444', 'tblTempVendorCDR_20' ) end [2025-02-21 10:24:19] Production.INFO: ProcessCDR(1,14524444,1,1,2) [2025-02-21 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524444', 'tblTempUsageDetail_20' ) start [2025-02-21 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524444', 'tblTempUsageDetail_20' ) end [2025-02-21 10:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:24:22] Production.INFO: ==24966== Releasing lock... [2025-02-21 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:24:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-21 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:25:05 [end_date_ymd] => 2025-02-21 10:25:05 [RateCDR] => 1 ) [2025-02-21 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:25:05' and `end` < '2025-02-21 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:25:17] Production.INFO: count ==2738 [2025-02-21 10:25:18] Production.ERROR: pbx CDR StartTime 2025-02-21 07:25:05 - End Time 2025-02-21 10:25:05 [2025-02-21 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524449', 'tblTempUsageDetail_20' ) start [2025-02-21 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524449', 'tblTempUsageDetail_20' ) end [2025-02-21 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524449', 'tblTempVendorCDR_20' ) start [2025-02-21 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524449', 'tblTempVendorCDR_20' ) end [2025-02-21 10:25:19] Production.INFO: ProcessCDR(1,14524449,1,1,2) [2025-02-21 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524449', 'tblTempUsageDetail_20' ) start [2025-02-21 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524449', 'tblTempUsageDetail_20' ) end [2025-02-21 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:25:23] Production.INFO: ==25077== Releasing lock... [2025-02-21 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:25:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-21 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:26:06 [end_date_ymd] => 2025-02-21 10:26:06 [RateCDR] => 1 ) [2025-02-21 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:26:06' and `end` < '2025-02-21 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:26:18] Production.INFO: count ==2755 [2025-02-21 10:26:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:26:06 - End Time 2025-02-21 10:26:06 [2025-02-21 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524454', 'tblTempUsageDetail_20' ) start [2025-02-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524454', 'tblTempUsageDetail_20' ) end [2025-02-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524454', 'tblTempVendorCDR_20' ) start [2025-02-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524454', 'tblTempVendorCDR_20' ) end [2025-02-21 10:26:19] Production.INFO: ProcessCDR(1,14524454,1,1,2) [2025-02-21 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524454', 'tblTempUsageDetail_20' ) start [2025-02-21 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524454', 'tblTempUsageDetail_20' ) end [2025-02-21 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:26:24] Production.INFO: ==25152== Releasing lock... [2025-02-21 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:26:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-21 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:27:05 [end_date_ymd] => 2025-02-21 10:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:27:05' and `end` < '2025-02-21 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-21 10:27:17] Production.INFO: count ==2771 [2025-02-21 10:27:18] Production.ERROR: pbx CDR StartTime 2025-02-21 07:27:05 - End Time 2025-02-21 10:27:05 [2025-02-21 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524459', 'tblTempUsageDetail_20' ) start [2025-02-21 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524459', 'tblTempUsageDetail_20' ) end [2025-02-21 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524459', 'tblTempVendorCDR_20' ) start [2025-02-21 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524459', 'tblTempVendorCDR_20' ) end [2025-02-21 10:27:18] Production.INFO: ProcessCDR(1,14524459,1,1,2) [2025-02-21 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524459', 'tblTempUsageDetail_20' ) start [2025-02-21 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524459', 'tblTempUsageDetail_20' ) end [2025-02-21 10:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:27:23] Production.INFO: ==25222== Releasing lock... [2025-02-21 10:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:27:23] Production.INFO: 49 MB #Memory Used# [2025-02-21 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:28:05 [end_date_ymd] => 2025-02-21 10:28:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:28:05' and `end` < '2025-02-21 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-21 10:28:18] Production.INFO: count ==2792 [2025-02-21 10:28:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:28:05 - End Time 2025-02-21 10:28:05 [2025-02-21 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524464', 'tblTempUsageDetail_20' ) start [2025-02-21 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524464', 'tblTempUsageDetail_20' ) end [2025-02-21 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524464', 'tblTempVendorCDR_20' ) start [2025-02-21 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524464', 'tblTempVendorCDR_20' ) end [2025-02-21 10:28:19] Production.INFO: ProcessCDR(1,14524464,1,1,2) [2025-02-21 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524464', 'tblTempUsageDetail_20' ) start [2025-02-21 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524464', 'tblTempUsageDetail_20' ) end [2025-02-21 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:28:24] Production.INFO: ==25291== Releasing lock... [2025-02-21 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:28:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-21 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:29:05 [end_date_ymd] => 2025-02-21 10:29:05 [RateCDR] => 1 ) [2025-02-21 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:29:05' and `end` < '2025-02-21 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:29:18] Production.INFO: count ==2797 [2025-02-21 10:29:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:29:05 - End Time 2025-02-21 10:29:05 [2025-02-21 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524469', 'tblTempUsageDetail_20' ) start [2025-02-21 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524469', 'tblTempUsageDetail_20' ) end [2025-02-21 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524469', 'tblTempVendorCDR_20' ) start [2025-02-21 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524469', 'tblTempVendorCDR_20' ) end [2025-02-21 10:29:19] Production.INFO: ProcessCDR(1,14524469,1,1,2) [2025-02-21 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524469', 'tblTempUsageDetail_20' ) start [2025-02-21 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524469', 'tblTempUsageDetail_20' ) end [2025-02-21 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:29:23] Production.INFO: ==25363== Releasing lock... [2025-02-21 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:29:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-21 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:30:06 [end_date_ymd] => 2025-02-21 10:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:30:06' and `end` < '2025-02-21 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-21 10:30:19] Production.INFO: count ==2812 [2025-02-21 10:30:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:30:06 - End Time 2025-02-21 10:30:06 [2025-02-21 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524475', 'tblTempUsageDetail_20' ) start [2025-02-21 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524475', 'tblTempUsageDetail_20' ) end [2025-02-21 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524475', 'tblTempVendorCDR_20' ) start [2025-02-21 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524475', 'tblTempVendorCDR_20' ) end [2025-02-21 10:30:20] Production.INFO: ProcessCDR(1,14524475,1,1,2) [2025-02-21 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524475', 'tblTempUsageDetail_20' ) start [2025-02-21 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524475', 'tblTempUsageDetail_20' ) end [2025-02-21 10:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:30:25] Production.INFO: ==25437== Releasing lock... [2025-02-21 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:30:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-21 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:31:05 [end_date_ymd] => 2025-02-21 10:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:31:05' and `end` < '2025-02-21 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-21 10:31:18] Production.INFO: count ==2893 [2025-02-21 10:31:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:31:05 - End Time 2025-02-21 10:31:05 [2025-02-21 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524480', 'tblTempUsageDetail_20' ) start [2025-02-21 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524480', 'tblTempUsageDetail_20' ) end [2025-02-21 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524480', 'tblTempVendorCDR_20' ) start [2025-02-21 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524480', 'tblTempVendorCDR_20' ) end [2025-02-21 10:31:19] Production.INFO: ProcessCDR(1,14524480,1,1,2) [2025-02-21 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524480', 'tblTempUsageDetail_20' ) start [2025-02-21 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524480', 'tblTempUsageDetail_20' ) end [2025-02-21 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:31:24] Production.INFO: ==25513== Releasing lock... [2025-02-21 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:31:24] Production.INFO: 50.5 MB #Memory Used# [2025-02-21 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:32:06 [end_date_ymd] => 2025-02-21 10:32:06 [RateCDR] => 1 ) [2025-02-21 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:32:06' and `end` < '2025-02-21 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:32:18] Production.INFO: count ==2916 [2025-02-21 10:32:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:32:06 - End Time 2025-02-21 10:32:06 [2025-02-21 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524485', 'tblTempUsageDetail_20' ) start [2025-02-21 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524485', 'tblTempUsageDetail_20' ) end [2025-02-21 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524485', 'tblTempVendorCDR_20' ) start [2025-02-21 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524485', 'tblTempVendorCDR_20' ) end [2025-02-21 10:32:20] Production.INFO: ProcessCDR(1,14524485,1,1,2) [2025-02-21 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524485', 'tblTempUsageDetail_20' ) start [2025-02-21 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524485', 'tblTempUsageDetail_20' ) end [2025-02-21 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:32:25] Production.INFO: ==25586== Releasing lock... [2025-02-21 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:32:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-21 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:33:05 [end_date_ymd] => 2025-02-21 10:33:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:33:05' and `end` < '2025-02-21 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-21 10:33:17] Production.INFO: count ==2934 [2025-02-21 10:33:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:33:05 - End Time 2025-02-21 10:33:05 [2025-02-21 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524490', 'tblTempUsageDetail_20' ) start [2025-02-21 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524490', 'tblTempUsageDetail_20' ) end [2025-02-21 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524490', 'tblTempVendorCDR_20' ) start [2025-02-21 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524490', 'tblTempVendorCDR_20' ) end [2025-02-21 10:33:19] Production.INFO: ProcessCDR(1,14524490,1,1,2) [2025-02-21 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524490', 'tblTempUsageDetail_20' ) start [2025-02-21 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524490', 'tblTempUsageDetail_20' ) end [2025-02-21 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:33:24] Production.INFO: ==25659== Releasing lock... [2025-02-21 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:33:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-21 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:34:05 [end_date_ymd] => 2025-02-21 10:34:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:34:05' and `end` < '2025-02-21 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-21 10:34:18] Production.INFO: count ==2944 [2025-02-21 10:34:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:34:05 - End Time 2025-02-21 10:34:05 [2025-02-21 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524495', 'tblTempUsageDetail_20' ) start [2025-02-21 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524495', 'tblTempUsageDetail_20' ) end [2025-02-21 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524495', 'tblTempVendorCDR_20' ) start [2025-02-21 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524495', 'tblTempVendorCDR_20' ) end [2025-02-21 10:34:19] Production.INFO: ProcessCDR(1,14524495,1,1,2) [2025-02-21 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524495', 'tblTempUsageDetail_20' ) start [2025-02-21 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524495', 'tblTempUsageDetail_20' ) end [2025-02-21 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:34:24] Production.INFO: ==25732== Releasing lock... [2025-02-21 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:34:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-21 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:35:05 [end_date_ymd] => 2025-02-21 10:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:35:05' and `end` < '2025-02-21 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-21 10:35:17] Production.INFO: count ==2955 [2025-02-21 10:35:18] Production.ERROR: pbx CDR StartTime 2025-02-21 07:35:05 - End Time 2025-02-21 10:35:05 [2025-02-21 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524500', 'tblTempUsageDetail_20' ) start [2025-02-21 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524500', 'tblTempUsageDetail_20' ) end [2025-02-21 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524500', 'tblTempVendorCDR_20' ) start [2025-02-21 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524500', 'tblTempVendorCDR_20' ) end [2025-02-21 10:35:19] Production.INFO: ProcessCDR(1,14524500,1,1,2) [2025-02-21 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524500', 'tblTempUsageDetail_20' ) start [2025-02-21 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524500', 'tblTempUsageDetail_20' ) end [2025-02-21 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:35:24] Production.INFO: ==25808== Releasing lock... [2025-02-21 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:35:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-21 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:36:06 [end_date_ymd] => 2025-02-21 10:36:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:36:06' and `end` < '2025-02-21 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-21 10:36:18] Production.INFO: count ==2976 [2025-02-21 10:36:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:36:06 - End Time 2025-02-21 10:36:06 [2025-02-21 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524505', 'tblTempUsageDetail_20' ) start [2025-02-21 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524505', 'tblTempUsageDetail_20' ) end [2025-02-21 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524505', 'tblTempVendorCDR_20' ) start [2025-02-21 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524505', 'tblTempVendorCDR_20' ) end [2025-02-21 10:36:20] Production.INFO: ProcessCDR(1,14524505,1,1,2) [2025-02-21 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524505', 'tblTempUsageDetail_20' ) start [2025-02-21 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524505', 'tblTempUsageDetail_20' ) end [2025-02-21 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:36:25] Production.INFO: ==25880== Releasing lock... [2025-02-21 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:36:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-21 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:37:05 [end_date_ymd] => 2025-02-21 10:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:37:05' and `end` < '2025-02-21 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-21 10:37:17] Production.INFO: count ==2990 [2025-02-21 10:37:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:37:05 - End Time 2025-02-21 10:37:05 [2025-02-21 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524510', 'tblTempUsageDetail_20' ) start [2025-02-21 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524510', 'tblTempUsageDetail_20' ) end [2025-02-21 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524510', 'tblTempVendorCDR_20' ) start [2025-02-21 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524510', 'tblTempVendorCDR_20' ) end [2025-02-21 10:37:19] Production.INFO: ProcessCDR(1,14524510,1,1,2) [2025-02-21 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524510', 'tblTempUsageDetail_20' ) start [2025-02-21 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524510', 'tblTempUsageDetail_20' ) end [2025-02-21 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:37:24] Production.INFO: ==25950== Releasing lock... [2025-02-21 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:37:24] Production.INFO: 50.5 MB #Memory Used# [2025-02-21 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:38:06 [end_date_ymd] => 2025-02-21 10:38:06 [RateCDR] => 1 ) [2025-02-21 10:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:38:06' and `end` < '2025-02-21 10:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:38:18] Production.INFO: count ==3005 [2025-02-21 10:38:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:38:06 - End Time 2025-02-21 10:38:06 [2025-02-21 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524515', 'tblTempUsageDetail_20' ) start [2025-02-21 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524515', 'tblTempUsageDetail_20' ) end [2025-02-21 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524515', 'tblTempVendorCDR_20' ) start [2025-02-21 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524515', 'tblTempVendorCDR_20' ) end [2025-02-21 10:38:20] Production.INFO: ProcessCDR(1,14524515,1,1,2) [2025-02-21 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524515', 'tblTempUsageDetail_20' ) start [2025-02-21 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524515', 'tblTempUsageDetail_20' ) end [2025-02-21 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:38:25] Production.INFO: ==26025== Releasing lock... [2025-02-21 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:38:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-21 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:39:05 [end_date_ymd] => 2025-02-21 10:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:39:05' and `end` < '2025-02-21 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-21 10:39:18] Production.INFO: count ==3013 [2025-02-21 10:39:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:39:05 - End Time 2025-02-21 10:39:05 [2025-02-21 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524520', 'tblTempUsageDetail_20' ) start [2025-02-21 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524520', 'tblTempUsageDetail_20' ) end [2025-02-21 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524520', 'tblTempVendorCDR_20' ) start [2025-02-21 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524520', 'tblTempVendorCDR_20' ) end [2025-02-21 10:39:19] Production.INFO: ProcessCDR(1,14524520,1,1,2) [2025-02-21 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524520', 'tblTempUsageDetail_20' ) start [2025-02-21 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524520', 'tblTempUsageDetail_20' ) end [2025-02-21 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:39:22] Production.INFO: ==26101== Releasing lock... [2025-02-21 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:39:22] Production.INFO: 51 MB #Memory Used# [2025-02-21 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:40:06 [end_date_ymd] => 2025-02-21 10:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:40:06' and `end` < '2025-02-21 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-21 10:40:18] Production.INFO: count ==3025 [2025-02-21 10:40:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:40:06 - End Time 2025-02-21 10:40:06 [2025-02-21 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524526', 'tblTempUsageDetail_20' ) start [2025-02-21 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524526', 'tblTempUsageDetail_20' ) end [2025-02-21 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524526', 'tblTempVendorCDR_20' ) start [2025-02-21 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524526', 'tblTempVendorCDR_20' ) end [2025-02-21 10:40:20] Production.INFO: ProcessCDR(1,14524526,1,1,2) [2025-02-21 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524526', 'tblTempUsageDetail_20' ) start [2025-02-21 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524526', 'tblTempUsageDetail_20' ) end [2025-02-21 10:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:40:24] Production.INFO: ==26176== Releasing lock... [2025-02-21 10:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:40:24] Production.INFO: 51 MB #Memory Used# [2025-02-21 10:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:41:04 [end_date_ymd] => 2025-02-21 10:41:04 [RateCDR] => 1 ) [2025-02-21 10: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-21 07:41:04' and `end` < '2025-02-21 10: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-21 10:41:17] Production.INFO: count ==3142 [2025-02-21 10:41:18] Production.ERROR: pbx CDR StartTime 2025-02-21 07:41:04 - End Time 2025-02-21 10:41:04 [2025-02-21 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524531', 'tblTempUsageDetail_20' ) start [2025-02-21 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524531', 'tblTempUsageDetail_20' ) end [2025-02-21 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524531', 'tblTempVendorCDR_20' ) start [2025-02-21 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524531', 'tblTempVendorCDR_20' ) end [2025-02-21 10:41:18] Production.INFO: ProcessCDR(1,14524531,1,1,2) [2025-02-21 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524531', 'tblTempUsageDetail_20' ) start [2025-02-21 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524531', 'tblTempUsageDetail_20' ) end [2025-02-21 10:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:41:23] Production.INFO: ==26295== Releasing lock... [2025-02-21 10:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:41:23] Production.INFO: 52 MB #Memory Used# [2025-02-21 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:42:05 [end_date_ymd] => 2025-02-21 10:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:42:05' and `end` < '2025-02-21 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-21 10:42:17] Production.INFO: count ==3179 [2025-02-21 10:42:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:42:05 - End Time 2025-02-21 10:42:05 [2025-02-21 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524536', 'tblTempUsageDetail_20' ) start [2025-02-21 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524536', 'tblTempUsageDetail_20' ) end [2025-02-21 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524536', 'tblTempVendorCDR_20' ) start [2025-02-21 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524536', 'tblTempVendorCDR_20' ) end [2025-02-21 10:42:19] Production.INFO: ProcessCDR(1,14524536,1,1,2) [2025-02-21 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524536', 'tblTempUsageDetail_20' ) start [2025-02-21 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524536', 'tblTempUsageDetail_20' ) end [2025-02-21 10:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:42:24] Production.INFO: ==26370== Releasing lock... [2025-02-21 10:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:42:24] Production.INFO: 52.75 MB #Memory Used# [2025-02-21 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:43:05 [end_date_ymd] => 2025-02-21 10:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:43:05' and `end` < '2025-02-21 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-21 10:43:18] Production.INFO: count ==3198 [2025-02-21 10:43:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:43:05 - End Time 2025-02-21 10:43:05 [2025-02-21 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524541', 'tblTempUsageDetail_20' ) start [2025-02-21 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524541', 'tblTempUsageDetail_20' ) end [2025-02-21 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524541', 'tblTempVendorCDR_20' ) start [2025-02-21 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524541', 'tblTempVendorCDR_20' ) end [2025-02-21 10:43:19] Production.INFO: ProcessCDR(1,14524541,1,1,2) [2025-02-21 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524541', 'tblTempUsageDetail_20' ) start [2025-02-21 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524541', 'tblTempUsageDetail_20' ) end [2025-02-21 10:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:43:24] Production.INFO: ==26449== Releasing lock... [2025-02-21 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:43:24] Production.INFO: 52.5 MB #Memory Used# [2025-02-21 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:44:05 [end_date_ymd] => 2025-02-21 10:44:05 [RateCDR] => 1 ) [2025-02-21 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:44:05' and `end` < '2025-02-21 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:44:17] Production.INFO: count ==3218 [2025-02-21 10:44:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:44:05 - End Time 2025-02-21 10:44:05 [2025-02-21 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524546', 'tblTempUsageDetail_20' ) start [2025-02-21 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524546', 'tblTempUsageDetail_20' ) end [2025-02-21 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524546', 'tblTempVendorCDR_20' ) start [2025-02-21 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524546', 'tblTempVendorCDR_20' ) end [2025-02-21 10:44:19] Production.INFO: ProcessCDR(1,14524546,1,1,2) [2025-02-21 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524546', 'tblTempUsageDetail_20' ) start [2025-02-21 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524546', 'tblTempUsageDetail_20' ) end [2025-02-21 10:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:44:24] Production.INFO: ==26524== Releasing lock... [2025-02-21 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:44:24] Production.INFO: 53 MB #Memory Used# [2025-02-21 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:45:05 [end_date_ymd] => 2025-02-21 10:45:05 [RateCDR] => 1 ) [2025-02-21 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:45:05' and `end` < '2025-02-21 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:45:18] Production.INFO: count ==3220 [2025-02-21 10:45:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:45:05 - End Time 2025-02-21 10:45:05 [2025-02-21 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524551', 'tblTempUsageDetail_20' ) start [2025-02-21 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524551', 'tblTempUsageDetail_20' ) end [2025-02-21 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524551', 'tblTempVendorCDR_20' ) start [2025-02-21 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524551', 'tblTempVendorCDR_20' ) end [2025-02-21 10:45:19] Production.INFO: ProcessCDR(1,14524551,1,1,2) [2025-02-21 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524551', 'tblTempUsageDetail_20' ) start [2025-02-21 10:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524551', 'tblTempUsageDetail_20' ) end [2025-02-21 10:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:45:24] Production.INFO: ==26605== Releasing lock... [2025-02-21 10:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:45:24] Production.INFO: 52.75 MB #Memory Used# [2025-02-21 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:46:05 [end_date_ymd] => 2025-02-21 10:46:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:46:05' and `end` < '2025-02-21 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-21 10:46:18] Production.INFO: count ==3235 [2025-02-21 10:46:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:46:05 - End Time 2025-02-21 10:46:05 [2025-02-21 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524556', 'tblTempUsageDetail_20' ) start [2025-02-21 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524556', 'tblTempUsageDetail_20' ) end [2025-02-21 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524556', 'tblTempVendorCDR_20' ) start [2025-02-21 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524556', 'tblTempVendorCDR_20' ) end [2025-02-21 10:46:19] Production.INFO: ProcessCDR(1,14524556,1,1,2) [2025-02-21 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524556', 'tblTempUsageDetail_20' ) start [2025-02-21 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524556', 'tblTempUsageDetail_20' ) end [2025-02-21 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:46:25] Production.INFO: ==26685== Releasing lock... [2025-02-21 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:46:25] Production.INFO: 53 MB #Memory Used# [2025-02-21 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:47:06 [end_date_ymd] => 2025-02-21 10:47:06 [RateCDR] => 1 ) [2025-02-21 10: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-21 07:47:06' and `end` < '2025-02-21 10: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-21 10:47:18] Production.INFO: count ==3253 [2025-02-21 10:47:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:47:06 - End Time 2025-02-21 10:47:06 [2025-02-21 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524561', 'tblTempUsageDetail_20' ) start [2025-02-21 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524561', 'tblTempUsageDetail_20' ) end [2025-02-21 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524561', 'tblTempVendorCDR_20' ) start [2025-02-21 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524561', 'tblTempVendorCDR_20' ) end [2025-02-21 10:47:20] Production.INFO: ProcessCDR(1,14524561,1,1,2) [2025-02-21 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524561', 'tblTempUsageDetail_20' ) start [2025-02-21 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524561', 'tblTempUsageDetail_20' ) end [2025-02-21 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:47:25] Production.INFO: ==26762== Releasing lock... [2025-02-21 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:47:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:48:06 [end_date_ymd] => 2025-02-21 10:48:06 [RateCDR] => 1 ) [2025-02-21 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:48:06' and `end` < '2025-02-21 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:48:18] Production.INFO: count ==3268 [2025-02-21 10:48:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:48:06 - End Time 2025-02-21 10:48:06 [2025-02-21 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524566', 'tblTempUsageDetail_20' ) start [2025-02-21 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524566', 'tblTempUsageDetail_20' ) end [2025-02-21 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524566', 'tblTempVendorCDR_20' ) start [2025-02-21 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524566', 'tblTempVendorCDR_20' ) end [2025-02-21 10:48:20] Production.INFO: ProcessCDR(1,14524566,1,1,2) [2025-02-21 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524566', 'tblTempUsageDetail_20' ) start [2025-02-21 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524566', 'tblTempUsageDetail_20' ) end [2025-02-21 10:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:48:23] Production.INFO: ==26838== Releasing lock... [2025-02-21 10:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:48:23] Production.INFO: 52.5 MB #Memory Used# [2025-02-21 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:49:06 [end_date_ymd] => 2025-02-21 10:49:06 [RateCDR] => 1 ) [2025-02-21 10: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-21 07:49:06' and `end` < '2025-02-21 10: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-21 10:49:18] Production.INFO: count ==3305 [2025-02-21 10:49:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:49:06 - End Time 2025-02-21 10:49:06 [2025-02-21 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524571', 'tblTempUsageDetail_20' ) start [2025-02-21 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524571', 'tblTempUsageDetail_20' ) end [2025-02-21 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524571', 'tblTempVendorCDR_20' ) start [2025-02-21 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524571', 'tblTempVendorCDR_20' ) end [2025-02-21 10:49:20] Production.INFO: ProcessCDR(1,14524571,1,1,2) [2025-02-21 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524571', 'tblTempUsageDetail_20' ) start [2025-02-21 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524571', 'tblTempUsageDetail_20' ) end [2025-02-21 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:49:25] Production.INFO: ==26916== Releasing lock... [2025-02-21 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:49:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:50:06 [end_date_ymd] => 2025-02-21 10:50:06 [RateCDR] => 1 ) [2025-02-21 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-21 07:50:06' and `end` < '2025-02-21 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-21 10:50:18] Production.INFO: count ==3338 [2025-02-21 10:50:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:50:06 - End Time 2025-02-21 10:50:06 [2025-02-21 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524577', 'tblTempUsageDetail_20' ) start [2025-02-21 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524577', 'tblTempUsageDetail_20' ) end [2025-02-21 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524577', 'tblTempVendorCDR_20' ) start [2025-02-21 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524577', 'tblTempVendorCDR_20' ) end [2025-02-21 10:50:20] Production.INFO: ProcessCDR(1,14524577,1,1,2) [2025-02-21 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524577', 'tblTempUsageDetail_20' ) start [2025-02-21 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524577', 'tblTempUsageDetail_20' ) end [2025-02-21 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:50:25] Production.INFO: ==26992== Releasing lock... [2025-02-21 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:50:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:51:05 [end_date_ymd] => 2025-02-21 10:51:05 [RateCDR] => 1 ) [2025-02-21 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:51:05' and `end` < '2025-02-21 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:51:18] Production.INFO: count ==3465 [2025-02-21 10:51:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:51:05 - End Time 2025-02-21 10:51:05 [2025-02-21 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524582', 'tblTempUsageDetail_20' ) start [2025-02-21 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524582', 'tblTempUsageDetail_20' ) end [2025-02-21 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524582', 'tblTempVendorCDR_20' ) start [2025-02-21 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524582', 'tblTempVendorCDR_20' ) end [2025-02-21 10:51:19] Production.INFO: ProcessCDR(1,14524582,1,1,2) [2025-02-21 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524582', 'tblTempUsageDetail_20' ) start [2025-02-21 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524582', 'tblTempUsageDetail_20' ) end [2025-02-21 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:51:25] Production.INFO: ==27074== Releasing lock... [2025-02-21 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:51:25] Production.INFO: 54 MB #Memory Used# [2025-02-21 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:52:05 [end_date_ymd] => 2025-02-21 10:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:52:05' and `end` < '2025-02-21 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-21 10:52:17] Production.INFO: count ==3475 [2025-02-21 10:52:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:52:05 - End Time 2025-02-21 10:52:05 [2025-02-21 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524587', 'tblTempUsageDetail_20' ) start [2025-02-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524587', 'tblTempUsageDetail_20' ) end [2025-02-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524587', 'tblTempVendorCDR_20' ) start [2025-02-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524587', 'tblTempVendorCDR_20' ) end [2025-02-21 10:52:19] Production.INFO: ProcessCDR(1,14524587,1,1,2) [2025-02-21 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524587', 'tblTempUsageDetail_20' ) start [2025-02-21 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524587', 'tblTempUsageDetail_20' ) end [2025-02-21 10:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:52:24] Production.INFO: ==27152== Releasing lock... [2025-02-21 10:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:52:24] Production.INFO: 54.5 MB #Memory Used# [2025-02-21 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:53:05 [end_date_ymd] => 2025-02-21 10:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:53:05' and `end` < '2025-02-21 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-21 10:53:18] Production.INFO: count ==3497 [2025-02-21 10:53:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:53:05 - End Time 2025-02-21 10:53:05 [2025-02-21 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524592', 'tblTempUsageDetail_20' ) start [2025-02-21 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524592', 'tblTempUsageDetail_20' ) end [2025-02-21 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524592', 'tblTempVendorCDR_20' ) start [2025-02-21 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524592', 'tblTempVendorCDR_20' ) end [2025-02-21 10:53:19] Production.INFO: ProcessCDR(1,14524592,1,1,2) [2025-02-21 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524592', 'tblTempUsageDetail_20' ) start [2025-02-21 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524592', 'tblTempUsageDetail_20' ) end [2025-02-21 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:53:24] Production.INFO: ==27233== Releasing lock... [2025-02-21 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:53:24] Production.INFO: 54.75 MB #Memory Used# [2025-02-21 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:54:05 [end_date_ymd] => 2025-02-21 10:54:05 [RateCDR] => 1 ) [2025-02-21 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:54:05' and `end` < '2025-02-21 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:54:18] Production.INFO: count ==3531 [2025-02-21 10:54:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:54:05 - End Time 2025-02-21 10:54:05 [2025-02-21 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524597', 'tblTempUsageDetail_20' ) start [2025-02-21 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524597', 'tblTempUsageDetail_20' ) end [2025-02-21 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524597', 'tblTempVendorCDR_20' ) start [2025-02-21 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524597', 'tblTempVendorCDR_20' ) end [2025-02-21 10:54:19] Production.INFO: ProcessCDR(1,14524597,1,1,2) [2025-02-21 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524597', 'tblTempUsageDetail_20' ) start [2025-02-21 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524597', 'tblTempUsageDetail_20' ) end [2025-02-21 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:54:25] Production.INFO: ==27331== Releasing lock... [2025-02-21 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:54:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-21 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:55:05 [end_date_ymd] => 2025-02-21 10:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:55:05' and `end` < '2025-02-21 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-21 10:55:18] Production.INFO: count ==3559 [2025-02-21 10:55:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:55:05 - End Time 2025-02-21 10:55:05 [2025-02-21 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524602', 'tblTempUsageDetail_20' ) start [2025-02-21 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524602', 'tblTempUsageDetail_20' ) end [2025-02-21 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524602', 'tblTempVendorCDR_20' ) start [2025-02-21 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524602', 'tblTempVendorCDR_20' ) end [2025-02-21 10:55:20] Production.INFO: ProcessCDR(1,14524602,1,1,2) [2025-02-21 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524602', 'tblTempUsageDetail_20' ) start [2025-02-21 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524602', 'tblTempUsageDetail_20' ) end [2025-02-21 10:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:55:24] Production.INFO: ==27442== Releasing lock... [2025-02-21 10:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:55:24] Production.INFO: 54.75 MB #Memory Used# [2025-02-21 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:56:05 [end_date_ymd] => 2025-02-21 10:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:56:05' and `end` < '2025-02-21 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-21 10:56:17] Production.INFO: count ==3570 [2025-02-21 10:56:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:56:05 - End Time 2025-02-21 10:56:05 [2025-02-21 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524607', 'tblTempUsageDetail_20' ) start [2025-02-21 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524607', 'tblTempUsageDetail_20' ) end [2025-02-21 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524607', 'tblTempVendorCDR_20' ) start [2025-02-21 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524607', 'tblTempVendorCDR_20' ) end [2025-02-21 10:56:19] Production.INFO: ProcessCDR(1,14524607,1,1,2) [2025-02-21 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524607', 'tblTempUsageDetail_20' ) start [2025-02-21 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524607', 'tblTempUsageDetail_20' ) end [2025-02-21 10:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:56:24] Production.INFO: ==27589== Releasing lock... [2025-02-21 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:56:24] Production.INFO: 55 MB #Memory Used# [2025-02-21 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:57:05 [end_date_ymd] => 2025-02-21 10:57:05 [RateCDR] => 1 ) [2025-02-21 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:57:05' and `end` < '2025-02-21 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:57:18] Production.INFO: count ==3577 [2025-02-21 10:57:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:57:05 - End Time 2025-02-21 10:57:05 [2025-02-21 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524612', 'tblTempUsageDetail_20' ) start [2025-02-21 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524612', 'tblTempUsageDetail_20' ) end [2025-02-21 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524612', 'tblTempVendorCDR_20' ) start [2025-02-21 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524612', 'tblTempVendorCDR_20' ) end [2025-02-21 10:57:19] Production.INFO: ProcessCDR(1,14524612,1,1,2) [2025-02-21 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524612', 'tblTempUsageDetail_20' ) start [2025-02-21 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524612', 'tblTempUsageDetail_20' ) end [2025-02-21 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:57:24] Production.INFO: ==27665== Releasing lock... [2025-02-21 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:57:24] Production.INFO: 54.75 MB #Memory Used# [2025-02-21 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:58:06 [end_date_ymd] => 2025-02-21 10:58:06 [RateCDR] => 1 ) [2025-02-21 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 07:58:06' and `end` < '2025-02-21 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 10:58:18] Production.INFO: count ==3584 [2025-02-21 10:58:20] Production.ERROR: pbx CDR StartTime 2025-02-21 07:58:06 - End Time 2025-02-21 10:58:06 [2025-02-21 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524617', 'tblTempUsageDetail_20' ) start [2025-02-21 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524617', 'tblTempUsageDetail_20' ) end [2025-02-21 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524617', 'tblTempVendorCDR_20' ) start [2025-02-21 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524617', 'tblTempVendorCDR_20' ) end [2025-02-21 10:58:20] Production.INFO: ProcessCDR(1,14524617,1,1,2) [2025-02-21 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524617', 'tblTempUsageDetail_20' ) start [2025-02-21 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524617', 'tblTempUsageDetail_20' ) end [2025-02-21 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:58:25] Production.INFO: ==27743== Releasing lock... [2025-02-21 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:58:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-21 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 07:59:05 [end_date_ymd] => 2025-02-21 10:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 07:59:05' and `end` < '2025-02-21 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-21 10:59:17] Production.INFO: count ==3644 [2025-02-21 10:59:19] Production.ERROR: pbx CDR StartTime 2025-02-21 07:59:05 - End Time 2025-02-21 10:59:05 [2025-02-21 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524622', 'tblTempUsageDetail_20' ) start [2025-02-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524622', 'tblTempUsageDetail_20' ) end [2025-02-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524622', 'tblTempVendorCDR_20' ) start [2025-02-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524622', 'tblTempVendorCDR_20' ) end [2025-02-21 10:59:19] Production.INFO: ProcessCDR(1,14524622,1,1,2) [2025-02-21 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524622', 'tblTempUsageDetail_20' ) start [2025-02-21 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524622', 'tblTempUsageDetail_20' ) end [2025-02-21 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 10:59:24] Production.INFO: ==27816== Releasing lock... [2025-02-21 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 10:59:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-21 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:00:06 [end_date_ymd] => 2025-02-21 11:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 08:00:06' and `end` < '2025-02-21 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-21 11:00:19] Production.INFO: count ==3652 [2025-02-21 11:00:21] Production.ERROR: pbx CDR StartTime 2025-02-21 08:00:06 - End Time 2025-02-21 11:00:06 [2025-02-21 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524628', 'tblTempUsageDetail_20' ) start [2025-02-21 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524628', 'tblTempUsageDetail_20' ) end [2025-02-21 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524628', 'tblTempVendorCDR_20' ) start [2025-02-21 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524628', 'tblTempVendorCDR_20' ) end [2025-02-21 11:00:21] Production.INFO: ProcessCDR(1,14524628,1,1,2) [2025-02-21 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524628', 'tblTempUsageDetail_20' ) start [2025-02-21 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524628', 'tblTempUsageDetail_20' ) end [2025-02-21 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:00:26] Production.INFO: ==27900== Releasing lock... [2025-02-21 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:00:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-21 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:01:05 [end_date_ymd] => 2025-02-21 11:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:01:05' and `end` < '2025-02-21 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-21 11:01:17] Production.INFO: count ==3723 [2025-02-21 11:01:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:01:05 - End Time 2025-02-21 11:01:05 [2025-02-21 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524633', 'tblTempUsageDetail_20' ) start [2025-02-21 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524633', 'tblTempUsageDetail_20' ) end [2025-02-21 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524633', 'tblTempVendorCDR_20' ) start [2025-02-21 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524633', 'tblTempVendorCDR_20' ) end [2025-02-21 11:01:19] Production.INFO: ProcessCDR(1,14524633,1,1,2) [2025-02-21 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524633', 'tblTempUsageDetail_20' ) start [2025-02-21 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524633', 'tblTempUsageDetail_20' ) end [2025-02-21 11:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:01:24] Production.INFO: ==28029== Releasing lock... [2025-02-21 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:01:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-21 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:02:06 [end_date_ymd] => 2025-02-21 11:02:06 [RateCDR] => 1 ) [2025-02-21 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:02:06' and `end` < '2025-02-21 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:02:18] Production.INFO: count ==3728 [2025-02-21 11:02:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:02:06 - End Time 2025-02-21 11:02:06 [2025-02-21 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524638', 'tblTempUsageDetail_20' ) start [2025-02-21 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524638', 'tblTempUsageDetail_20' ) end [2025-02-21 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524638', 'tblTempVendorCDR_20' ) start [2025-02-21 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524638', 'tblTempVendorCDR_20' ) end [2025-02-21 11:02:20] Production.INFO: ProcessCDR(1,14524638,1,1,2) [2025-02-21 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524638', 'tblTempUsageDetail_20' ) start [2025-02-21 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524638', 'tblTempUsageDetail_20' ) end [2025-02-21 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:02:26] Production.INFO: ==28145== Releasing lock... [2025-02-21 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:02:26] Production.INFO: 56.5 MB #Memory Used# [2025-02-21 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:03:05 [end_date_ymd] => 2025-02-21 11:03:05 [RateCDR] => 1 ) [2025-02-21 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:03:05' and `end` < '2025-02-21 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:03:18] Production.INFO: count ==3744 [2025-02-21 11:03:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:03:05 - End Time 2025-02-21 11:03:05 [2025-02-21 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524643', 'tblTempUsageDetail_20' ) start [2025-02-21 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524643', 'tblTempUsageDetail_20' ) end [2025-02-21 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524643', 'tblTempVendorCDR_20' ) start [2025-02-21 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524643', 'tblTempVendorCDR_20' ) end [2025-02-21 11:03:20] Production.INFO: ProcessCDR(1,14524643,1,1,2) [2025-02-21 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524643', 'tblTempUsageDetail_20' ) start [2025-02-21 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524643', 'tblTempUsageDetail_20' ) end [2025-02-21 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:03:25] Production.INFO: ==28223== Releasing lock... [2025-02-21 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:03:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-21 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:04:06 [end_date_ymd] => 2025-02-21 11:04:06 [RateCDR] => 1 ) [2025-02-21 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-21 08:04:06' and `end` < '2025-02-21 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-21 11:04:18] Production.INFO: count ==3742 [2025-02-21 11:04:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:04:06 - End Time 2025-02-21 11:04:06 [2025-02-21 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524648', 'tblTempUsageDetail_20' ) start [2025-02-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524648', 'tblTempUsageDetail_20' ) end [2025-02-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524648', 'tblTempVendorCDR_20' ) start [2025-02-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524648', 'tblTempVendorCDR_20' ) end [2025-02-21 11:04:20] Production.INFO: ProcessCDR(1,14524648,1,1,2) [2025-02-21 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524648', 'tblTempUsageDetail_20' ) start [2025-02-21 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524648', 'tblTempUsageDetail_20' ) end [2025-02-21 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:04:25] Production.INFO: ==28302== Releasing lock... [2025-02-21 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:04:25] Production.INFO: 56 MB #Memory Used# [2025-02-21 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:05:05 [end_date_ymd] => 2025-02-21 11:05:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:05:05' and `end` < '2025-02-21 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-21 11:05:18] Production.INFO: count ==3747 [2025-02-21 11:05:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:05:05 - End Time 2025-02-21 11:05:05 [2025-02-21 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524653', 'tblTempUsageDetail_20' ) start [2025-02-21 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524653', 'tblTempUsageDetail_20' ) end [2025-02-21 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524653', 'tblTempVendorCDR_20' ) start [2025-02-21 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524653', 'tblTempVendorCDR_20' ) end [2025-02-21 11:05:20] Production.INFO: ProcessCDR(1,14524653,1,1,2) [2025-02-21 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524653', 'tblTempUsageDetail_20' ) start [2025-02-21 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524653', 'tblTempUsageDetail_20' ) end [2025-02-21 11:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:05:25] Production.INFO: ==28455== Releasing lock... [2025-02-21 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:05:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-21 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:06:06 [end_date_ymd] => 2025-02-21 11:06:06 [RateCDR] => 1 ) [2025-02-21 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-21 08:06:06' and `end` < '2025-02-21 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-21 11:06:19] Production.INFO: count ==3771 [2025-02-21 11:06:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:06:06 - End Time 2025-02-21 11:06:06 [2025-02-21 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524658', 'tblTempUsageDetail_20' ) start [2025-02-21 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524658', 'tblTempUsageDetail_20' ) end [2025-02-21 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524658', 'tblTempVendorCDR_20' ) start [2025-02-21 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524658', 'tblTempVendorCDR_20' ) end [2025-02-21 11:06:20] Production.INFO: ProcessCDR(1,14524658,1,1,2) [2025-02-21 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524658', 'tblTempUsageDetail_20' ) start [2025-02-21 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524658', 'tblTempUsageDetail_20' ) end [2025-02-21 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:06:25] Production.INFO: ==28531== Releasing lock... [2025-02-21 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:06:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-21 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:07:05 [end_date_ymd] => 2025-02-21 11:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:07:05' and `end` < '2025-02-21 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-21 11:07:18] Production.INFO: count ==3777 [2025-02-21 11:07:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:07:05 - End Time 2025-02-21 11:07:05 [2025-02-21 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524663', 'tblTempUsageDetail_20' ) start [2025-02-21 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524663', 'tblTempUsageDetail_20' ) end [2025-02-21 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524663', 'tblTempVendorCDR_20' ) start [2025-02-21 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524663', 'tblTempVendorCDR_20' ) end [2025-02-21 11:07:20] Production.INFO: ProcessCDR(1,14524663,1,1,2) [2025-02-21 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524663', 'tblTempUsageDetail_20' ) start [2025-02-21 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524663', 'tblTempUsageDetail_20' ) end [2025-02-21 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:07:25] Production.INFO: ==28607== Releasing lock... [2025-02-21 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:07:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-21 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:08:06 [end_date_ymd] => 2025-02-21 11:08:06 [RateCDR] => 1 ) [2025-02-21 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:08:06' and `end` < '2025-02-21 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:08:18] Production.INFO: count ==3801 [2025-02-21 11:08:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:08:06 - End Time 2025-02-21 11:08:06 [2025-02-21 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524668', 'tblTempUsageDetail_20' ) start [2025-02-21 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524668', 'tblTempUsageDetail_20' ) end [2025-02-21 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524668', 'tblTempVendorCDR_20' ) start [2025-02-21 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524668', 'tblTempVendorCDR_20' ) end [2025-02-21 11:08:20] Production.INFO: ProcessCDR(1,14524668,1,1,2) [2025-02-21 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524668', 'tblTempUsageDetail_20' ) start [2025-02-21 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524668', 'tblTempUsageDetail_20' ) end [2025-02-21 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:08:25] Production.INFO: ==28762== Releasing lock... [2025-02-21 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:08:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-21 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:09:05 [end_date_ymd] => 2025-02-21 11:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:09:05' and `end` < '2025-02-21 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-21 11:09:18] Production.INFO: count ==3833 [2025-02-21 11:09:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:09:05 - End Time 2025-02-21 11:09:05 [2025-02-21 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524673', 'tblTempUsageDetail_20' ) start [2025-02-21 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524673', 'tblTempUsageDetail_20' ) end [2025-02-21 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524673', 'tblTempVendorCDR_20' ) start [2025-02-21 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524673', 'tblTempVendorCDR_20' ) end [2025-02-21 11:09:19] Production.INFO: ProcessCDR(1,14524673,1,1,2) [2025-02-21 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524673', 'tblTempUsageDetail_20' ) start [2025-02-21 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524673', 'tblTempUsageDetail_20' ) end [2025-02-21 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:09:25] Production.INFO: ==28833== Releasing lock... [2025-02-21 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:09:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-21 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:10:06 [end_date_ymd] => 2025-02-21 11:10:06 [RateCDR] => 1 ) [2025-02-21 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:10:06' and `end` < '2025-02-21 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:10:19] Production.INFO: count ==3885 [2025-02-21 11:10:21] Production.ERROR: pbx CDR StartTime 2025-02-21 08:10:06 - End Time 2025-02-21 11:10:06 [2025-02-21 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524679', 'tblTempUsageDetail_20' ) start [2025-02-21 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524679', 'tblTempUsageDetail_20' ) end [2025-02-21 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524679', 'tblTempVendorCDR_20' ) start [2025-02-21 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524679', 'tblTempVendorCDR_20' ) end [2025-02-21 11:10:21] Production.INFO: ProcessCDR(1,14524679,1,1,2) [2025-02-21 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524679', 'tblTempUsageDetail_20' ) start [2025-02-21 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524679', 'tblTempUsageDetail_20' ) end [2025-02-21 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:10:26] Production.INFO: ==28914== Releasing lock... [2025-02-21 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:10:26] Production.INFO: 57 MB #Memory Used# [2025-02-21 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:11:05 [end_date_ymd] => 2025-02-21 11:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:11:05' and `end` < '2025-02-21 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-21 11:11:18] Production.INFO: count ==3967 [2025-02-21 11:11:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:11:05 - End Time 2025-02-21 11:11:05 [2025-02-21 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524684', 'tblTempUsageDetail_20' ) start [2025-02-21 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524684', 'tblTempUsageDetail_20' ) end [2025-02-21 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524684', 'tblTempVendorCDR_20' ) start [2025-02-21 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524684', 'tblTempVendorCDR_20' ) end [2025-02-21 11:11:19] Production.INFO: ProcessCDR(1,14524684,1,1,2) [2025-02-21 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524684', 'tblTempUsageDetail_20' ) start [2025-02-21 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524684', 'tblTempUsageDetail_20' ) end [2025-02-21 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:11:25] Production.INFO: ==29033== Releasing lock... [2025-02-21 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:11:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-21 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:12:06 [end_date_ymd] => 2025-02-21 11:12:06 [RateCDR] => 1 ) [2025-02-21 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:12:06' and `end` < '2025-02-21 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:12:18] Production.INFO: count ==3979 [2025-02-21 11:12:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:12:06 - End Time 2025-02-21 11:12:06 [2025-02-21 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524689', 'tblTempUsageDetail_20' ) start [2025-02-21 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524689', 'tblTempUsageDetail_20' ) end [2025-02-21 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524689', 'tblTempVendorCDR_20' ) start [2025-02-21 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524689', 'tblTempVendorCDR_20' ) end [2025-02-21 11:12:20] Production.INFO: ProcessCDR(1,14524689,1,1,2) [2025-02-21 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524689', 'tblTempUsageDetail_20' ) start [2025-02-21 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524689', 'tblTempUsageDetail_20' ) end [2025-02-21 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:12:25] Production.INFO: ==29187== Releasing lock... [2025-02-21 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:12:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-21 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:13:05 [end_date_ymd] => 2025-02-21 11:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:13:05' and `end` < '2025-02-21 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-21 11:13:18] Production.INFO: count ==3982 [2025-02-21 11:13:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:13:05 - End Time 2025-02-21 11:13:05 [2025-02-21 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524694', 'tblTempUsageDetail_20' ) start [2025-02-21 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524694', 'tblTempUsageDetail_20' ) end [2025-02-21 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524694', 'tblTempVendorCDR_20' ) start [2025-02-21 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524694', 'tblTempVendorCDR_20' ) end [2025-02-21 11:13:19] Production.INFO: ProcessCDR(1,14524694,1,1,2) [2025-02-21 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524694', 'tblTempUsageDetail_20' ) start [2025-02-21 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524694', 'tblTempUsageDetail_20' ) end [2025-02-21 11:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:13:24] Production.INFO: ==29263== Releasing lock... [2025-02-21 11:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:13:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-21 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:14:05 [end_date_ymd] => 2025-02-21 11:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:14:05' and `end` < '2025-02-21 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-21 11:14:18] Production.INFO: count ==3989 [2025-02-21 11:14:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:14:05 - End Time 2025-02-21 11:14:05 [2025-02-21 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524699', 'tblTempUsageDetail_20' ) start [2025-02-21 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524699', 'tblTempUsageDetail_20' ) end [2025-02-21 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524699', 'tblTempVendorCDR_20' ) start [2025-02-21 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524699', 'tblTempVendorCDR_20' ) end [2025-02-21 11:14:20] Production.INFO: ProcessCDR(1,14524699,1,1,2) [2025-02-21 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524699', 'tblTempUsageDetail_20' ) start [2025-02-21 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524699', 'tblTempUsageDetail_20' ) end [2025-02-21 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:14:25] Production.INFO: ==29342== Releasing lock... [2025-02-21 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:14:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-21 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:15:05 [end_date_ymd] => 2025-02-21 11:15:05 [RateCDR] => 1 ) [2025-02-21 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:15:05' and `end` < '2025-02-21 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:15:18] Production.INFO: count ==3997 [2025-02-21 11:15:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:15:05 - End Time 2025-02-21 11:15:05 [2025-02-21 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524704', 'tblTempUsageDetail_20' ) start [2025-02-21 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524704', 'tblTempUsageDetail_20' ) end [2025-02-21 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524704', 'tblTempVendorCDR_20' ) start [2025-02-21 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524704', 'tblTempVendorCDR_20' ) end [2025-02-21 11:15:19] Production.INFO: ProcessCDR(1,14524704,1,1,2) [2025-02-21 11:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524704', 'tblTempUsageDetail_20' ) start [2025-02-21 11:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524704', 'tblTempUsageDetail_20' ) end [2025-02-21 11:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:15:24] Production.INFO: ==29495== Releasing lock... [2025-02-21 11:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:15:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-21 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:16:05 [end_date_ymd] => 2025-02-21 11:16:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:16:05' and `end` < '2025-02-21 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-21 11:16:18] Production.INFO: count ==4005 [2025-02-21 11:16:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:16:05 - End Time 2025-02-21 11:16:05 [2025-02-21 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524709', 'tblTempUsageDetail_20' ) start [2025-02-21 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524709', 'tblTempUsageDetail_20' ) end [2025-02-21 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524709', 'tblTempVendorCDR_20' ) start [2025-02-21 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524709', 'tblTempVendorCDR_20' ) end [2025-02-21 11:16:20] Production.INFO: ProcessCDR(1,14524709,1,1,2) [2025-02-21 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524709', 'tblTempUsageDetail_20' ) start [2025-02-21 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524709', 'tblTempUsageDetail_20' ) end [2025-02-21 11:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:16:25] Production.INFO: ==29572== Releasing lock... [2025-02-21 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:16:25] Production.INFO: 58 MB #Memory Used# [2025-02-21 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:17:06 [end_date_ymd] => 2025-02-21 11:17:06 [RateCDR] => 1 ) [2025-02-21 11: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-21 08:17:06' and `end` < '2025-02-21 11: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-21 11:17:18] Production.INFO: count ==4017 [2025-02-21 11:17:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:17:06 - End Time 2025-02-21 11:17:06 [2025-02-21 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524714', 'tblTempUsageDetail_20' ) start [2025-02-21 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524714', 'tblTempUsageDetail_20' ) end [2025-02-21 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524714', 'tblTempVendorCDR_20' ) start [2025-02-21 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524714', 'tblTempVendorCDR_20' ) end [2025-02-21 11:17:20] Production.INFO: ProcessCDR(1,14524714,1,1,2) [2025-02-21 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524714', 'tblTempUsageDetail_20' ) start [2025-02-21 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524714', 'tblTempUsageDetail_20' ) end [2025-02-21 11:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:17:24] Production.INFO: ==29642== Releasing lock... [2025-02-21 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:17:24] Production.INFO: 58 MB #Memory Used# [2025-02-21 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:18:05 [end_date_ymd] => 2025-02-21 11:18:05 [RateCDR] => 1 ) [2025-02-21 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:18:05' and `end` < '2025-02-21 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:18:18] Production.INFO: count ==4021 [2025-02-21 11:18:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:18:05 - End Time 2025-02-21 11:18:05 [2025-02-21 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524719', 'tblTempUsageDetail_20' ) start [2025-02-21 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524719', 'tblTempUsageDetail_20' ) end [2025-02-21 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524719', 'tblTempVendorCDR_20' ) start [2025-02-21 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524719', 'tblTempVendorCDR_20' ) end [2025-02-21 11:18:20] Production.INFO: ProcessCDR(1,14524719,1,1,2) [2025-02-21 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524719', 'tblTempUsageDetail_20' ) start [2025-02-21 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524719', 'tblTempUsageDetail_20' ) end [2025-02-21 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:18:23] Production.INFO: ==29714== Releasing lock... [2025-02-21 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:18:23] Production.INFO: 58.25 MB #Memory Used# [2025-02-21 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:19:05 [end_date_ymd] => 2025-02-21 11:19:05 [RateCDR] => 1 ) [2025-02-21 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:19:05' and `end` < '2025-02-21 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:19:19] Production.INFO: count ==4031 [2025-02-21 11:19:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:19:05 - End Time 2025-02-21 11:19:05 [2025-02-21 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524724', 'tblTempUsageDetail_20' ) start [2025-02-21 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524724', 'tblTempUsageDetail_20' ) end [2025-02-21 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524724', 'tblTempVendorCDR_20' ) start [2025-02-21 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524724', 'tblTempVendorCDR_20' ) end [2025-02-21 11:19:20] Production.INFO: ProcessCDR(1,14524724,1,1,2) [2025-02-21 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524724', 'tblTempUsageDetail_20' ) start [2025-02-21 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524724', 'tblTempUsageDetail_20' ) end [2025-02-21 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:19:25] Production.INFO: ==29790== Releasing lock... [2025-02-21 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:19:25] Production.INFO: 58 MB #Memory Used# [2025-02-21 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:20:06 [end_date_ymd] => 2025-02-21 11:20:06 [RateCDR] => 1 ) [2025-02-21 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:20:06' and `end` < '2025-02-21 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:20:18] Production.INFO: count ==4090 [2025-02-21 11:20:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:20:06 - End Time 2025-02-21 11:20:06 [2025-02-21 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524730', 'tblTempUsageDetail_20' ) start [2025-02-21 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524730', 'tblTempUsageDetail_20' ) end [2025-02-21 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524730', 'tblTempVendorCDR_20' ) start [2025-02-21 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524730', 'tblTempVendorCDR_20' ) end [2025-02-21 11:20:20] Production.INFO: ProcessCDR(1,14524730,1,1,2) [2025-02-21 11:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524730', 'tblTempUsageDetail_20' ) start [2025-02-21 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524730', 'tblTempUsageDetail_20' ) end [2025-02-21 11:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:20:25] Production.INFO: ==29864== Releasing lock... [2025-02-21 11:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:20:25] Production.INFO: 58.5 MB #Memory Used# [2025-02-21 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:21:05 [end_date_ymd] => 2025-02-21 11:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:21:05' and `end` < '2025-02-21 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-21 11:21:18] Production.INFO: count ==4117 [2025-02-21 11:21:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:21:05 - End Time 2025-02-21 11:21:05 [2025-02-21 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524735', 'tblTempUsageDetail_20' ) start [2025-02-21 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524735', 'tblTempUsageDetail_20' ) end [2025-02-21 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524735', 'tblTempVendorCDR_20' ) start [2025-02-21 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524735', 'tblTempVendorCDR_20' ) end [2025-02-21 11:21:20] Production.INFO: ProcessCDR(1,14524735,1,1,2) [2025-02-21 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524735', 'tblTempUsageDetail_20' ) start [2025-02-21 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524735', 'tblTempUsageDetail_20' ) end [2025-02-21 11:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:21:24] Production.INFO: ==29937== Releasing lock... [2025-02-21 11:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:21:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-21 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:22:05 [end_date_ymd] => 2025-02-21 11:22:05 [RateCDR] => 1 ) [2025-02-21 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:22:05' and `end` < '2025-02-21 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:22:17] Production.INFO: count ==4139 [2025-02-21 11:22:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:22:05 - End Time 2025-02-21 11:22:05 [2025-02-21 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524740', 'tblTempUsageDetail_20' ) start [2025-02-21 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524740', 'tblTempUsageDetail_20' ) end [2025-02-21 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524740', 'tblTempVendorCDR_20' ) start [2025-02-21 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524740', 'tblTempVendorCDR_20' ) end [2025-02-21 11:22:19] Production.INFO: ProcessCDR(1,14524740,1,1,2) [2025-02-21 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524740', 'tblTempUsageDetail_20' ) start [2025-02-21 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524740', 'tblTempUsageDetail_20' ) end [2025-02-21 11:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:22:24] Production.INFO: ==30008== Releasing lock... [2025-02-21 11:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:22:24] Production.INFO: 59 MB #Memory Used# [2025-02-21 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:23:05 [end_date_ymd] => 2025-02-21 11:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:23:05' and `end` < '2025-02-21 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-21 11:23:17] Production.INFO: count ==4172 [2025-02-21 11:23:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:23:05 - End Time 2025-02-21 11:23:05 [2025-02-21 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524745', 'tblTempUsageDetail_20' ) start [2025-02-21 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524745', 'tblTempUsageDetail_20' ) end [2025-02-21 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524745', 'tblTempVendorCDR_20' ) start [2025-02-21 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524745', 'tblTempVendorCDR_20' ) end [2025-02-21 11:23:19] Production.INFO: ProcessCDR(1,14524745,1,1,2) [2025-02-21 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524745', 'tblTempUsageDetail_20' ) start [2025-02-21 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524745', 'tblTempUsageDetail_20' ) end [2025-02-21 11:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:23:24] Production.INFO: ==30082== Releasing lock... [2025-02-21 11:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:23:24] Production.INFO: 59.25 MB #Memory Used# [2025-02-21 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:24:05 [end_date_ymd] => 2025-02-21 11:24:05 [RateCDR] => 1 ) [2025-02-21 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:24:05' and `end` < '2025-02-21 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:24:18] Production.INFO: count ==4163 [2025-02-21 11:24:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:24:05 - End Time 2025-02-21 11:24:05 [2025-02-21 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524750', 'tblTempUsageDetail_20' ) start [2025-02-21 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524750', 'tblTempUsageDetail_20' ) end [2025-02-21 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524750', 'tblTempVendorCDR_20' ) start [2025-02-21 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524750', 'tblTempVendorCDR_20' ) end [2025-02-21 11:24:20] Production.INFO: ProcessCDR(1,14524750,1,1,2) [2025-02-21 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524750', 'tblTempUsageDetail_20' ) start [2025-02-21 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524750', 'tblTempUsageDetail_20' ) end [2025-02-21 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:24:25] Production.INFO: ==30153== Releasing lock... [2025-02-21 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:24:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-21 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:25:05 [end_date_ymd] => 2025-02-21 11:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:25:05' and `end` < '2025-02-21 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-21 11:25:18] Production.INFO: count ==4171 [2025-02-21 11:25:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:25:05 - End Time 2025-02-21 11:25:05 [2025-02-21 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524755', 'tblTempUsageDetail_20' ) start [2025-02-21 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524755', 'tblTempUsageDetail_20' ) end [2025-02-21 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524755', 'tblTempVendorCDR_20' ) start [2025-02-21 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524755', 'tblTempVendorCDR_20' ) end [2025-02-21 11:25:19] Production.INFO: ProcessCDR(1,14524755,1,1,2) [2025-02-21 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524755', 'tblTempUsageDetail_20' ) start [2025-02-21 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524755', 'tblTempUsageDetail_20' ) end [2025-02-21 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:25:24] Production.INFO: ==30222== Releasing lock... [2025-02-21 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:25:24] Production.INFO: 59.25 MB #Memory Used# [2025-02-21 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:26:05 [end_date_ymd] => 2025-02-21 11:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:26:05' and `end` < '2025-02-21 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-21 11:26:19] Production.INFO: count ==4169 [2025-02-21 11:26:21] Production.ERROR: pbx CDR StartTime 2025-02-21 08:26:05 - End Time 2025-02-21 11:26:05 [2025-02-21 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524760', 'tblTempUsageDetail_20' ) start [2025-02-21 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524760', 'tblTempUsageDetail_20' ) end [2025-02-21 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524760', 'tblTempVendorCDR_20' ) start [2025-02-21 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524760', 'tblTempVendorCDR_20' ) end [2025-02-21 11:26:22] Production.INFO: ProcessCDR(1,14524760,1,1,2) [2025-02-21 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524760', 'tblTempUsageDetail_20' ) start [2025-02-21 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524760', 'tblTempUsageDetail_20' ) end [2025-02-21 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:26:26] Production.INFO: ==30297== Releasing lock... [2025-02-21 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:26:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-21 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:27:05 [end_date_ymd] => 2025-02-21 11:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:27:05' and `end` < '2025-02-21 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-21 11:27:18] Production.INFO: count ==4179 [2025-02-21 11:27:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:27:05 - End Time 2025-02-21 11:27:05 [2025-02-21 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524765', 'tblTempUsageDetail_20' ) start [2025-02-21 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524765', 'tblTempUsageDetail_20' ) end [2025-02-21 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524765', 'tblTempVendorCDR_20' ) start [2025-02-21 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524765', 'tblTempVendorCDR_20' ) end [2025-02-21 11:27:20] Production.INFO: ProcessCDR(1,14524765,1,1,2) [2025-02-21 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524765', 'tblTempUsageDetail_20' ) start [2025-02-21 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524765', 'tblTempUsageDetail_20' ) end [2025-02-21 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:27:26] Production.INFO: ==30414== Releasing lock... [2025-02-21 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:27:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-21 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:28:05 [end_date_ymd] => 2025-02-21 11:28:05 [RateCDR] => 1 ) [2025-02-21 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:28:05' and `end` < '2025-02-21 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:28:18] Production.INFO: count ==4207 [2025-02-21 11:28:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:28:05 - End Time 2025-02-21 11:28:05 [2025-02-21 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524770', 'tblTempUsageDetail_20' ) start [2025-02-21 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524770', 'tblTempUsageDetail_20' ) end [2025-02-21 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524770', 'tblTempVendorCDR_20' ) start [2025-02-21 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524770', 'tblTempVendorCDR_20' ) end [2025-02-21 11:28:20] Production.INFO: ProcessCDR(1,14524770,1,1,2) [2025-02-21 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524770', 'tblTempUsageDetail_20' ) start [2025-02-21 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524770', 'tblTempUsageDetail_20' ) end [2025-02-21 11:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:28:25] Production.INFO: ==30485== Releasing lock... [2025-02-21 11:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:28:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-21 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:29:05 [end_date_ymd] => 2025-02-21 11:29:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:29:05' and `end` < '2025-02-21 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-21 11:29:18] Production.INFO: count ==4223 [2025-02-21 11:29:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:29:05 - End Time 2025-02-21 11:29:05 [2025-02-21 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524775', 'tblTempUsageDetail_20' ) start [2025-02-21 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524775', 'tblTempUsageDetail_20' ) end [2025-02-21 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524775', 'tblTempVendorCDR_20' ) start [2025-02-21 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524775', 'tblTempVendorCDR_20' ) end [2025-02-21 11:29:20] Production.INFO: ProcessCDR(1,14524775,1,1,2) [2025-02-21 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524775', 'tblTempUsageDetail_20' ) start [2025-02-21 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524775', 'tblTempUsageDetail_20' ) end [2025-02-21 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:29:25] Production.INFO: ==30557== Releasing lock... [2025-02-21 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:29:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-21 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:30:06 [end_date_ymd] => 2025-02-21 11:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 08:30:06' and `end` < '2025-02-21 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-21 11:30:18] Production.INFO: count ==4240 [2025-02-21 11:30:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:30:06 - End Time 2025-02-21 11:30:06 [2025-02-21 11:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524781', 'tblTempUsageDetail_20' ) start [2025-02-21 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524781', 'tblTempUsageDetail_20' ) end [2025-02-21 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524781', 'tblTempVendorCDR_20' ) start [2025-02-21 11:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524781', 'tblTempVendorCDR_20' ) end [2025-02-21 11:30:20] Production.INFO: ProcessCDR(1,14524781,1,1,2) [2025-02-21 11:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524781', 'tblTempUsageDetail_20' ) start [2025-02-21 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524781', 'tblTempUsageDetail_20' ) end [2025-02-21 11:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:30:25] Production.INFO: ==30629== Releasing lock... [2025-02-21 11:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:30:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-21 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:31:05 [end_date_ymd] => 2025-02-21 11:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:31:05' and `end` < '2025-02-21 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-21 11:31:18] Production.INFO: count ==4318 [2025-02-21 11:31:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:31:05 - End Time 2025-02-21 11:31:05 [2025-02-21 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524786', 'tblTempUsageDetail_20' ) start [2025-02-21 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524786', 'tblTempUsageDetail_20' ) end [2025-02-21 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524786', 'tblTempVendorCDR_20' ) start [2025-02-21 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524786', 'tblTempVendorCDR_20' ) end [2025-02-21 11:31:20] Production.INFO: ProcessCDR(1,14524786,1,1,2) [2025-02-21 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524786', 'tblTempUsageDetail_20' ) start [2025-02-21 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524786', 'tblTempUsageDetail_20' ) end [2025-02-21 11:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:31:25] Production.INFO: ==30705== Releasing lock... [2025-02-21 11:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:31:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-21 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:32:06 [end_date_ymd] => 2025-02-21 11:32:06 [RateCDR] => 1 ) [2025-02-21 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:32:06' and `end` < '2025-02-21 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:32:18] Production.INFO: count ==4347 [2025-02-21 11:32:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:32:06 - End Time 2025-02-21 11:32:06 [2025-02-21 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524791', 'tblTempUsageDetail_20' ) start [2025-02-21 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524791', 'tblTempUsageDetail_20' ) end [2025-02-21 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524791', 'tblTempVendorCDR_20' ) start [2025-02-21 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524791', 'tblTempVendorCDR_20' ) end [2025-02-21 11:32:20] Production.INFO: ProcessCDR(1,14524791,1,1,2) [2025-02-21 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524791', 'tblTempUsageDetail_20' ) start [2025-02-21 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524791', 'tblTempUsageDetail_20' ) end [2025-02-21 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:32:26] Production.INFO: ==30778== Releasing lock... [2025-02-21 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:32:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:33:05 [end_date_ymd] => 2025-02-21 11:33:05 [RateCDR] => 1 ) [2025-02-21 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:33:05' and `end` < '2025-02-21 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:33:18] Production.INFO: count ==4354 [2025-02-21 11:33:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:33:05 - End Time 2025-02-21 11:33:05 [2025-02-21 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524796', 'tblTempUsageDetail_20' ) start [2025-02-21 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524796', 'tblTempUsageDetail_20' ) end [2025-02-21 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524796', 'tblTempVendorCDR_20' ) start [2025-02-21 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524796', 'tblTempVendorCDR_20' ) end [2025-02-21 11:33:20] Production.INFO: ProcessCDR(1,14524796,1,1,2) [2025-02-21 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524796', 'tblTempUsageDetail_20' ) start [2025-02-21 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524796', 'tblTempUsageDetail_20' ) end [2025-02-21 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:33:24] Production.INFO: ==30854== Releasing lock... [2025-02-21 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:33:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:34:05 [end_date_ymd] => 2025-02-21 11:34:05 [RateCDR] => 1 ) [2025-02-21 11:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:34:05' and `end` < '2025-02-21 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-21 11:34:19] Production.INFO: count ==4363 [2025-02-21 11:34:21] Production.ERROR: pbx CDR StartTime 2025-02-21 08:34:05 - End Time 2025-02-21 11:34:05 [2025-02-21 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524801', 'tblTempUsageDetail_20' ) start [2025-02-21 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524801', 'tblTempUsageDetail_20' ) end [2025-02-21 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524801', 'tblTempVendorCDR_20' ) start [2025-02-21 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524801', 'tblTempVendorCDR_20' ) end [2025-02-21 11:34:21] Production.INFO: ProcessCDR(1,14524801,1,1,2) [2025-02-21 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524801', 'tblTempUsageDetail_20' ) start [2025-02-21 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524801', 'tblTempUsageDetail_20' ) end [2025-02-21 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:34:26] Production.INFO: ==30925== Releasing lock... [2025-02-21 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:34:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:35:05 [end_date_ymd] => 2025-02-21 11:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:35:05' and `end` < '2025-02-21 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-21 11:35:18] Production.INFO: count ==4367 [2025-02-21 11:35:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:35:05 - End Time 2025-02-21 11:35:05 [2025-02-21 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524806', 'tblTempUsageDetail_20' ) start [2025-02-21 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524806', 'tblTempUsageDetail_20' ) end [2025-02-21 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524806', 'tblTempVendorCDR_20' ) start [2025-02-21 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524806', 'tblTempVendorCDR_20' ) end [2025-02-21 11:35:20] Production.INFO: ProcessCDR(1,14524806,1,1,2) [2025-02-21 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524806', 'tblTempUsageDetail_20' ) start [2025-02-21 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524806', 'tblTempUsageDetail_20' ) end [2025-02-21 11:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:35:24] Production.INFO: ==30997== Releasing lock... [2025-02-21 11:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:35:24] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:36:06 [end_date_ymd] => 2025-02-21 11:36:06 [RateCDR] => 1 ) [2025-02-21 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:36:06' and `end` < '2025-02-21 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:36:18] Production.INFO: count ==4380 [2025-02-21 11:36:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:36:06 - End Time 2025-02-21 11:36:06 [2025-02-21 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524811', 'tblTempUsageDetail_20' ) start [2025-02-21 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524811', 'tblTempUsageDetail_20' ) end [2025-02-21 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524811', 'tblTempVendorCDR_20' ) start [2025-02-21 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524811', 'tblTempVendorCDR_20' ) end [2025-02-21 11:36:20] Production.INFO: ProcessCDR(1,14524811,1,1,2) [2025-02-21 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524811', 'tblTempUsageDetail_20' ) start [2025-02-21 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524811', 'tblTempUsageDetail_20' ) end [2025-02-21 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:36:25] Production.INFO: ==31069== Releasing lock... [2025-02-21 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:36:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:37:05 [end_date_ymd] => 2025-02-21 11:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:37:05' and `end` < '2025-02-21 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-21 11:37:18] Production.INFO: count ==4384 [2025-02-21 11:37:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:37:05 - End Time 2025-02-21 11:37:05 [2025-02-21 11:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524816', 'tblTempUsageDetail_20' ) start [2025-02-21 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524816', 'tblTempUsageDetail_20' ) end [2025-02-21 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524816', 'tblTempVendorCDR_20' ) start [2025-02-21 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524816', 'tblTempVendorCDR_20' ) end [2025-02-21 11:37:20] Production.INFO: ProcessCDR(1,14524816,1,1,2) [2025-02-21 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524816', 'tblTempUsageDetail_20' ) start [2025-02-21 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524816', 'tblTempUsageDetail_20' ) end [2025-02-21 11:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:37:24] Production.INFO: ==31138== Releasing lock... [2025-02-21 11:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:37:24] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:38:05 [end_date_ymd] => 2025-02-21 11:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:38:05' and `end` < '2025-02-21 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-21 11:38:18] Production.INFO: count ==4394 [2025-02-21 11:38:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:38:05 - End Time 2025-02-21 11:38:05 [2025-02-21 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524821', 'tblTempUsageDetail_20' ) start [2025-02-21 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524821', 'tblTempUsageDetail_20' ) end [2025-02-21 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524821', 'tblTempVendorCDR_20' ) start [2025-02-21 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524821', 'tblTempVendorCDR_20' ) end [2025-02-21 11:38:20] Production.INFO: ProcessCDR(1,14524821,1,1,2) [2025-02-21 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524821', 'tblTempUsageDetail_20' ) start [2025-02-21 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524821', 'tblTempUsageDetail_20' ) end [2025-02-21 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:38:25] Production.INFO: ==31212== Releasing lock... [2025-02-21 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:38:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:39:05 [end_date_ymd] => 2025-02-21 11:39:05 [RateCDR] => 1 ) [2025-02-21 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:39:05' and `end` < '2025-02-21 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:39:18] Production.INFO: count ==4420 [2025-02-21 11:39:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:39:05 - End Time 2025-02-21 11:39:05 [2025-02-21 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524826', 'tblTempUsageDetail_20' ) start [2025-02-21 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524826', 'tblTempUsageDetail_20' ) end [2025-02-21 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524826', 'tblTempVendorCDR_20' ) start [2025-02-21 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524826', 'tblTempVendorCDR_20' ) end [2025-02-21 11:39:20] Production.INFO: ProcessCDR(1,14524826,1,1,2) [2025-02-21 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524826', 'tblTempUsageDetail_20' ) start [2025-02-21 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524826', 'tblTempUsageDetail_20' ) end [2025-02-21 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:39:25] Production.INFO: ==31282== Releasing lock... [2025-02-21 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:39:25] Production.INFO: 61 MB #Memory Used# [2025-02-21 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:40:06 [end_date_ymd] => 2025-02-21 11:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 08:40:06' and `end` < '2025-02-21 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-21 11:40:19] Production.INFO: count ==4435 [2025-02-21 11:40:21] Production.ERROR: pbx CDR StartTime 2025-02-21 08:40:06 - End Time 2025-02-21 11:40:06 [2025-02-21 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524832', 'tblTempUsageDetail_20' ) start [2025-02-21 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524832', 'tblTempUsageDetail_20' ) end [2025-02-21 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524832', 'tblTempVendorCDR_20' ) start [2025-02-21 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524832', 'tblTempVendorCDR_20' ) end [2025-02-21 11:40:21] Production.INFO: ProcessCDR(1,14524832,1,1,2) [2025-02-21 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524832', 'tblTempUsageDetail_20' ) start [2025-02-21 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524832', 'tblTempUsageDetail_20' ) end [2025-02-21 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:40:26] Production.INFO: ==31362== Releasing lock... [2025-02-21 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:40:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-21 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:41:04 [end_date_ymd] => 2025-02-21 11:41:04 [RateCDR] => 1 ) [2025-02-21 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:41:04' and `end` < '2025-02-21 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:41:17] Production.INFO: count ==4530 [2025-02-21 11:41:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:41:04 - End Time 2025-02-21 11:41:04 [2025-02-21 11:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524833', 'tblTempUsageDetail_20' ) start [2025-02-21 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524833', 'tblTempUsageDetail_20' ) end [2025-02-21 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524833', 'tblTempVendorCDR_20' ) start [2025-02-21 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524833', 'tblTempVendorCDR_20' ) end [2025-02-21 11:41:19] Production.INFO: ProcessCDR(1,14524833,1,1,2) [2025-02-21 11:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524833', 'tblTempUsageDetail_20' ) start [2025-02-21 11:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524833', 'tblTempUsageDetail_20' ) end [2025-02-21 11:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:41:24] Production.INFO: ==31437== Releasing lock... [2025-02-21 11:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:41:24] Production.INFO: 62 MB #Memory Used# [2025-02-21 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:42:05 [end_date_ymd] => 2025-02-21 11:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:42:05' and `end` < '2025-02-21 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-21 11:42:18] Production.INFO: count ==4552 [2025-02-21 11:42:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:42:05 - End Time 2025-02-21 11:42:05 [2025-02-21 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524842', 'tblTempUsageDetail_20' ) start [2025-02-21 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524842', 'tblTempUsageDetail_20' ) end [2025-02-21 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524842', 'tblTempVendorCDR_20' ) start [2025-02-21 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524842', 'tblTempVendorCDR_20' ) end [2025-02-21 11:42:21] Production.INFO: ProcessCDR(1,14524842,1,1,2) [2025-02-21 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524842', 'tblTempUsageDetail_20' ) start [2025-02-21 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524842', 'tblTempUsageDetail_20' ) end [2025-02-21 11:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:42:25] Production.INFO: ==31547== Releasing lock... [2025-02-21 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:42:25] Production.INFO: 62 MB #Memory Used# [2025-02-21 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:43:05 [end_date_ymd] => 2025-02-21 11:43:05 [RateCDR] => 1 ) [2025-02-21 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:43:05' and `end` < '2025-02-21 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:43:18] Production.INFO: count ==4572 [2025-02-21 11:43:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:43:05 - End Time 2025-02-21 11:43:05 [2025-02-21 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524847', 'tblTempUsageDetail_20' ) start [2025-02-21 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524847', 'tblTempUsageDetail_20' ) end [2025-02-21 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524847', 'tblTempVendorCDR_20' ) start [2025-02-21 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524847', 'tblTempVendorCDR_20' ) end [2025-02-21 11:43:20] Production.INFO: ProcessCDR(1,14524847,1,1,2) [2025-02-21 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524847', 'tblTempUsageDetail_20' ) start [2025-02-21 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524847', 'tblTempUsageDetail_20' ) end [2025-02-21 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:43:25] Production.INFO: ==31617== Releasing lock... [2025-02-21 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:43:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-21 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:44:05 [end_date_ymd] => 2025-02-21 11:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:44:05' and `end` < '2025-02-21 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-21 11:44:18] Production.INFO: count ==4633 [2025-02-21 11:44:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:44:05 - End Time 2025-02-21 11:44:05 [2025-02-21 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524852', 'tblTempUsageDetail_20' ) start [2025-02-21 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524852', 'tblTempUsageDetail_20' ) end [2025-02-21 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524852', 'tblTempVendorCDR_20' ) start [2025-02-21 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524852', 'tblTempVendorCDR_20' ) end [2025-02-21 11:44:20] Production.INFO: ProcessCDR(1,14524852,1,1,2) [2025-02-21 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524852', 'tblTempUsageDetail_20' ) start [2025-02-21 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524852', 'tblTempUsageDetail_20' ) end [2025-02-21 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:44:25] Production.INFO: ==31687== Releasing lock... [2025-02-21 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:44:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-21 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:45:05 [end_date_ymd] => 2025-02-21 11:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:45:05' and `end` < '2025-02-21 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-21 11:45:18] Production.INFO: count ==4627 [2025-02-21 11:45:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:45:05 - End Time 2025-02-21 11:45:05 [2025-02-21 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524857', 'tblTempUsageDetail_20' ) start [2025-02-21 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524857', 'tblTempUsageDetail_20' ) end [2025-02-21 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524857', 'tblTempVendorCDR_20' ) start [2025-02-21 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524857', 'tblTempVendorCDR_20' ) end [2025-02-21 11:45:20] Production.INFO: ProcessCDR(1,14524857,1,1,2) [2025-02-21 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524857', 'tblTempUsageDetail_20' ) start [2025-02-21 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524857', 'tblTempUsageDetail_20' ) end [2025-02-21 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:45:25] Production.INFO: ==31758== Releasing lock... [2025-02-21 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:45:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-21 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:46:05 [end_date_ymd] => 2025-02-21 11:46:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:46:05' and `end` < '2025-02-21 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-21 11:46:18] Production.INFO: count ==4643 [2025-02-21 11:46:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:46:05 - End Time 2025-02-21 11:46:05 [2025-02-21 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524862', 'tblTempUsageDetail_20' ) start [2025-02-21 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524862', 'tblTempUsageDetail_20' ) end [2025-02-21 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524862', 'tblTempVendorCDR_20' ) start [2025-02-21 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524862', 'tblTempVendorCDR_20' ) end [2025-02-21 11:46:20] Production.INFO: ProcessCDR(1,14524862,1,1,2) [2025-02-21 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524862', 'tblTempUsageDetail_20' ) start [2025-02-21 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524862', 'tblTempUsageDetail_20' ) end [2025-02-21 11:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:46:25] Production.INFO: ==31830== Releasing lock... [2025-02-21 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:46:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-21 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:47:05 [end_date_ymd] => 2025-02-21 11:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:47:05' and `end` < '2025-02-21 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-21 11:47:18] Production.INFO: count ==4674 [2025-02-21 11:47:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:47:05 - End Time 2025-02-21 11:47:05 [2025-02-21 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524867', 'tblTempUsageDetail_20' ) start [2025-02-21 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524867', 'tblTempUsageDetail_20' ) end [2025-02-21 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524867', 'tblTempVendorCDR_20' ) start [2025-02-21 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524867', 'tblTempVendorCDR_20' ) end [2025-02-21 11:47:20] Production.INFO: ProcessCDR(1,14524867,1,1,2) [2025-02-21 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524867', 'tblTempUsageDetail_20' ) start [2025-02-21 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524867', 'tblTempUsageDetail_20' ) end [2025-02-21 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:47:25] Production.INFO: ==31902== Releasing lock... [2025-02-21 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:47:25] Production.INFO: 63 MB #Memory Used# [2025-02-21 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:48:05 [end_date_ymd] => 2025-02-21 11:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:48:05' and `end` < '2025-02-21 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-21 11:48:18] Production.INFO: count ==4670 [2025-02-21 11:48:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:48:05 - End Time 2025-02-21 11:48:05 [2025-02-21 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524872', 'tblTempUsageDetail_20' ) start [2025-02-21 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524872', 'tblTempUsageDetail_20' ) end [2025-02-21 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524872', 'tblTempVendorCDR_20' ) start [2025-02-21 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524872', 'tblTempVendorCDR_20' ) end [2025-02-21 11:48:20] Production.INFO: ProcessCDR(1,14524872,1,1,2) [2025-02-21 11:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524872', 'tblTempUsageDetail_20' ) start [2025-02-21 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524872', 'tblTempUsageDetail_20' ) end [2025-02-21 11:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:48:25] Production.INFO: ==31972== Releasing lock... [2025-02-21 11:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:48:25] Production.INFO: 63 MB #Memory Used# [2025-02-21 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:49:05 [end_date_ymd] => 2025-02-21 11:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:49:05' and `end` < '2025-02-21 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-21 11:49:17] Production.INFO: count ==4668 [2025-02-21 11:49:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:49:05 - End Time 2025-02-21 11:49:05 [2025-02-21 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524877', 'tblTempUsageDetail_20' ) start [2025-02-21 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524877', 'tblTempUsageDetail_20' ) end [2025-02-21 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524877', 'tblTempVendorCDR_20' ) start [2025-02-21 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524877', 'tblTempVendorCDR_20' ) end [2025-02-21 11:49:19] Production.INFO: ProcessCDR(1,14524877,1,1,2) [2025-02-21 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524877', 'tblTempUsageDetail_20' ) start [2025-02-21 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524877', 'tblTempUsageDetail_20' ) end [2025-02-21 11:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:49:24] Production.INFO: ==32044== Releasing lock... [2025-02-21 11:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:49:24] Production.INFO: 63 MB #Memory Used# [2025-02-21 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:50:06 [end_date_ymd] => 2025-02-21 11:50:06 [RateCDR] => 1 ) [2025-02-21 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:50:06' and `end` < '2025-02-21 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:50:18] Production.INFO: count ==4651 [2025-02-21 11:50:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:50:06 - End Time 2025-02-21 11:50:06 [2025-02-21 11:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524883', 'tblTempUsageDetail_20' ) start [2025-02-21 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524883', 'tblTempUsageDetail_20' ) end [2025-02-21 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524883', 'tblTempVendorCDR_20' ) start [2025-02-21 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524883', 'tblTempVendorCDR_20' ) end [2025-02-21 11:50:20] Production.INFO: ProcessCDR(1,14524883,1,1,2) [2025-02-21 11:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524883', 'tblTempUsageDetail_20' ) start [2025-02-21 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524883', 'tblTempUsageDetail_20' ) end [2025-02-21 11:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:50:25] Production.INFO: ==32117== Releasing lock... [2025-02-21 11:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:50:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-21 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:51:05 [end_date_ymd] => 2025-02-21 11:51:05 [RateCDR] => 1 ) [2025-02-21 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:51:05' and `end` < '2025-02-21 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-21 11:51:17] Production.INFO: count ==4720 [2025-02-21 11:51:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:51:05 - End Time 2025-02-21 11:51:05 [2025-02-21 11:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524888', 'tblTempUsageDetail_20' ) start [2025-02-21 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524888', 'tblTempUsageDetail_20' ) end [2025-02-21 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524888', 'tblTempVendorCDR_20' ) start [2025-02-21 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524888', 'tblTempVendorCDR_20' ) end [2025-02-21 11:51:20] Production.INFO: ProcessCDR(1,14524888,1,1,2) [2025-02-21 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524888', 'tblTempUsageDetail_20' ) start [2025-02-21 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524888', 'tblTempUsageDetail_20' ) end [2025-02-21 11:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:51:25] Production.INFO: ==32193== Releasing lock... [2025-02-21 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:51:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-21 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:52:06 [end_date_ymd] => 2025-02-21 11:52:06 [RateCDR] => 1 ) [2025-02-21 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:52:06' and `end` < '2025-02-21 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:52:18] Production.INFO: count ==4726 [2025-02-21 11:52:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:52:06 - End Time 2025-02-21 11:52:06 [2025-02-21 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524893', 'tblTempUsageDetail_20' ) start [2025-02-21 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524893', 'tblTempUsageDetail_20' ) end [2025-02-21 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524893', 'tblTempVendorCDR_20' ) start [2025-02-21 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524893', 'tblTempVendorCDR_20' ) end [2025-02-21 11:52:20] Production.INFO: ProcessCDR(1,14524893,1,1,2) [2025-02-21 11:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524893', 'tblTempUsageDetail_20' ) start [2025-02-21 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524893', 'tblTempUsageDetail_20' ) end [2025-02-21 11:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:52:25] Production.INFO: ==32274== Releasing lock... [2025-02-21 11:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:52:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-21 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:53:05 [end_date_ymd] => 2025-02-21 11:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:53:05' and `end` < '2025-02-21 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-21 11:53:19] Production.INFO: count ==4708 [2025-02-21 11:53:21] Production.ERROR: pbx CDR StartTime 2025-02-21 08:53:05 - End Time 2025-02-21 11:53:05 [2025-02-21 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524898', 'tblTempUsageDetail_20' ) start [2025-02-21 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524898', 'tblTempUsageDetail_20' ) end [2025-02-21 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524898', 'tblTempVendorCDR_20' ) start [2025-02-21 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524898', 'tblTempVendorCDR_20' ) end [2025-02-21 11:53:21] Production.INFO: ProcessCDR(1,14524898,1,1,2) [2025-02-21 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524898', 'tblTempUsageDetail_20' ) start [2025-02-21 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524898', 'tblTempUsageDetail_20' ) end [2025-02-21 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:53:26] Production.INFO: ==32348== Releasing lock... [2025-02-21 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:53:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-21 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:54:05 [end_date_ymd] => 2025-02-21 11:54:05 [RateCDR] => 1 ) [2025-02-21 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:54:05' and `end` < '2025-02-21 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:54:17] Production.INFO: count ==4712 [2025-02-21 11:54:19] Production.ERROR: pbx CDR StartTime 2025-02-21 08:54:05 - End Time 2025-02-21 11:54:05 [2025-02-21 11:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524903', 'tblTempUsageDetail_20' ) start [2025-02-21 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524903', 'tblTempUsageDetail_20' ) end [2025-02-21 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524903', 'tblTempVendorCDR_20' ) start [2025-02-21 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524903', 'tblTempVendorCDR_20' ) end [2025-02-21 11:54:20] Production.INFO: ProcessCDR(1,14524903,1,1,2) [2025-02-21 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524903', 'tblTempUsageDetail_20' ) start [2025-02-21 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524903', 'tblTempUsageDetail_20' ) end [2025-02-21 11:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:54:25] Production.INFO: ==32417== Releasing lock... [2025-02-21 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:54:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-21 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:55:06 [end_date_ymd] => 2025-02-21 11:55:06 [RateCDR] => 1 ) [2025-02-21 11: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-21 08:55:06' and `end` < '2025-02-21 11: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-21 11:55:19] Production.INFO: count ==4732 [2025-02-21 11:55:21] Production.ERROR: pbx CDR StartTime 2025-02-21 08:55:06 - End Time 2025-02-21 11:55:06 [2025-02-21 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524908', 'tblTempUsageDetail_20' ) start [2025-02-21 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524908', 'tblTempUsageDetail_20' ) end [2025-02-21 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524908', 'tblTempVendorCDR_20' ) start [2025-02-21 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524908', 'tblTempVendorCDR_20' ) end [2025-02-21 11:55:21] Production.INFO: ProcessCDR(1,14524908,1,1,2) [2025-02-21 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524908', 'tblTempUsageDetail_20' ) start [2025-02-21 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524908', 'tblTempUsageDetail_20' ) end [2025-02-21 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:55:27] Production.INFO: ==32487== Releasing lock... [2025-02-21 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:55:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-21 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:56:05 [end_date_ymd] => 2025-02-21 11:56:05 [RateCDR] => 1 ) [2025-02-21 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 08:56:05' and `end` < '2025-02-21 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 11:56:18] Production.INFO: count ==4750 [2025-02-21 11:56:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:56:05 - End Time 2025-02-21 11:56:05 [2025-02-21 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524913', 'tblTempUsageDetail_20' ) start [2025-02-21 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524913', 'tblTempUsageDetail_20' ) end [2025-02-21 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524913', 'tblTempVendorCDR_20' ) start [2025-02-21 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524913', 'tblTempVendorCDR_20' ) end [2025-02-21 11:56:20] Production.INFO: ProcessCDR(1,14524913,1,1,2) [2025-02-21 11:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524913', 'tblTempUsageDetail_20' ) start [2025-02-21 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524913', 'tblTempUsageDetail_20' ) end [2025-02-21 11:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:56:25] Production.INFO: ==32559== Releasing lock... [2025-02-21 11:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:56:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-21 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:57:06 [end_date_ymd] => 2025-02-21 11:57:06 [RateCDR] => 1 ) [2025-02-21 11: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-21 08:57:06' and `end` < '2025-02-21 11: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-21 11:57:19] Production.INFO: count ==4752 [2025-02-21 11:57:21] Production.ERROR: pbx CDR StartTime 2025-02-21 08:57:06 - End Time 2025-02-21 11:57:06 [2025-02-21 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524918', 'tblTempUsageDetail_20' ) start [2025-02-21 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524918', 'tblTempUsageDetail_20' ) end [2025-02-21 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524918', 'tblTempVendorCDR_20' ) start [2025-02-21 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524918', 'tblTempVendorCDR_20' ) end [2025-02-21 11:57:21] Production.INFO: ProcessCDR(1,14524918,1,1,2) [2025-02-21 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524918', 'tblTempUsageDetail_20' ) start [2025-02-21 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524918', 'tblTempUsageDetail_20' ) end [2025-02-21 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:57:26] Production.INFO: ==32630== Releasing lock... [2025-02-21 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:57:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-21 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:58:05 [end_date_ymd] => 2025-02-21 11:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:58:05' and `end` < '2025-02-21 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-21 11:58:18] Production.INFO: count ==4777 [2025-02-21 11:58:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:58:05 - End Time 2025-02-21 11:58:05 [2025-02-21 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524923', 'tblTempUsageDetail_20' ) start [2025-02-21 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524923', 'tblTempUsageDetail_20' ) end [2025-02-21 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524923', 'tblTempVendorCDR_20' ) start [2025-02-21 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524923', 'tblTempVendorCDR_20' ) end [2025-02-21 11:58:20] Production.INFO: ProcessCDR(1,14524923,1,1,2) [2025-02-21 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524923', 'tblTempUsageDetail_20' ) start [2025-02-21 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524923', 'tblTempUsageDetail_20' ) end [2025-02-21 11:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:58:25] Production.INFO: ==32740== Releasing lock... [2025-02-21 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:58:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-21 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 08:59:05 [end_date_ymd] => 2025-02-21 11:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 08:59:05' and `end` < '2025-02-21 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-21 11:59:18] Production.INFO: count ==4816 [2025-02-21 11:59:20] Production.ERROR: pbx CDR StartTime 2025-02-21 08:59:05 - End Time 2025-02-21 11:59:05 [2025-02-21 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524928', 'tblTempUsageDetail_20' ) start [2025-02-21 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524928', 'tblTempUsageDetail_20' ) end [2025-02-21 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524928', 'tblTempVendorCDR_20' ) start [2025-02-21 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524928', 'tblTempVendorCDR_20' ) end [2025-02-21 11:59:20] Production.INFO: ProcessCDR(1,14524928,1,1,2) [2025-02-21 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524928', 'tblTempUsageDetail_20' ) start [2025-02-21 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524928', 'tblTempUsageDetail_20' ) end [2025-02-21 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 11:59:26] Production.INFO: ==362== Releasing lock... [2025-02-21 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 11:59:26] Production.INFO: 64 MB #Memory Used# [2025-02-21 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:00:06 [end_date_ymd] => 2025-02-21 12:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 09:00:06' and `end` < '2025-02-21 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-21 12:00:19] Production.INFO: count ==4815 [2025-02-21 12:00:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:00:06 - End Time 2025-02-21 12:00:06 [2025-02-21 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524933', 'tblTempUsageDetail_20' ) start [2025-02-21 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524933', 'tblTempUsageDetail_20' ) end [2025-02-21 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524933', 'tblTempVendorCDR_20' ) start [2025-02-21 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524933', 'tblTempVendorCDR_20' ) end [2025-02-21 12:00:21] Production.INFO: ProcessCDR(1,14524933,1,1,2) [2025-02-21 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524933', 'tblTempUsageDetail_20' ) start [2025-02-21 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524933', 'tblTempUsageDetail_20' ) end [2025-02-21 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:00:27] Production.INFO: ==436== Releasing lock... [2025-02-21 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:00:27] Production.INFO: 64 MB #Memory Used# [2025-02-21 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:01:06 [end_date_ymd] => 2025-02-21 12:01:06 [RateCDR] => 1 ) [2025-02-21 12: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-21 09:01:06' and `end` < '2025-02-21 12: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-21 12:01:19] Production.INFO: count ==4908 [2025-02-21 12:01:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:01:06 - End Time 2025-02-21 12:01:06 [2025-02-21 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524939', 'tblTempUsageDetail_20' ) start [2025-02-21 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524939', 'tblTempUsageDetail_20' ) end [2025-02-21 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524939', 'tblTempVendorCDR_20' ) start [2025-02-21 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524939', 'tblTempVendorCDR_20' ) end [2025-02-21 12:01:21] Production.INFO: ProcessCDR(1,14524939,1,1,2) [2025-02-21 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524939', 'tblTempUsageDetail_20' ) start [2025-02-21 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524939', 'tblTempUsageDetail_20' ) end [2025-02-21 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:01:26] Production.INFO: ==527== Releasing lock... [2025-02-21 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:01:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-21 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:02:06 [end_date_ymd] => 2025-02-21 12:02:06 [RateCDR] => 1 ) [2025-02-21 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:02:06' and `end` < '2025-02-21 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:02:18] Production.INFO: count ==4934 [2025-02-21 12:02:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:02:06 - End Time 2025-02-21 12:02:06 [2025-02-21 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524944', 'tblTempUsageDetail_20' ) start [2025-02-21 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524944', 'tblTempUsageDetail_20' ) end [2025-02-21 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524944', 'tblTempVendorCDR_20' ) start [2025-02-21 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524944', 'tblTempVendorCDR_20' ) end [2025-02-21 12:02:21] Production.INFO: ProcessCDR(1,14524944,1,1,2) [2025-02-21 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524944', 'tblTempUsageDetail_20' ) start [2025-02-21 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524944', 'tblTempUsageDetail_20' ) end [2025-02-21 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:02:26] Production.INFO: ==602== Releasing lock... [2025-02-21 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:02:26] Production.INFO: 65 MB #Memory Used# [2025-02-21 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:03:05 [end_date_ymd] => 2025-02-21 12:03:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:03:05' and `end` < '2025-02-21 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-21 12:03:18] Production.INFO: count ==4942 [2025-02-21 12:03:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:03:05 - End Time 2025-02-21 12:03:05 [2025-02-21 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524949', 'tblTempUsageDetail_20' ) start [2025-02-21 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524949', 'tblTempUsageDetail_20' ) end [2025-02-21 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524949', 'tblTempVendorCDR_20' ) start [2025-02-21 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524949', 'tblTempVendorCDR_20' ) end [2025-02-21 12:03:21] Production.INFO: ProcessCDR(1,14524949,1,1,2) [2025-02-21 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524949', 'tblTempUsageDetail_20' ) start [2025-02-21 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524949', 'tblTempUsageDetail_20' ) end [2025-02-21 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:03:26] Production.INFO: ==699== Releasing lock... [2025-02-21 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:03:26] Production.INFO: 65 MB #Memory Used# [2025-02-21 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:04:06 [end_date_ymd] => 2025-02-21 12:04:06 [RateCDR] => 1 ) [2025-02-21 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:04:06' and `end` < '2025-02-21 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:04:19] Production.INFO: count ==4944 [2025-02-21 12:04:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:04:06 - End Time 2025-02-21 12:04:06 [2025-02-21 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524954', 'tblTempUsageDetail_20' ) start [2025-02-21 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524954', 'tblTempUsageDetail_20' ) end [2025-02-21 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524954', 'tblTempVendorCDR_20' ) start [2025-02-21 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524954', 'tblTempVendorCDR_20' ) end [2025-02-21 12:04:21] Production.INFO: ProcessCDR(1,14524954,1,1,2) [2025-02-21 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524954', 'tblTempUsageDetail_20' ) start [2025-02-21 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524954', 'tblTempUsageDetail_20' ) end [2025-02-21 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:04:27] Production.INFO: ==784== Releasing lock... [2025-02-21 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:04:27] Production.INFO: 65 MB #Memory Used# [2025-02-21 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:05:06 [end_date_ymd] => 2025-02-21 12:05:06 [RateCDR] => 1 ) [2025-02-21 12: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-21 09:05:06' and `end` < '2025-02-21 12: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-21 12:05:18] Production.INFO: count ==4961 [2025-02-21 12:05:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:05:06 - End Time 2025-02-21 12:05:06 [2025-02-21 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524959', 'tblTempUsageDetail_20' ) start [2025-02-21 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524959', 'tblTempUsageDetail_20' ) end [2025-02-21 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524959', 'tblTempVendorCDR_20' ) start [2025-02-21 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524959', 'tblTempVendorCDR_20' ) end [2025-02-21 12:05:21] Production.INFO: ProcessCDR(1,14524959,1,1,2) [2025-02-21 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524959', 'tblTempUsageDetail_20' ) start [2025-02-21 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524959', 'tblTempUsageDetail_20' ) end [2025-02-21 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:05:26] Production.INFO: ==856== Releasing lock... [2025-02-21 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:05:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:06:05 [end_date_ymd] => 2025-02-21 12:06:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:06:05' and `end` < '2025-02-21 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-21 12:06:18] Production.INFO: count ==4978 [2025-02-21 12:06:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:06:05 - End Time 2025-02-21 12:06:05 [2025-02-21 12:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524964', 'tblTempUsageDetail_20' ) start [2025-02-21 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524964', 'tblTempUsageDetail_20' ) end [2025-02-21 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524964', 'tblTempVendorCDR_20' ) start [2025-02-21 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524964', 'tblTempVendorCDR_20' ) end [2025-02-21 12:06:20] Production.INFO: ProcessCDR(1,14524964,1,1,2) [2025-02-21 12:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524964', 'tblTempUsageDetail_20' ) start [2025-02-21 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524964', 'tblTempUsageDetail_20' ) end [2025-02-21 12:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:06:26] Production.INFO: ==925== Releasing lock... [2025-02-21 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:06:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:07:06 [end_date_ymd] => 2025-02-21 12:07:06 [RateCDR] => 1 ) [2025-02-21 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-21 09:07:06' and `end` < '2025-02-21 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-21 12:07:19] Production.INFO: count ==5076 [2025-02-21 12:07:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:07:06 - End Time 2025-02-21 12:07:06 [2025-02-21 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524969', 'tblTempUsageDetail_20' ) start [2025-02-21 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524969', 'tblTempUsageDetail_20' ) end [2025-02-21 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524969', 'tblTempVendorCDR_20' ) start [2025-02-21 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524969', 'tblTempVendorCDR_20' ) end [2025-02-21 12:07:21] Production.INFO: ProcessCDR(1,14524969,1,1,2) [2025-02-21 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524969', 'tblTempUsageDetail_20' ) start [2025-02-21 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524969', 'tblTempUsageDetail_20' ) end [2025-02-21 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:07:26] Production.INFO: ==999== Releasing lock... [2025-02-21 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:07:26] Production.INFO: 66 MB #Memory Used# [2025-02-21 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:08:05 [end_date_ymd] => 2025-02-21 12:08:05 [RateCDR] => 1 ) [2025-02-21 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:08:05' and `end` < '2025-02-21 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:08:18] Production.INFO: count ==5088 [2025-02-21 12:08:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:08:05 - End Time 2025-02-21 12:08:05 [2025-02-21 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524974', 'tblTempUsageDetail_20' ) start [2025-02-21 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524974', 'tblTempUsageDetail_20' ) end [2025-02-21 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524974', 'tblTempVendorCDR_20' ) start [2025-02-21 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524974', 'tblTempVendorCDR_20' ) end [2025-02-21 12:08:20] Production.INFO: ProcessCDR(1,14524974,1,1,2) [2025-02-21 12:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524974', 'tblTempUsageDetail_20' ) start [2025-02-21 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524974', 'tblTempUsageDetail_20' ) end [2025-02-21 12:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:08:25] Production.INFO: ==1069== Releasing lock... [2025-02-21 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:08:25] Production.INFO: 66 MB #Memory Used# [2025-02-21 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:09:06 [end_date_ymd] => 2025-02-21 12:09:06 [RateCDR] => 1 ) [2025-02-21 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-21 09:09:06' and `end` < '2025-02-21 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-21 12:09:18] Production.INFO: count ==5079 [2025-02-21 12:09:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:09:06 - End Time 2025-02-21 12:09:06 [2025-02-21 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524979', 'tblTempUsageDetail_20' ) start [2025-02-21 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524979', 'tblTempUsageDetail_20' ) end [2025-02-21 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524979', 'tblTempVendorCDR_20' ) start [2025-02-21 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524979', 'tblTempVendorCDR_20' ) end [2025-02-21 12:09:21] Production.INFO: ProcessCDR(1,14524979,1,1,2) [2025-02-21 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524979', 'tblTempUsageDetail_20' ) start [2025-02-21 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524979', 'tblTempUsageDetail_20' ) end [2025-02-21 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:09:26] Production.INFO: ==1145== Releasing lock... [2025-02-21 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:09:26] Production.INFO: 66 MB #Memory Used# [2025-02-21 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:10:06 [end_date_ymd] => 2025-02-21 12:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 09:10:06' and `end` < '2025-02-21 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-21 12:10:19] Production.INFO: count ==5057 [2025-02-21 12:10:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:10:06 - End Time 2025-02-21 12:10:06 [2025-02-21 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524985', 'tblTempUsageDetail_20' ) start [2025-02-21 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524985', 'tblTempUsageDetail_20' ) end [2025-02-21 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524985', 'tblTempVendorCDR_20' ) start [2025-02-21 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524985', 'tblTempVendorCDR_20' ) end [2025-02-21 12:10:22] Production.INFO: ProcessCDR(1,14524985,1,1,2) [2025-02-21 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524985', 'tblTempUsageDetail_20' ) start [2025-02-21 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524985', 'tblTempUsageDetail_20' ) end [2025-02-21 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:10:27] Production.INFO: ==1221== Releasing lock... [2025-02-21 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:10:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:11:06 [end_date_ymd] => 2025-02-21 12:11:06 [RateCDR] => 1 ) [2025-02-21 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-21 09:11:06' and `end` < '2025-02-21 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-21 12:11:18] Production.INFO: count ==5059 [2025-02-21 12:11:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:11:06 - End Time 2025-02-21 12:11:06 [2025-02-21 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524990', 'tblTempUsageDetail_20' ) start [2025-02-21 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524990', 'tblTempUsageDetail_20' ) end [2025-02-21 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524990', 'tblTempVendorCDR_20' ) start [2025-02-21 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524990', 'tblTempVendorCDR_20' ) end [2025-02-21 12:11:21] Production.INFO: ProcessCDR(1,14524990,1,1,2) [2025-02-21 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524990', 'tblTempUsageDetail_20' ) start [2025-02-21 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524990', 'tblTempUsageDetail_20' ) end [2025-02-21 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:11:26] Production.INFO: ==1306== Releasing lock... [2025-02-21 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:11:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:12:05 [end_date_ymd] => 2025-02-21 12:12:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:12:05' and `end` < '2025-02-21 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-21 12:12:18] Production.INFO: count ==5069 [2025-02-21 12:12:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:12:05 - End Time 2025-02-21 12:12:05 [2025-02-21 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524995', 'tblTempUsageDetail_20' ) start [2025-02-21 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14524995', 'tblTempUsageDetail_20' ) end [2025-02-21 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524995', 'tblTempVendorCDR_20' ) start [2025-02-21 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14524995', 'tblTempVendorCDR_20' ) end [2025-02-21 12:12:20] Production.INFO: ProcessCDR(1,14524995,1,1,2) [2025-02-21 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14524995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14524995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14524995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14524995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524995', 'tblTempUsageDetail_20' ) start [2025-02-21 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14524995', 'tblTempUsageDetail_20' ) end [2025-02-21 12:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:12:25] Production.INFO: ==1381== Releasing lock... [2025-02-21 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:12:25] Production.INFO: 66 MB #Memory Used# [2025-02-21 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:13:06 [end_date_ymd] => 2025-02-21 12:13:06 [RateCDR] => 1 ) [2025-02-21 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-21 09:13:06' and `end` < '2025-02-21 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-21 12:13:18] Production.INFO: count ==5061 [2025-02-21 12:13:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:13:06 - End Time 2025-02-21 12:13:06 [2025-02-21 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525000', 'tblTempUsageDetail_20' ) start [2025-02-21 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525000', 'tblTempUsageDetail_20' ) end [2025-02-21 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525000', 'tblTempVendorCDR_20' ) start [2025-02-21 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525000', 'tblTempVendorCDR_20' ) end [2025-02-21 12:13:21] Production.INFO: ProcessCDR(1,14525000,1,1,2) [2025-02-21 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525000', 'tblTempUsageDetail_20' ) start [2025-02-21 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525000', 'tblTempUsageDetail_20' ) end [2025-02-21 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:13:26] Production.INFO: ==1493== Releasing lock... [2025-02-21 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:13:26] Production.INFO: 66 MB #Memory Used# [2025-02-21 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:14:05 [end_date_ymd] => 2025-02-21 12:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:14:05' and `end` < '2025-02-21 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-21 12:14:18] Production.INFO: count ==5085 [2025-02-21 12:14:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:14:05 - End Time 2025-02-21 12:14:05 [2025-02-21 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525005', 'tblTempUsageDetail_20' ) start [2025-02-21 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525005', 'tblTempUsageDetail_20' ) end [2025-02-21 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525005', 'tblTempVendorCDR_20' ) start [2025-02-21 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525005', 'tblTempVendorCDR_20' ) end [2025-02-21 12:14:21] Production.INFO: ProcessCDR(1,14525005,1,1,2) [2025-02-21 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525005', 'tblTempUsageDetail_20' ) start [2025-02-21 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525005', 'tblTempUsageDetail_20' ) end [2025-02-21 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:14:26] Production.INFO: ==1598== Releasing lock... [2025-02-21 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:14:26] Production.INFO: 66 MB #Memory Used# [2025-02-21 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:15:06 [end_date_ymd] => 2025-02-21 12:15:06 [RateCDR] => 1 ) [2025-02-21 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:15:06' and `end` < '2025-02-21 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:15:18] Production.INFO: count ==5079 [2025-02-21 12:15:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:15:06 - End Time 2025-02-21 12:15:06 [2025-02-21 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525010', 'tblTempUsageDetail_20' ) start [2025-02-21 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525010', 'tblTempUsageDetail_20' ) end [2025-02-21 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525010', 'tblTempVendorCDR_20' ) start [2025-02-21 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525010', 'tblTempVendorCDR_20' ) end [2025-02-21 12:15:21] Production.INFO: ProcessCDR(1,14525010,1,1,2) [2025-02-21 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525010', 'tblTempUsageDetail_20' ) start [2025-02-21 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525010', 'tblTempUsageDetail_20' ) end [2025-02-21 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:15:26] Production.INFO: ==1670== Releasing lock... [2025-02-21 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:15:26] Production.INFO: 66 MB #Memory Used# [2025-02-21 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:16:05 [end_date_ymd] => 2025-02-21 12:16:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:16:05' and `end` < '2025-02-21 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-21 12:16:18] Production.INFO: count ==5097 [2025-02-21 12:16:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:16:05 - End Time 2025-02-21 12:16:05 [2025-02-21 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525015', 'tblTempUsageDetail_20' ) start [2025-02-21 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525015', 'tblTempUsageDetail_20' ) end [2025-02-21 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525015', 'tblTempVendorCDR_20' ) start [2025-02-21 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525015', 'tblTempVendorCDR_20' ) end [2025-02-21 12:16:20] Production.INFO: ProcessCDR(1,14525015,1,1,2) [2025-02-21 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525015', 'tblTempUsageDetail_20' ) start [2025-02-21 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525015', 'tblTempUsageDetail_20' ) end [2025-02-21 12:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:16:25] Production.INFO: ==1741== Releasing lock... [2025-02-21 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:16:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-21 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:17:05 [end_date_ymd] => 2025-02-21 12:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:17:05' and `end` < '2025-02-21 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-21 12:17:18] Production.INFO: count ==5082 [2025-02-21 12:17:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:17:05 - End Time 2025-02-21 12:17:05 [2025-02-21 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525020', 'tblTempUsageDetail_20' ) start [2025-02-21 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525020', 'tblTempUsageDetail_20' ) end [2025-02-21 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525020', 'tblTempVendorCDR_20' ) start [2025-02-21 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525020', 'tblTempVendorCDR_20' ) end [2025-02-21 12:17:21] Production.INFO: ProcessCDR(1,14525020,1,1,2) [2025-02-21 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525020', 'tblTempUsageDetail_20' ) start [2025-02-21 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525020', 'tblTempUsageDetail_20' ) end [2025-02-21 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:17:26] Production.INFO: ==1815== Releasing lock... [2025-02-21 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:17:26] Production.INFO: 66 MB #Memory Used# [2025-02-21 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:18:05 [end_date_ymd] => 2025-02-21 12:18:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:18:05' and `end` < '2025-02-21 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-21 12:18:18] Production.INFO: count ==5080 [2025-02-21 12:18:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:18:05 - End Time 2025-02-21 12:18:05 [2025-02-21 12:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525025', 'tblTempUsageDetail_20' ) start [2025-02-21 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525025', 'tblTempUsageDetail_20' ) end [2025-02-21 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525025', 'tblTempVendorCDR_20' ) start [2025-02-21 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525025', 'tblTempVendorCDR_20' ) end [2025-02-21 12:18:20] Production.INFO: ProcessCDR(1,14525025,1,1,2) [2025-02-21 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525025', 'tblTempUsageDetail_20' ) start [2025-02-21 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525025', 'tblTempUsageDetail_20' ) end [2025-02-21 12:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:18:25] Production.INFO: ==1901== Releasing lock... [2025-02-21 12:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:18:25] Production.INFO: 66 MB #Memory Used# [2025-02-21 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:19:06 [end_date_ymd] => 2025-02-21 12:19:06 [RateCDR] => 1 ) [2025-02-21 12:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:19:06' and `end` < '2025-02-21 12:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:19:19] Production.INFO: count ==5106 [2025-02-21 12:19:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:19:06 - End Time 2025-02-21 12:19:06 [2025-02-21 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525030', 'tblTempUsageDetail_20' ) start [2025-02-21 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525030', 'tblTempUsageDetail_20' ) end [2025-02-21 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525030', 'tblTempVendorCDR_20' ) start [2025-02-21 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525030', 'tblTempVendorCDR_20' ) end [2025-02-21 12:19:21] Production.INFO: ProcessCDR(1,14525030,1,1,2) [2025-02-21 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525030', 'tblTempUsageDetail_20' ) start [2025-02-21 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525030', 'tblTempUsageDetail_20' ) end [2025-02-21 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:19:27] Production.INFO: ==1973== Releasing lock... [2025-02-21 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:19:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-21 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:20:06 [end_date_ymd] => 2025-02-21 12:20:06 [RateCDR] => 1 ) [2025-02-21 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:20:06' and `end` < '2025-02-21 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:20:19] Production.INFO: count ==5129 [2025-02-21 12:20:22] Production.ERROR: pbx CDR StartTime 2025-02-21 09:20:06 - End Time 2025-02-21 12:20:06 [2025-02-21 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525036', 'tblTempUsageDetail_20' ) start [2025-02-21 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525036', 'tblTempUsageDetail_20' ) end [2025-02-21 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525036', 'tblTempVendorCDR_20' ) start [2025-02-21 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525036', 'tblTempVendorCDR_20' ) end [2025-02-21 12:20:22] Production.INFO: ProcessCDR(1,14525036,1,1,2) [2025-02-21 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525036', 'tblTempUsageDetail_20' ) start [2025-02-21 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525036', 'tblTempUsageDetail_20' ) end [2025-02-21 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:20:27] Production.INFO: ==2046== Releasing lock... [2025-02-21 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:20:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:21:06 [end_date_ymd] => 2025-02-21 12:21:06 [RateCDR] => 1 ) [2025-02-21 12:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:21:06' and `end` < '2025-02-21 12:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:21:18] Production.INFO: count ==5216 [2025-02-21 12:21:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:21:06 - End Time 2025-02-21 12:21:06 [2025-02-21 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525041', 'tblTempUsageDetail_20' ) start [2025-02-21 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525041', 'tblTempUsageDetail_20' ) end [2025-02-21 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525041', 'tblTempVendorCDR_20' ) start [2025-02-21 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525041', 'tblTempVendorCDR_20' ) end [2025-02-21 12:21:21] Production.INFO: ProcessCDR(1,14525041,1,1,2) [2025-02-21 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525041', 'tblTempUsageDetail_20' ) start [2025-02-21 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525041', 'tblTempUsageDetail_20' ) end [2025-02-21 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:21:26] Production.INFO: ==2119== Releasing lock... [2025-02-21 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:21:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:22:05 [end_date_ymd] => 2025-02-21 12:22:05 [RateCDR] => 1 ) [2025-02-21 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:22:05' and `end` < '2025-02-21 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:22:17] Production.INFO: count ==5211 [2025-02-21 12:22:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:22:05 - End Time 2025-02-21 12:22:05 [2025-02-21 12:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525046', 'tblTempUsageDetail_20' ) start [2025-02-21 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525046', 'tblTempUsageDetail_20' ) end [2025-02-21 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525046', 'tblTempVendorCDR_20' ) start [2025-02-21 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525046', 'tblTempVendorCDR_20' ) end [2025-02-21 12:22:20] Production.INFO: ProcessCDR(1,14525046,1,1,2) [2025-02-21 12:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525046', 'tblTempUsageDetail_20' ) start [2025-02-21 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525046', 'tblTempUsageDetail_20' ) end [2025-02-21 12:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:22:25] Production.INFO: ==2189== Releasing lock... [2025-02-21 12:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:22:25] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:23:05 [end_date_ymd] => 2025-02-21 12:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:23:05' and `end` < '2025-02-21 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-21 12:23:18] Production.INFO: count ==5210 [2025-02-21 12:23:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:23:05 - End Time 2025-02-21 12:23:05 [2025-02-21 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525051', 'tblTempUsageDetail_20' ) start [2025-02-21 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525051', 'tblTempUsageDetail_20' ) end [2025-02-21 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525051', 'tblTempVendorCDR_20' ) start [2025-02-21 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525051', 'tblTempVendorCDR_20' ) end [2025-02-21 12:23:20] Production.INFO: ProcessCDR(1,14525051,1,1,2) [2025-02-21 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525051', 'tblTempUsageDetail_20' ) start [2025-02-21 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525051', 'tblTempUsageDetail_20' ) end [2025-02-21 12:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:23:25] Production.INFO: ==2262== Releasing lock... [2025-02-21 12:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:23:25] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:24:05 [end_date_ymd] => 2025-02-21 12:24:05 [RateCDR] => 1 ) [2025-02-21 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:24:05' and `end` < '2025-02-21 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:24:18] Production.INFO: count ==5200 [2025-02-21 12:24:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:24:05 - End Time 2025-02-21 12:24:05 [2025-02-21 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525056', 'tblTempUsageDetail_20' ) start [2025-02-21 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525056', 'tblTempUsageDetail_20' ) end [2025-02-21 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525056', 'tblTempVendorCDR_20' ) start [2025-02-21 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525056', 'tblTempVendorCDR_20' ) end [2025-02-21 12:24:21] Production.INFO: ProcessCDR(1,14525056,1,1,2) [2025-02-21 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525056', 'tblTempUsageDetail_20' ) start [2025-02-21 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525056', 'tblTempUsageDetail_20' ) end [2025-02-21 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:24:26] Production.INFO: ==2333== Releasing lock... [2025-02-21 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:24:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:25:06 [end_date_ymd] => 2025-02-21 12:25:06 [RateCDR] => 1 ) [2025-02-21 12: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-21 09:25:06' and `end` < '2025-02-21 12: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-21 12:25:19] Production.INFO: count ==5198 [2025-02-21 12:25:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:25:06 - End Time 2025-02-21 12:25:06 [2025-02-21 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525061', 'tblTempUsageDetail_20' ) start [2025-02-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525061', 'tblTempUsageDetail_20' ) end [2025-02-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525061', 'tblTempVendorCDR_20' ) start [2025-02-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525061', 'tblTempVendorCDR_20' ) end [2025-02-21 12:25:21] Production.INFO: ProcessCDR(1,14525061,1,1,2) [2025-02-21 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525061', 'tblTempUsageDetail_20' ) start [2025-02-21 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525061', 'tblTempUsageDetail_20' ) end [2025-02-21 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:25:25] Production.INFO: ==2405== Releasing lock... [2025-02-21 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:25:25] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:26:05 [end_date_ymd] => 2025-02-21 12:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:26:05' and `end` < '2025-02-21 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-21 12:26:18] Production.INFO: count ==5189 [2025-02-21 12:26:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:26:05 - End Time 2025-02-21 12:26:05 [2025-02-21 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525066', 'tblTempUsageDetail_20' ) start [2025-02-21 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525066', 'tblTempUsageDetail_20' ) end [2025-02-21 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525066', 'tblTempVendorCDR_20' ) start [2025-02-21 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525066', 'tblTempVendorCDR_20' ) end [2025-02-21 12:26:21] Production.INFO: ProcessCDR(1,14525066,1,1,2) [2025-02-21 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525066', 'tblTempUsageDetail_20' ) start [2025-02-21 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525066', 'tblTempUsageDetail_20' ) end [2025-02-21 12:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:26:26] Production.INFO: ==2476== Releasing lock... [2025-02-21 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:26:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:27:05 [end_date_ymd] => 2025-02-21 12:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:27:05' and `end` < '2025-02-21 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-21 12:27:18] Production.INFO: count ==5172 [2025-02-21 12:27:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:27:05 - End Time 2025-02-21 12:27:05 [2025-02-21 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525071', 'tblTempUsageDetail_20' ) start [2025-02-21 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525071', 'tblTempUsageDetail_20' ) end [2025-02-21 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525071', 'tblTempVendorCDR_20' ) start [2025-02-21 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525071', 'tblTempVendorCDR_20' ) end [2025-02-21 12:27:21] Production.INFO: ProcessCDR(1,14525071,1,1,2) [2025-02-21 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525071', 'tblTempUsageDetail_20' ) start [2025-02-21 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525071', 'tblTempUsageDetail_20' ) end [2025-02-21 12:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:27:25] Production.INFO: ==2547== Releasing lock... [2025-02-21 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:27:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:28:05 [end_date_ymd] => 2025-02-21 12:28:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:28:05' and `end` < '2025-02-21 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-21 12:28:18] Production.INFO: count ==5167 [2025-02-21 12:28:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:28:05 - End Time 2025-02-21 12:28:05 [2025-02-21 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525076', 'tblTempUsageDetail_20' ) start [2025-02-21 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525076', 'tblTempUsageDetail_20' ) end [2025-02-21 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525076', 'tblTempVendorCDR_20' ) start [2025-02-21 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525076', 'tblTempVendorCDR_20' ) end [2025-02-21 12:28:21] Production.INFO: ProcessCDR(1,14525076,1,1,2) [2025-02-21 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525076', 'tblTempUsageDetail_20' ) start [2025-02-21 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525076', 'tblTempUsageDetail_20' ) end [2025-02-21 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:28:26] Production.INFO: ==2616== Releasing lock... [2025-02-21 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:28:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:29:06 [end_date_ymd] => 2025-02-21 12:29:06 [RateCDR] => 1 ) [2025-02-21 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:29:06' and `end` < '2025-02-21 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:29:19] Production.INFO: count ==5196 [2025-02-21 12:29:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:29:06 - End Time 2025-02-21 12:29:06 [2025-02-21 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525081', 'tblTempUsageDetail_20' ) start [2025-02-21 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525081', 'tblTempUsageDetail_20' ) end [2025-02-21 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525081', 'tblTempVendorCDR_20' ) start [2025-02-21 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525081', 'tblTempVendorCDR_20' ) end [2025-02-21 12:29:21] Production.INFO: ProcessCDR(1,14525081,1,1,2) [2025-02-21 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525081', 'tblTempUsageDetail_20' ) start [2025-02-21 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525081', 'tblTempUsageDetail_20' ) end [2025-02-21 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:29:26] Production.INFO: ==2724== Releasing lock... [2025-02-21 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:29:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:30:06 [end_date_ymd] => 2025-02-21 12:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 09:30:06' and `end` < '2025-02-21 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:30:19] Production.INFO: count ==5199 [2025-02-21 12:30:22] Production.ERROR: pbx CDR StartTime 2025-02-21 09:30:06 - End Time 2025-02-21 12:30:06 [2025-02-21 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525087', 'tblTempUsageDetail_20' ) start [2025-02-21 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525087', 'tblTempUsageDetail_20' ) end [2025-02-21 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525087', 'tblTempVendorCDR_20' ) start [2025-02-21 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525087', 'tblTempVendorCDR_20' ) end [2025-02-21 12:30:22] Production.INFO: ProcessCDR(1,14525087,1,1,2) [2025-02-21 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525087', 'tblTempUsageDetail_20' ) start [2025-02-21 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525087', 'tblTempUsageDetail_20' ) end [2025-02-21 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:30:27] Production.INFO: ==2800== Releasing lock... [2025-02-21 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:30:27] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:31:06 [end_date_ymd] => 2025-02-21 12:31:06 [RateCDR] => 1 ) [2025-02-21 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:31:06' and `end` < '2025-02-21 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:31:18] Production.INFO: count ==5210 [2025-02-21 12:31:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:31:06 - End Time 2025-02-21 12:31:06 [2025-02-21 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525092', 'tblTempUsageDetail_20' ) start [2025-02-21 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525092', 'tblTempUsageDetail_20' ) end [2025-02-21 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525092', 'tblTempVendorCDR_20' ) start [2025-02-21 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525092', 'tblTempVendorCDR_20' ) end [2025-02-21 12:31:21] Production.INFO: ProcessCDR(1,14525092,1,1,2) [2025-02-21 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525092', 'tblTempUsageDetail_20' ) start [2025-02-21 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525092', 'tblTempUsageDetail_20' ) end [2025-02-21 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:31:26] Production.INFO: ==2879== Releasing lock... [2025-02-21 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:31:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:32:05 [end_date_ymd] => 2025-02-21 12:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:32:05' and `end` < '2025-02-21 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-21 12:32:18] Production.INFO: count ==5199 [2025-02-21 12:32:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:32:05 - End Time 2025-02-21 12:32:05 [2025-02-21 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525097', 'tblTempUsageDetail_20' ) start [2025-02-21 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525097', 'tblTempUsageDetail_20' ) end [2025-02-21 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525097', 'tblTempVendorCDR_20' ) start [2025-02-21 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525097', 'tblTempVendorCDR_20' ) end [2025-02-21 12:32:21] Production.INFO: ProcessCDR(1,14525097,1,1,2) [2025-02-21 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525097', 'tblTempUsageDetail_20' ) start [2025-02-21 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525097', 'tblTempUsageDetail_20' ) end [2025-02-21 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:32:26] Production.INFO: ==2949== Releasing lock... [2025-02-21 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:32:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:33:06 [end_date_ymd] => 2025-02-21 12:33:06 [RateCDR] => 1 ) [2025-02-21 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:33:06' and `end` < '2025-02-21 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:33:18] Production.INFO: count ==5206 [2025-02-21 12:33:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:33:06 - End Time 2025-02-21 12:33:06 [2025-02-21 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525102', 'tblTempUsageDetail_20' ) start [2025-02-21 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525102', 'tblTempUsageDetail_20' ) end [2025-02-21 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525102', 'tblTempVendorCDR_20' ) start [2025-02-21 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525102', 'tblTempVendorCDR_20' ) end [2025-02-21 12:33:21] Production.INFO: ProcessCDR(1,14525102,1,1,2) [2025-02-21 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525102', 'tblTempUsageDetail_20' ) start [2025-02-21 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525102', 'tblTempUsageDetail_20' ) end [2025-02-21 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:33:27] Production.INFO: ==3020== Releasing lock... [2025-02-21 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:33:27] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:34:06 [end_date_ymd] => 2025-02-21 12:34:06 [RateCDR] => 1 ) [2025-02-21 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:34:06' and `end` < '2025-02-21 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:34:19] Production.INFO: count ==5205 [2025-02-21 12:34:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:34:06 - End Time 2025-02-21 12:34:06 [2025-02-21 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525107', 'tblTempUsageDetail_20' ) start [2025-02-21 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525107', 'tblTempUsageDetail_20' ) end [2025-02-21 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525107', 'tblTempVendorCDR_20' ) start [2025-02-21 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525107', 'tblTempVendorCDR_20' ) end [2025-02-21 12:34:21] Production.INFO: ProcessCDR(1,14525107,1,1,2) [2025-02-21 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525107', 'tblTempUsageDetail_20' ) start [2025-02-21 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525107', 'tblTempUsageDetail_20' ) end [2025-02-21 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:34:27] Production.INFO: ==3093== Releasing lock... [2025-02-21 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:34:27] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:35:06 [end_date_ymd] => 2025-02-21 12:35:06 [RateCDR] => 1 ) [2025-02-21 12:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:35:06' and `end` < '2025-02-21 12:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:35:18] Production.INFO: count ==5239 [2025-02-21 12:35:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:35:06 - End Time 2025-02-21 12:35:06 [2025-02-21 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525112', 'tblTempUsageDetail_20' ) start [2025-02-21 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525112', 'tblTempUsageDetail_20' ) end [2025-02-21 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525112', 'tblTempVendorCDR_20' ) start [2025-02-21 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525112', 'tblTempVendorCDR_20' ) end [2025-02-21 12:35:21] Production.INFO: ProcessCDR(1,14525112,1,1,2) [2025-02-21 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525112', 'tblTempUsageDetail_20' ) start [2025-02-21 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525112', 'tblTempUsageDetail_20' ) end [2025-02-21 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:35:27] Production.INFO: ==3163== Releasing lock... [2025-02-21 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:35:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:36:05 [end_date_ymd] => 2025-02-21 12:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:36:05' and `end` < '2025-02-21 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-21 12:36:18] Production.INFO: count ==5243 [2025-02-21 12:36:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:36:05 - End Time 2025-02-21 12:36:05 [2025-02-21 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525117', 'tblTempUsageDetail_20' ) start [2025-02-21 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525117', 'tblTempUsageDetail_20' ) end [2025-02-21 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525117', 'tblTempVendorCDR_20' ) start [2025-02-21 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525117', 'tblTempVendorCDR_20' ) end [2025-02-21 12:36:21] Production.INFO: ProcessCDR(1,14525117,1,1,2) [2025-02-21 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525117', 'tblTempUsageDetail_20' ) start [2025-02-21 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525117', 'tblTempUsageDetail_20' ) end [2025-02-21 12:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:36:26] Production.INFO: ==3249== Releasing lock... [2025-02-21 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:36:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:37:05 [end_date_ymd] => 2025-02-21 12:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:37:05' and `end` < '2025-02-21 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-21 12:37:18] Production.INFO: count ==5245 [2025-02-21 12:37:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:37:05 - End Time 2025-02-21 12:37:05 [2025-02-21 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525122', 'tblTempUsageDetail_20' ) start [2025-02-21 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525122', 'tblTempUsageDetail_20' ) end [2025-02-21 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525122', 'tblTempVendorCDR_20' ) start [2025-02-21 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525122', 'tblTempVendorCDR_20' ) end [2025-02-21 12:37:21] Production.INFO: ProcessCDR(1,14525122,1,1,2) [2025-02-21 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525122', 'tblTempUsageDetail_20' ) start [2025-02-21 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525122', 'tblTempUsageDetail_20' ) end [2025-02-21 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:37:26] Production.INFO: ==3340== Releasing lock... [2025-02-21 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:37:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:38:05 [end_date_ymd] => 2025-02-21 12:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:38:05' and `end` < '2025-02-21 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-21 12:38:18] Production.INFO: count ==5257 [2025-02-21 12:38:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:38:05 - End Time 2025-02-21 12:38:05 [2025-02-21 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525127', 'tblTempUsageDetail_20' ) start [2025-02-21 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525127', 'tblTempUsageDetail_20' ) end [2025-02-21 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525127', 'tblTempVendorCDR_20' ) start [2025-02-21 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525127', 'tblTempVendorCDR_20' ) end [2025-02-21 12:38:21] Production.INFO: ProcessCDR(1,14525127,1,1,2) [2025-02-21 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525127', 'tblTempUsageDetail_20' ) start [2025-02-21 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525127', 'tblTempUsageDetail_20' ) end [2025-02-21 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:38:26] Production.INFO: ==3429== Releasing lock... [2025-02-21 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:38:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:39:05 [end_date_ymd] => 2025-02-21 12:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:39:05' and `end` < '2025-02-21 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-21 12:39:18] Production.INFO: count ==5252 [2025-02-21 12:39:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:39:05 - End Time 2025-02-21 12:39:05 [2025-02-21 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525132', 'tblTempUsageDetail_20' ) start [2025-02-21 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525132', 'tblTempUsageDetail_20' ) end [2025-02-21 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525132', 'tblTempVendorCDR_20' ) start [2025-02-21 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525132', 'tblTempVendorCDR_20' ) end [2025-02-21 12:39:21] Production.INFO: ProcessCDR(1,14525132,1,1,2) [2025-02-21 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525132', 'tblTempUsageDetail_20' ) start [2025-02-21 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525132', 'tblTempUsageDetail_20' ) end [2025-02-21 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:39:26] Production.INFO: ==3521== Releasing lock... [2025-02-21 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:39:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:40:06 [end_date_ymd] => 2025-02-21 12:40:06 [RateCDR] => 1 ) [2025-02-21 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:40:06' and `end` < '2025-02-21 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:40:18] Production.INFO: count ==5239 [2025-02-21 12:40:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:40:06 - End Time 2025-02-21 12:40:06 [2025-02-21 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525137', 'tblTempUsageDetail_20' ) start [2025-02-21 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525137', 'tblTempUsageDetail_20' ) end [2025-02-21 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525137', 'tblTempVendorCDR_20' ) start [2025-02-21 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525137', 'tblTempVendorCDR_20' ) end [2025-02-21 12:40:21] Production.INFO: ProcessCDR(1,14525137,1,1,2) [2025-02-21 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525137', 'tblTempUsageDetail_20' ) start [2025-02-21 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525137', 'tblTempUsageDetail_20' ) end [2025-02-21 12:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:40:26] Production.INFO: ==3597== Releasing lock... [2025-02-21 12:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:40:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:41:06 [end_date_ymd] => 2025-02-21 12:41:06 [RateCDR] => 1 ) [2025-02-21 12: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-21 09:41:06' and `end` < '2025-02-21 12: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-21 12:41:18] Production.INFO: count ==5270 [2025-02-21 12:41:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:41:06 - End Time 2025-02-21 12:41:06 [2025-02-21 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525143', 'tblTempUsageDetail_20' ) start [2025-02-21 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525143', 'tblTempUsageDetail_20' ) end [2025-02-21 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525143', 'tblTempVendorCDR_20' ) start [2025-02-21 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525143', 'tblTempVendorCDR_20' ) end [2025-02-21 12:41:21] Production.INFO: ProcessCDR(1,14525143,1,1,2) [2025-02-21 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525143', 'tblTempUsageDetail_20' ) start [2025-02-21 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525143', 'tblTempUsageDetail_20' ) end [2025-02-21 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:41:26] Production.INFO: ==3671== Releasing lock... [2025-02-21 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:41:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:42:05 [end_date_ymd] => 2025-02-21 12:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:42:05' and `end` < '2025-02-21 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-21 12:42:18] Production.INFO: count ==5286 [2025-02-21 12:42:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:42:05 - End Time 2025-02-21 12:42:05 [2025-02-21 12:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525148', 'tblTempUsageDetail_20' ) start [2025-02-21 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525148', 'tblTempUsageDetail_20' ) end [2025-02-21 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525148', 'tblTempVendorCDR_20' ) start [2025-02-21 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525148', 'tblTempVendorCDR_20' ) end [2025-02-21 12:42:21] Production.INFO: ProcessCDR(1,14525148,1,1,2) [2025-02-21 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525148', 'tblTempUsageDetail_20' ) start [2025-02-21 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525148', 'tblTempUsageDetail_20' ) end [2025-02-21 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:42:26] Production.INFO: ==3742== Releasing lock... [2025-02-21 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:42:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:43:06 [end_date_ymd] => 2025-02-21 12:43:06 [RateCDR] => 1 ) [2025-02-21 12: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-21 09:43:06' and `end` < '2025-02-21 12: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-21 12:43:19] Production.INFO: count ==5270 [2025-02-21 12:43:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:43:06 - End Time 2025-02-21 12:43:06 [2025-02-21 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525153', 'tblTempUsageDetail_20' ) start [2025-02-21 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525153', 'tblTempUsageDetail_20' ) end [2025-02-21 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525153', 'tblTempVendorCDR_20' ) start [2025-02-21 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525153', 'tblTempVendorCDR_20' ) end [2025-02-21 12:43:21] Production.INFO: ProcessCDR(1,14525153,1,1,2) [2025-02-21 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525153', 'tblTempUsageDetail_20' ) start [2025-02-21 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525153', 'tblTempUsageDetail_20' ) end [2025-02-21 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:43:26] Production.INFO: ==3815== Releasing lock... [2025-02-21 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:43:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:44:05 [end_date_ymd] => 2025-02-21 12:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:44:05' and `end` < '2025-02-21 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-21 12:44:18] Production.INFO: count ==5270 [2025-02-21 12:44:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:44:05 - End Time 2025-02-21 12:44:05 [2025-02-21 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525158', 'tblTempUsageDetail_20' ) start [2025-02-21 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525158', 'tblTempUsageDetail_20' ) end [2025-02-21 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525158', 'tblTempVendorCDR_20' ) start [2025-02-21 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525158', 'tblTempVendorCDR_20' ) end [2025-02-21 12:44:20] Production.INFO: ProcessCDR(1,14525158,1,1,2) [2025-02-21 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525158', 'tblTempUsageDetail_20' ) start [2025-02-21 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525158', 'tblTempUsageDetail_20' ) end [2025-02-21 12:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:44:25] Production.INFO: ==3924== Releasing lock... [2025-02-21 12:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:44:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:45:05 [end_date_ymd] => 2025-02-21 12:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:45:05' and `end` < '2025-02-21 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-21 12:45:18] Production.INFO: count ==5281 [2025-02-21 12:45:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:45:05 - End Time 2025-02-21 12:45:05 [2025-02-21 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525163', 'tblTempUsageDetail_20' ) start [2025-02-21 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525163', 'tblTempUsageDetail_20' ) end [2025-02-21 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525163', 'tblTempVendorCDR_20' ) start [2025-02-21 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525163', 'tblTempVendorCDR_20' ) end [2025-02-21 12:45:20] Production.INFO: ProcessCDR(1,14525163,1,1,2) [2025-02-21 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525163', 'tblTempUsageDetail_20' ) start [2025-02-21 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525163', 'tblTempUsageDetail_20' ) end [2025-02-21 12:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:45:25] Production.INFO: ==4000== Releasing lock... [2025-02-21 12:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:45:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:46:06 [end_date_ymd] => 2025-02-21 12:46:06 [RateCDR] => 1 ) [2025-02-21 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:46:06' and `end` < '2025-02-21 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:46:18] Production.INFO: count ==5290 [2025-02-21 12:46:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:46:06 - End Time 2025-02-21 12:46:06 [2025-02-21 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525168', 'tblTempUsageDetail_20' ) start [2025-02-21 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525168', 'tblTempUsageDetail_20' ) end [2025-02-21 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525168', 'tblTempVendorCDR_20' ) start [2025-02-21 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525168', 'tblTempVendorCDR_20' ) end [2025-02-21 12:46:21] Production.INFO: ProcessCDR(1,14525168,1,1,2) [2025-02-21 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525168', 'tblTempUsageDetail_20' ) start [2025-02-21 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525168', 'tblTempUsageDetail_20' ) end [2025-02-21 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:46:26] Production.INFO: ==4074== Releasing lock... [2025-02-21 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:46:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:47:06 [end_date_ymd] => 2025-02-21 12:47:06 [RateCDR] => 1 ) [2025-02-21 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:47:06' and `end` < '2025-02-21 12: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-21 12:47:18] Production.INFO: count ==5283 [2025-02-21 12:47:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:47:06 - End Time 2025-02-21 12:47:06 [2025-02-21 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525173', 'tblTempUsageDetail_20' ) start [2025-02-21 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525173', 'tblTempUsageDetail_20' ) end [2025-02-21 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525173', 'tblTempVendorCDR_20' ) start [2025-02-21 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525173', 'tblTempVendorCDR_20' ) end [2025-02-21 12:47:21] Production.INFO: ProcessCDR(1,14525173,1,1,2) [2025-02-21 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525173', 'tblTempUsageDetail_20' ) start [2025-02-21 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525173', 'tblTempUsageDetail_20' ) end [2025-02-21 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:47:26] Production.INFO: ==4144== Releasing lock... [2025-02-21 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:47:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:48:06 [end_date_ymd] => 2025-02-21 12:48:06 [RateCDR] => 1 ) [2025-02-21 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:48:06' and `end` < '2025-02-21 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:48:19] Production.INFO: count ==5273 [2025-02-21 12:48:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:48:06 - End Time 2025-02-21 12:48:06 [2025-02-21 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525178', 'tblTempUsageDetail_20' ) start [2025-02-21 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525178', 'tblTempUsageDetail_20' ) end [2025-02-21 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525178', 'tblTempVendorCDR_20' ) start [2025-02-21 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525178', 'tblTempVendorCDR_20' ) end [2025-02-21 12:48:21] Production.INFO: ProcessCDR(1,14525178,1,1,2) [2025-02-21 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525178', 'tblTempUsageDetail_20' ) start [2025-02-21 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525178', 'tblTempUsageDetail_20' ) end [2025-02-21 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:48:26] Production.INFO: ==4217== Releasing lock... [2025-02-21 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:48:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:49:05 [end_date_ymd] => 2025-02-21 12:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:49:05' and `end` < '2025-02-21 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-21 12:49:18] Production.INFO: count ==5289 [2025-02-21 12:49:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:49:05 - End Time 2025-02-21 12:49:05 [2025-02-21 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525183', 'tblTempUsageDetail_20' ) start [2025-02-21 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525183', 'tblTempUsageDetail_20' ) end [2025-02-21 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525183', 'tblTempVendorCDR_20' ) start [2025-02-21 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525183', 'tblTempVendorCDR_20' ) end [2025-02-21 12:49:21] Production.INFO: ProcessCDR(1,14525183,1,1,2) [2025-02-21 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525183', 'tblTempUsageDetail_20' ) start [2025-02-21 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525183', 'tblTempUsageDetail_20' ) end [2025-02-21 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:49:26] Production.INFO: ==4290== Releasing lock... [2025-02-21 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:49:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:50:07 [end_date_ymd] => 2025-02-21 12:50:07 [RateCDR] => 1 ) [2025-02-21 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-21 09:50:07' and `end` < '2025-02-21 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-21 12:50:20] Production.INFO: count ==5290 [2025-02-21 12:50:22] Production.ERROR: pbx CDR StartTime 2025-02-21 09:50:07 - End Time 2025-02-21 12:50:07 [2025-02-21 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525189', 'tblTempUsageDetail_20' ) start [2025-02-21 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525189', 'tblTempUsageDetail_20' ) end [2025-02-21 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525189', 'tblTempVendorCDR_20' ) start [2025-02-21 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525189', 'tblTempVendorCDR_20' ) end [2025-02-21 12:50:22] Production.INFO: ProcessCDR(1,14525189,1,1,2) [2025-02-21 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525189', 'tblTempUsageDetail_20' ) start [2025-02-21 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525189', 'tblTempUsageDetail_20' ) end [2025-02-21 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:50:28] Production.INFO: ==4368== Releasing lock... [2025-02-21 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:50:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:51:06 [end_date_ymd] => 2025-02-21 12:51:06 [RateCDR] => 1 ) [2025-02-21 12:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:51:06' and `end` < '2025-02-21 12:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:51:18] Production.INFO: count ==5257 [2025-02-21 12:51:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:51:06 - End Time 2025-02-21 12:51:06 [2025-02-21 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525194', 'tblTempUsageDetail_20' ) start [2025-02-21 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525194', 'tblTempUsageDetail_20' ) end [2025-02-21 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525194', 'tblTempVendorCDR_20' ) start [2025-02-21 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525194', 'tblTempVendorCDR_20' ) end [2025-02-21 12:51:21] Production.INFO: ProcessCDR(1,14525194,1,1,2) [2025-02-21 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525194', 'tblTempUsageDetail_20' ) start [2025-02-21 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525194', 'tblTempUsageDetail_20' ) end [2025-02-21 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:51:26] Production.INFO: ==4444== Releasing lock... [2025-02-21 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:51:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:52:05 [end_date_ymd] => 2025-02-21 12:52:05 [RateCDR] => 1 ) [2025-02-21 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:52:05' and `end` < '2025-02-21 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:52:18] Production.INFO: count ==5245 [2025-02-21 12:52:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:52:05 - End Time 2025-02-21 12:52:05 [2025-02-21 12:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525199', 'tblTempUsageDetail_20' ) start [2025-02-21 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525199', 'tblTempUsageDetail_20' ) end [2025-02-21 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525199', 'tblTempVendorCDR_20' ) start [2025-02-21 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525199', 'tblTempVendorCDR_20' ) end [2025-02-21 12:52:20] Production.INFO: ProcessCDR(1,14525199,1,1,2) [2025-02-21 12:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525199', 'tblTempUsageDetail_20' ) start [2025-02-21 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525199', 'tblTempUsageDetail_20' ) end [2025-02-21 12:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:52:25] Production.INFO: ==4516== Releasing lock... [2025-02-21 12:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:52:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:53:06 [end_date_ymd] => 2025-02-21 12:53:06 [RateCDR] => 1 ) [2025-02-21 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:53:06' and `end` < '2025-02-21 12:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:53:19] Production.INFO: count ==5211 [2025-02-21 12:53:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:53:06 - End Time 2025-02-21 12:53:06 [2025-02-21 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525204', 'tblTempUsageDetail_20' ) start [2025-02-21 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525204', 'tblTempUsageDetail_20' ) end [2025-02-21 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525204', 'tblTempVendorCDR_20' ) start [2025-02-21 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525204', 'tblTempVendorCDR_20' ) end [2025-02-21 12:53:21] Production.INFO: ProcessCDR(1,14525204,1,1,2) [2025-02-21 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525204', 'tblTempUsageDetail_20' ) start [2025-02-21 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525204', 'tblTempUsageDetail_20' ) end [2025-02-21 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:53:26] Production.INFO: ==4595== Releasing lock... [2025-02-21 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:53:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:54:04 [end_date_ymd] => 2025-02-21 12:54:04 [RateCDR] => 1 ) [2025-02-21 12: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-21 09:54:04' and `end` < '2025-02-21 12: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-21 12:54:17] Production.INFO: count ==5214 [2025-02-21 12:54:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:54:04 - End Time 2025-02-21 12:54:04 [2025-02-21 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525209', 'tblTempUsageDetail_20' ) start [2025-02-21 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525209', 'tblTempUsageDetail_20' ) end [2025-02-21 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525209', 'tblTempVendorCDR_20' ) start [2025-02-21 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525209', 'tblTempVendorCDR_20' ) end [2025-02-21 12:54:20] Production.INFO: ProcessCDR(1,14525209,1,1,2) [2025-02-21 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525209', 'tblTempUsageDetail_20' ) start [2025-02-21 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525209', 'tblTempUsageDetail_20' ) end [2025-02-21 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:54:25] Production.INFO: ==4669== Releasing lock... [2025-02-21 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:54:25] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:55:06 [end_date_ymd] => 2025-02-21 12:55:06 [RateCDR] => 1 ) [2025-02-21 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:55:06' and `end` < '2025-02-21 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:55:18] Production.INFO: count ==5235 [2025-02-21 12:55:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:55:06 - End Time 2025-02-21 12:55:06 [2025-02-21 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525214', 'tblTempUsageDetail_20' ) start [2025-02-21 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525214', 'tblTempUsageDetail_20' ) end [2025-02-21 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525214', 'tblTempVendorCDR_20' ) start [2025-02-21 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525214', 'tblTempVendorCDR_20' ) end [2025-02-21 12:55:21] Production.INFO: ProcessCDR(1,14525214,1,1,2) [2025-02-21 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525214', 'tblTempUsageDetail_20' ) start [2025-02-21 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525214', 'tblTempUsageDetail_20' ) end [2025-02-21 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:55:26] Production.INFO: ==4742== Releasing lock... [2025-02-21 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:55:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:56:06 [end_date_ymd] => 2025-02-21 12:56:06 [RateCDR] => 1 ) [2025-02-21 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:56:06' and `end` < '2025-02-21 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:56:19] Production.INFO: count ==5221 [2025-02-21 12:56:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:56:06 - End Time 2025-02-21 12:56:06 [2025-02-21 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525219', 'tblTempUsageDetail_20' ) start [2025-02-21 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525219', 'tblTempUsageDetail_20' ) end [2025-02-21 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525219', 'tblTempVendorCDR_20' ) start [2025-02-21 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525219', 'tblTempVendorCDR_20' ) end [2025-02-21 12:56:21] Production.INFO: ProcessCDR(1,14525219,1,1,2) [2025-02-21 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525219', 'tblTempUsageDetail_20' ) start [2025-02-21 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525219', 'tblTempUsageDetail_20' ) end [2025-02-21 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:56:26] Production.INFO: ==4818== Releasing lock... [2025-02-21 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:56:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:57:05 [end_date_ymd] => 2025-02-21 12:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:57:05' and `end` < '2025-02-21 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-21 12:57:18] Production.INFO: count ==5206 [2025-02-21 12:57:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:57:05 - End Time 2025-02-21 12:57:05 [2025-02-21 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525221', 'tblTempUsageDetail_20' ) start [2025-02-21 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525221', 'tblTempUsageDetail_20' ) end [2025-02-21 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525221', 'tblTempVendorCDR_20' ) start [2025-02-21 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525221', 'tblTempVendorCDR_20' ) end [2025-02-21 12:57:21] Production.INFO: ProcessCDR(1,14525221,1,1,2) [2025-02-21 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525221', 'tblTempUsageDetail_20' ) start [2025-02-21 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525221', 'tblTempUsageDetail_20' ) end [2025-02-21 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:57:26] Production.INFO: ==4893== Releasing lock... [2025-02-21 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:57:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:58:06 [end_date_ymd] => 2025-02-21 12:58:06 [RateCDR] => 1 ) [2025-02-21 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 09:58:06' and `end` < '2025-02-21 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 12:58:18] Production.INFO: count ==5203 [2025-02-21 12:58:21] Production.ERROR: pbx CDR StartTime 2025-02-21 09:58:06 - End Time 2025-02-21 12:58:06 [2025-02-21 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525229', 'tblTempUsageDetail_20' ) start [2025-02-21 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525229', 'tblTempUsageDetail_20' ) end [2025-02-21 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525229', 'tblTempVendorCDR_20' ) start [2025-02-21 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525229', 'tblTempVendorCDR_20' ) end [2025-02-21 12:58:21] Production.INFO: ProcessCDR(1,14525229,1,1,2) [2025-02-21 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525229', 'tblTempUsageDetail_20' ) start [2025-02-21 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525229', 'tblTempUsageDetail_20' ) end [2025-02-21 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:58:26] Production.INFO: ==4968== Releasing lock... [2025-02-21 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:58:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 09:59:05 [end_date_ymd] => 2025-02-21 12:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 09:59:05' and `end` < '2025-02-21 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-21 12:59:18] Production.INFO: count ==5196 [2025-02-21 12:59:20] Production.ERROR: pbx CDR StartTime 2025-02-21 09:59:05 - End Time 2025-02-21 12:59:05 [2025-02-21 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525234', 'tblTempUsageDetail_20' ) start [2025-02-21 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525234', 'tblTempUsageDetail_20' ) end [2025-02-21 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525234', 'tblTempVendorCDR_20' ) start [2025-02-21 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525234', 'tblTempVendorCDR_20' ) end [2025-02-21 12:59:20] Production.INFO: ProcessCDR(1,14525234,1,1,2) [2025-02-21 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525234', 'tblTempUsageDetail_20' ) start [2025-02-21 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525234', 'tblTempUsageDetail_20' ) end [2025-02-21 12:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 12:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 12:59:25] Production.INFO: ==5039== Releasing lock... [2025-02-21 12:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 12:59:25] Production.INFO: 67 MB #Memory Used# [2025-02-21 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:00:06 [end_date_ymd] => 2025-02-21 13:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 10:00:06' and `end` < '2025-02-21 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-21 13:00:19] Production.INFO: count ==5215 [2025-02-21 13:00:22] Production.ERROR: pbx CDR StartTime 2025-02-21 10:00:06 - End Time 2025-02-21 13:00:06 [2025-02-21 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525240', 'tblTempUsageDetail_20' ) start [2025-02-21 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525240', 'tblTempUsageDetail_20' ) end [2025-02-21 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525240', 'tblTempVendorCDR_20' ) start [2025-02-21 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525240', 'tblTempVendorCDR_20' ) end [2025-02-21 13:00:22] Production.INFO: ProcessCDR(1,14525240,1,1,2) [2025-02-21 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525240', 'tblTempUsageDetail_20' ) start [2025-02-21 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525240', 'tblTempUsageDetail_20' ) end [2025-02-21 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:00:27] Production.INFO: ==5155== Releasing lock... [2025-02-21 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:00:27] Production.INFO: 67 MB #Memory Used# [2025-02-21 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:01:05 [end_date_ymd] => 2025-02-21 13:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:01:05' and `end` < '2025-02-21 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-21 13:01:18] Production.INFO: count ==5267 [2025-02-21 13:01:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:01:05 - End Time 2025-02-21 13:01:05 [2025-02-21 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525245', 'tblTempUsageDetail_20' ) start [2025-02-21 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525245', 'tblTempUsageDetail_20' ) end [2025-02-21 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525245', 'tblTempVendorCDR_20' ) start [2025-02-21 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525245', 'tblTempVendorCDR_20' ) end [2025-02-21 13:01:21] Production.INFO: ProcessCDR(1,14525245,1,1,2) [2025-02-21 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525245', 'tblTempUsageDetail_20' ) start [2025-02-21 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525245', 'tblTempUsageDetail_20' ) end [2025-02-21 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:01:26] Production.INFO: ==5243== Releasing lock... [2025-02-21 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:01:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:02:05 [end_date_ymd] => 2025-02-21 13:02:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:02:05' and `end` < '2025-02-21 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-21 13:02:18] Production.INFO: count ==5274 [2025-02-21 13:02:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:02:05 - End Time 2025-02-21 13:02:05 [2025-02-21 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525250', 'tblTempUsageDetail_20' ) start [2025-02-21 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525250', 'tblTempUsageDetail_20' ) end [2025-02-21 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525250', 'tblTempVendorCDR_20' ) start [2025-02-21 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525250', 'tblTempVendorCDR_20' ) end [2025-02-21 13:02:21] Production.INFO: ProcessCDR(1,14525250,1,1,2) [2025-02-21 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525250', 'tblTempUsageDetail_20' ) start [2025-02-21 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525250', 'tblTempUsageDetail_20' ) end [2025-02-21 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:02:26] Production.INFO: ==5317== Releasing lock... [2025-02-21 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:02:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:03:06 [end_date_ymd] => 2025-02-21 13:03:06 [RateCDR] => 1 ) [2025-02-21 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-21 10:03:06' and `end` < '2025-02-21 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-21 13:03:19] Production.INFO: count ==5272 [2025-02-21 13:03:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:03:06 - End Time 2025-02-21 13:03:06 [2025-02-21 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525255', 'tblTempUsageDetail_20' ) start [2025-02-21 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525255', 'tblTempUsageDetail_20' ) end [2025-02-21 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525255', 'tblTempVendorCDR_20' ) start [2025-02-21 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525255', 'tblTempVendorCDR_20' ) end [2025-02-21 13:03:21] Production.INFO: ProcessCDR(1,14525255,1,1,2) [2025-02-21 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525255', 'tblTempUsageDetail_20' ) start [2025-02-21 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525255', 'tblTempUsageDetail_20' ) end [2025-02-21 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:03:27] Production.INFO: ==5390== Releasing lock... [2025-02-21 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:03:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:04:05 [end_date_ymd] => 2025-02-21 13:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:04:05' and `end` < '2025-02-21 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-21 13:04:18] Production.INFO: count ==5287 [2025-02-21 13:04:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:04:05 - End Time 2025-02-21 13:04:05 [2025-02-21 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525260', 'tblTempUsageDetail_20' ) start [2025-02-21 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525260', 'tblTempUsageDetail_20' ) end [2025-02-21 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525260', 'tblTempVendorCDR_20' ) start [2025-02-21 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525260', 'tblTempVendorCDR_20' ) end [2025-02-21 13:04:21] Production.INFO: ProcessCDR(1,14525260,1,1,2) [2025-02-21 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525260', 'tblTempUsageDetail_20' ) start [2025-02-21 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525260', 'tblTempUsageDetail_20' ) end [2025-02-21 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:04:26] Production.INFO: ==5467== Releasing lock... [2025-02-21 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:04:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:05:06 [end_date_ymd] => 2025-02-21 13:05:06 [RateCDR] => 1 ) [2025-02-21 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:05:06' and `end` < '2025-02-21 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:05:19] Production.INFO: count ==5291 [2025-02-21 13:05:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:05:06 - End Time 2025-02-21 13:05:06 [2025-02-21 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525265', 'tblTempUsageDetail_20' ) start [2025-02-21 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525265', 'tblTempUsageDetail_20' ) end [2025-02-21 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525265', 'tblTempVendorCDR_20' ) start [2025-02-21 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525265', 'tblTempVendorCDR_20' ) end [2025-02-21 13:05:21] Production.INFO: ProcessCDR(1,14525265,1,1,2) [2025-02-21 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525265', 'tblTempUsageDetail_20' ) start [2025-02-21 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525265', 'tblTempUsageDetail_20' ) end [2025-02-21 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:05:27] Production.INFO: ==5545== Releasing lock... [2025-02-21 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:05:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:06:05 [end_date_ymd] => 2025-02-21 13:06:05 [RateCDR] => 1 ) [2025-02-21 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:06:05' and `end` < '2025-02-21 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:06:18] Production.INFO: count ==5287 [2025-02-21 13:06:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:06:05 - End Time 2025-02-21 13:06:05 [2025-02-21 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525270', 'tblTempUsageDetail_20' ) start [2025-02-21 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525270', 'tblTempUsageDetail_20' ) end [2025-02-21 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525270', 'tblTempVendorCDR_20' ) start [2025-02-21 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525270', 'tblTempVendorCDR_20' ) end [2025-02-21 13:06:21] Production.INFO: ProcessCDR(1,14525270,1,1,2) [2025-02-21 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525270', 'tblTempUsageDetail_20' ) start [2025-02-21 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525270', 'tblTempUsageDetail_20' ) end [2025-02-21 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:06:26] Production.INFO: ==5619== Releasing lock... [2025-02-21 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:06:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:07:05 [end_date_ymd] => 2025-02-21 13:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:07:05' and `end` < '2025-02-21 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-21 13:07:18] Production.INFO: count ==5286 [2025-02-21 13:07:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:07:05 - End Time 2025-02-21 13:07:05 [2025-02-21 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525275', 'tblTempUsageDetail_20' ) start [2025-02-21 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525275', 'tblTempUsageDetail_20' ) end [2025-02-21 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525275', 'tblTempVendorCDR_20' ) start [2025-02-21 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525275', 'tblTempVendorCDR_20' ) end [2025-02-21 13:07:21] Production.INFO: ProcessCDR(1,14525275,1,1,2) [2025-02-21 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525275', 'tblTempUsageDetail_20' ) start [2025-02-21 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525275', 'tblTempUsageDetail_20' ) end [2025-02-21 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:07:26] Production.INFO: ==5697== Releasing lock... [2025-02-21 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:07:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:08:05 [end_date_ymd] => 2025-02-21 13:08:05 [RateCDR] => 1 ) [2025-02-21 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:08:05' and `end` < '2025-02-21 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:08:18] Production.INFO: count ==5297 [2025-02-21 13:08:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:08:05 - End Time 2025-02-21 13:08:05 [2025-02-21 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525280', 'tblTempUsageDetail_20' ) start [2025-02-21 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525280', 'tblTempUsageDetail_20' ) end [2025-02-21 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525280', 'tblTempVendorCDR_20' ) start [2025-02-21 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525280', 'tblTempVendorCDR_20' ) end [2025-02-21 13:08:20] Production.INFO: ProcessCDR(1,14525280,1,1,2) [2025-02-21 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525280', 'tblTempUsageDetail_20' ) start [2025-02-21 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525280', 'tblTempUsageDetail_20' ) end [2025-02-21 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:08:26] Production.INFO: ==5773== Releasing lock... [2025-02-21 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:08:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-21 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:09:06 [end_date_ymd] => 2025-02-21 13:09:06 [RateCDR] => 1 ) [2025-02-21 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:09:06' and `end` < '2025-02-21 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:09:19] Production.INFO: count ==5279 [2025-02-21 13:09:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:09:06 - End Time 2025-02-21 13:09:06 [2025-02-21 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525285', 'tblTempUsageDetail_20' ) start [2025-02-21 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525285', 'tblTempUsageDetail_20' ) end [2025-02-21 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525285', 'tblTempVendorCDR_20' ) start [2025-02-21 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525285', 'tblTempVendorCDR_20' ) end [2025-02-21 13:09:21] Production.INFO: ProcessCDR(1,14525285,1,1,2) [2025-02-21 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525285', 'tblTempUsageDetail_20' ) start [2025-02-21 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525285', 'tblTempUsageDetail_20' ) end [2025-02-21 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:09:27] Production.INFO: ==5850== Releasing lock... [2025-02-21 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:09:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:10:06 [end_date_ymd] => 2025-02-21 13:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 10:10:06' and `end` < '2025-02-21 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-21 13:10:19] Production.INFO: count ==5265 [2025-02-21 13:10:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:10:06 - End Time 2025-02-21 13:10:06 [2025-02-21 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525291', 'tblTempUsageDetail_20' ) start [2025-02-21 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525291', 'tblTempUsageDetail_20' ) end [2025-02-21 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525291', 'tblTempVendorCDR_20' ) start [2025-02-21 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525291', 'tblTempVendorCDR_20' ) end [2025-02-21 13:10:21] Production.INFO: ProcessCDR(1,14525291,1,1,2) [2025-02-21 13:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525291', 'tblTempUsageDetail_20' ) start [2025-02-21 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525291', 'tblTempUsageDetail_20' ) end [2025-02-21 13:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:10:26] Production.INFO: ==5932== Releasing lock... [2025-02-21 13:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:10:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:11:05 [end_date_ymd] => 2025-02-21 13:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:11:05' and `end` < '2025-02-21 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-21 13:11:18] Production.INFO: count ==5275 [2025-02-21 13:11:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:11:05 - End Time 2025-02-21 13:11:05 [2025-02-21 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525296', 'tblTempUsageDetail_20' ) start [2025-02-21 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525296', 'tblTempUsageDetail_20' ) end [2025-02-21 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525296', 'tblTempVendorCDR_20' ) start [2025-02-21 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525296', 'tblTempVendorCDR_20' ) end [2025-02-21 13:11:21] Production.INFO: ProcessCDR(1,14525296,1,1,2) [2025-02-21 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525296', 'tblTempUsageDetail_20' ) start [2025-02-21 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525296', 'tblTempUsageDetail_20' ) end [2025-02-21 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:11:26] Production.INFO: ==6013== Releasing lock... [2025-02-21 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:11:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:12:05 [end_date_ymd] => 2025-02-21 13:12:05 [RateCDR] => 1 ) [2025-02-21 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:12:05' and `end` < '2025-02-21 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:12:18] Production.INFO: count ==5302 [2025-02-21 13:12:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:12:05 - End Time 2025-02-21 13:12:05 [2025-02-21 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525301', 'tblTempUsageDetail_20' ) start [2025-02-21 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525301', 'tblTempUsageDetail_20' ) end [2025-02-21 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525301', 'tblTempVendorCDR_20' ) start [2025-02-21 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525301', 'tblTempVendorCDR_20' ) end [2025-02-21 13:12:21] Production.INFO: ProcessCDR(1,14525301,1,1,2) [2025-02-21 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525301', 'tblTempUsageDetail_20' ) start [2025-02-21 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525301', 'tblTempUsageDetail_20' ) end [2025-02-21 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:12:26] Production.INFO: ==6085== Releasing lock... [2025-02-21 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:12:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-21 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:13:06 [end_date_ymd] => 2025-02-21 13:13:06 [RateCDR] => 1 ) [2025-02-21 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:13:06' and `end` < '2025-02-21 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:13:19] Production.INFO: count ==5360 [2025-02-21 13:13:22] Production.ERROR: pbx CDR StartTime 2025-02-21 10:13:06 - End Time 2025-02-21 13:13:06 [2025-02-21 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525306', 'tblTempUsageDetail_20' ) start [2025-02-21 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525306', 'tblTempUsageDetail_20' ) end [2025-02-21 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525306', 'tblTempVendorCDR_20' ) start [2025-02-21 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525306', 'tblTempVendorCDR_20' ) end [2025-02-21 13:13:22] Production.INFO: ProcessCDR(1,14525306,1,1,2) [2025-02-21 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525306', 'tblTempUsageDetail_20' ) start [2025-02-21 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525306', 'tblTempUsageDetail_20' ) end [2025-02-21 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:13:28] Production.INFO: ==6162== Releasing lock... [2025-02-21 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:13:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:14:05 [end_date_ymd] => 2025-02-21 13:14:05 [RateCDR] => 1 ) [2025-02-21 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:14:05' and `end` < '2025-02-21 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:14:19] Production.INFO: count ==5360 [2025-02-21 13:14:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:14:05 - End Time 2025-02-21 13:14:05 [2025-02-21 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525311', 'tblTempUsageDetail_20' ) start [2025-02-21 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525311', 'tblTempUsageDetail_20' ) end [2025-02-21 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525311', 'tblTempVendorCDR_20' ) start [2025-02-21 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525311', 'tblTempVendorCDR_20' ) end [2025-02-21 13:14:21] Production.INFO: ProcessCDR(1,14525311,1,1,2) [2025-02-21 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525311', 'tblTempUsageDetail_20' ) start [2025-02-21 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525311', 'tblTempUsageDetail_20' ) end [2025-02-21 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:14:27] Production.INFO: ==6236== Releasing lock... [2025-02-21 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:14:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:15:05 [end_date_ymd] => 2025-02-21 13:15:05 [RateCDR] => 1 ) [2025-02-21 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:15:05' and `end` < '2025-02-21 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-21 13:15:18] Production.INFO: count ==5358 [2025-02-21 13:15:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:15:05 - End Time 2025-02-21 13:15:05 [2025-02-21 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525316', 'tblTempUsageDetail_20' ) start [2025-02-21 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525316', 'tblTempUsageDetail_20' ) end [2025-02-21 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525316', 'tblTempVendorCDR_20' ) start [2025-02-21 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525316', 'tblTempVendorCDR_20' ) end [2025-02-21 13:15:21] Production.INFO: ProcessCDR(1,14525316,1,1,2) [2025-02-21 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525316', 'tblTempUsageDetail_20' ) start [2025-02-21 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525316', 'tblTempUsageDetail_20' ) end [2025-02-21 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:15:27] Production.INFO: ==6351== Releasing lock... [2025-02-21 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:15:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:16:05 [end_date_ymd] => 2025-02-21 13:16:05 [RateCDR] => 1 ) [2025-02-21 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:16:05' and `end` < '2025-02-21 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:16:18] Production.INFO: count ==5364 [2025-02-21 13:16:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:16:05 - End Time 2025-02-21 13:16:05 [2025-02-21 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525321', 'tblTempUsageDetail_20' ) start [2025-02-21 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525321', 'tblTempUsageDetail_20' ) end [2025-02-21 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525321', 'tblTempVendorCDR_20' ) start [2025-02-21 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525321', 'tblTempVendorCDR_20' ) end [2025-02-21 13:16:21] Production.INFO: ProcessCDR(1,14525321,1,1,2) [2025-02-21 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525321', 'tblTempUsageDetail_20' ) start [2025-02-21 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525321', 'tblTempUsageDetail_20' ) end [2025-02-21 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:16:27] Production.INFO: ==6427== Releasing lock... [2025-02-21 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:16:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:17:06 [end_date_ymd] => 2025-02-21 13:17:06 [RateCDR] => 1 ) [2025-02-21 13: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-21 10:17:06' and `end` < '2025-02-21 13: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-21 13:17:18] Production.INFO: count ==5365 [2025-02-21 13:17:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:17:06 - End Time 2025-02-21 13:17:06 [2025-02-21 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525326', 'tblTempUsageDetail_20' ) start [2025-02-21 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525326', 'tblTempUsageDetail_20' ) end [2025-02-21 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525326', 'tblTempVendorCDR_20' ) start [2025-02-21 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525326', 'tblTempVendorCDR_20' ) end [2025-02-21 13:17:21] Production.INFO: ProcessCDR(1,14525326,1,1,2) [2025-02-21 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525326', 'tblTempUsageDetail_20' ) start [2025-02-21 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525326', 'tblTempUsageDetail_20' ) end [2025-02-21 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:17:27] Production.INFO: ==6498== Releasing lock... [2025-02-21 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:17:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:18:06 [end_date_ymd] => 2025-02-21 13:18:06 [RateCDR] => 1 ) [2025-02-21 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-21 10:18:06' and `end` < '2025-02-21 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-21 13:18:19] Production.INFO: count ==5360 [2025-02-21 13:18:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:18:06 - End Time 2025-02-21 13:18:06 [2025-02-21 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525331', 'tblTempUsageDetail_20' ) start [2025-02-21 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525331', 'tblTempUsageDetail_20' ) end [2025-02-21 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525331', 'tblTempVendorCDR_20' ) start [2025-02-21 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525331', 'tblTempVendorCDR_20' ) end [2025-02-21 13:18:22] Production.INFO: ProcessCDR(1,14525331,1,1,2) [2025-02-21 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525331', 'tblTempUsageDetail_20' ) start [2025-02-21 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525331', 'tblTempUsageDetail_20' ) end [2025-02-21 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:18:27] Production.INFO: ==6571== Releasing lock... [2025-02-21 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:18:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:19:06 [end_date_ymd] => 2025-02-21 13:19:06 [RateCDR] => 1 ) [2025-02-21 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:19:06' and `end` < '2025-02-21 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:19:19] Production.INFO: count ==5347 [2025-02-21 13:19:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:19:06 - End Time 2025-02-21 13:19:06 [2025-02-21 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525336', 'tblTempUsageDetail_20' ) start [2025-02-21 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525336', 'tblTempUsageDetail_20' ) end [2025-02-21 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525336', 'tblTempVendorCDR_20' ) start [2025-02-21 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525336', 'tblTempVendorCDR_20' ) end [2025-02-21 13:19:22] Production.INFO: ProcessCDR(1,14525336,1,1,2) [2025-02-21 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525336', 'tblTempUsageDetail_20' ) start [2025-02-21 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525336', 'tblTempUsageDetail_20' ) end [2025-02-21 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:19:27] Production.INFO: ==6649== Releasing lock... [2025-02-21 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:19:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:20:07 [end_date_ymd] => 2025-02-21 13:20:07 [RateCDR] => 1 ) [2025-02-21 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-21 10:20:07' and `end` < '2025-02-21 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-21 13:20:20] Production.INFO: count ==5369 [2025-02-21 13:20:22] Production.ERROR: pbx CDR StartTime 2025-02-21 10:20:07 - End Time 2025-02-21 13:20:07 [2025-02-21 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525342', 'tblTempUsageDetail_20' ) start [2025-02-21 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525342', 'tblTempUsageDetail_20' ) end [2025-02-21 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525342', 'tblTempVendorCDR_20' ) start [2025-02-21 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525342', 'tblTempVendorCDR_20' ) end [2025-02-21 13:20:22] Production.INFO: ProcessCDR(1,14525342,1,1,2) [2025-02-21 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525342', 'tblTempUsageDetail_20' ) start [2025-02-21 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525342', 'tblTempUsageDetail_20' ) end [2025-02-21 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:20:28] Production.INFO: ==6730== Releasing lock... [2025-02-21 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:20:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:21:06 [end_date_ymd] => 2025-02-21 13:21:06 [RateCDR] => 1 ) [2025-02-21 13: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-21 10:21:06' and `end` < '2025-02-21 13: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-21 13:21:20] Production.INFO: count ==5321 [2025-02-21 13:21:22] Production.ERROR: pbx CDR StartTime 2025-02-21 10:21:06 - End Time 2025-02-21 13:21:06 [2025-02-21 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525347', 'tblTempUsageDetail_20' ) start [2025-02-21 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525347', 'tblTempUsageDetail_20' ) end [2025-02-21 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525347', 'tblTempVendorCDR_20' ) start [2025-02-21 13:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525347', 'tblTempVendorCDR_20' ) end [2025-02-21 13:21:23] Production.INFO: ProcessCDR(1,14525347,1,1,2) [2025-02-21 13:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525347', 'tblTempUsageDetail_20' ) start [2025-02-21 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525347', 'tblTempUsageDetail_20' ) end [2025-02-21 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:21:28] Production.INFO: ==6805== Releasing lock... [2025-02-21 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:21:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-21 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:22:05 [end_date_ymd] => 2025-02-21 13:22:05 [RateCDR] => 1 ) [2025-02-21 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:22:05' and `end` < '2025-02-21 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:22:18] Production.INFO: count ==5299 [2025-02-21 13:22:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:22:05 - End Time 2025-02-21 13:22:05 [2025-02-21 13:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525352', 'tblTempUsageDetail_20' ) start [2025-02-21 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525352', 'tblTempUsageDetail_20' ) end [2025-02-21 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525352', 'tblTempVendorCDR_20' ) start [2025-02-21 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525352', 'tblTempVendorCDR_20' ) end [2025-02-21 13:22:20] Production.INFO: ProcessCDR(1,14525352,1,1,2) [2025-02-21 13:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525352', 'tblTempUsageDetail_20' ) start [2025-02-21 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525352', 'tblTempUsageDetail_20' ) end [2025-02-21 13:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:22:25] Production.INFO: ==6877== Releasing lock... [2025-02-21 13:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:22:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-21 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:23:05 [end_date_ymd] => 2025-02-21 13:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:23:05' and `end` < '2025-02-21 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-21 13:23:18] Production.INFO: count ==5318 [2025-02-21 13:23:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:23:05 - End Time 2025-02-21 13:23:05 [2025-02-21 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525357', 'tblTempUsageDetail_20' ) start [2025-02-21 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525357', 'tblTempUsageDetail_20' ) end [2025-02-21 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525357', 'tblTempVendorCDR_20' ) start [2025-02-21 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525357', 'tblTempVendorCDR_20' ) end [2025-02-21 13:23:20] Production.INFO: ProcessCDR(1,14525357,1,1,2) [2025-02-21 13:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525357', 'tblTempUsageDetail_20' ) start [2025-02-21 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525357', 'tblTempUsageDetail_20' ) end [2025-02-21 13:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:23:25] Production.INFO: ==6951== Releasing lock... [2025-02-21 13:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:23:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-21 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:24:05 [end_date_ymd] => 2025-02-21 13:24:05 [RateCDR] => 1 ) [2025-02-21 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:24:05' and `end` < '2025-02-21 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:24:18] Production.INFO: count ==5327 [2025-02-21 13:24:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:24:05 - End Time 2025-02-21 13:24:05 [2025-02-21 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525362', 'tblTempUsageDetail_20' ) start [2025-02-21 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525362', 'tblTempUsageDetail_20' ) end [2025-02-21 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525362', 'tblTempVendorCDR_20' ) start [2025-02-21 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525362', 'tblTempVendorCDR_20' ) end [2025-02-21 13:24:20] Production.INFO: ProcessCDR(1,14525362,1,1,2) [2025-02-21 13:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525362', 'tblTempUsageDetail_20' ) start [2025-02-21 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525362', 'tblTempUsageDetail_20' ) end [2025-02-21 13:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:24:25] Production.INFO: ==7026== Releasing lock... [2025-02-21 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:24:25] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:25:05 [end_date_ymd] => 2025-02-21 13:25:05 [RateCDR] => 1 ) [2025-02-21 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:25:05' and `end` < '2025-02-21 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-21 13:25:19] Production.INFO: count ==5352 [2025-02-21 13:25:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:25:05 - End Time 2025-02-21 13:25:05 [2025-02-21 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525367', 'tblTempUsageDetail_20' ) start [2025-02-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525367', 'tblTempUsageDetail_20' ) end [2025-02-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525367', 'tblTempVendorCDR_20' ) start [2025-02-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525367', 'tblTempVendorCDR_20' ) end [2025-02-21 13:25:21] Production.INFO: ProcessCDR(1,14525367,1,1,2) [2025-02-21 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525367', 'tblTempUsageDetail_20' ) start [2025-02-21 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525367', 'tblTempUsageDetail_20' ) end [2025-02-21 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:25:26] Production.INFO: ==7106== Releasing lock... [2025-02-21 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:25:26] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:26:05 [end_date_ymd] => 2025-02-21 13:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:26:05' and `end` < '2025-02-21 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-21 13:26:18] Production.INFO: count ==5345 [2025-02-21 13:26:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:26:05 - End Time 2025-02-21 13:26:05 [2025-02-21 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525372', 'tblTempUsageDetail_20' ) start [2025-02-21 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525372', 'tblTempUsageDetail_20' ) end [2025-02-21 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525372', 'tblTempVendorCDR_20' ) start [2025-02-21 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525372', 'tblTempVendorCDR_20' ) end [2025-02-21 13:26:21] Production.INFO: ProcessCDR(1,14525372,1,1,2) [2025-02-21 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525372', 'tblTempUsageDetail_20' ) start [2025-02-21 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525372', 'tblTempUsageDetail_20' ) end [2025-02-21 13:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:26:25] Production.INFO: ==7181== Releasing lock... [2025-02-21 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:26:25] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:27:05 [end_date_ymd] => 2025-02-21 13:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:27:05' and `end` < '2025-02-21 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-21 13:27:18] Production.INFO: count ==5350 [2025-02-21 13:27:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:27:05 - End Time 2025-02-21 13:27:05 [2025-02-21 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525377', 'tblTempUsageDetail_20' ) start [2025-02-21 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525377', 'tblTempUsageDetail_20' ) end [2025-02-21 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525377', 'tblTempVendorCDR_20' ) start [2025-02-21 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525377', 'tblTempVendorCDR_20' ) end [2025-02-21 13:27:21] Production.INFO: ProcessCDR(1,14525377,1,1,2) [2025-02-21 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525377', 'tblTempUsageDetail_20' ) start [2025-02-21 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525377', 'tblTempUsageDetail_20' ) end [2025-02-21 13:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:27:25] Production.INFO: ==7255== Releasing lock... [2025-02-21 13:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:27:25] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:28:05 [end_date_ymd] => 2025-02-21 13:28:05 [RateCDR] => 1 ) [2025-02-21 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:28:05' and `end` < '2025-02-21 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:28:18] Production.INFO: count ==5383 [2025-02-21 13:28:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:28:05 - End Time 2025-02-21 13:28:05 [2025-02-21 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525382', 'tblTempUsageDetail_20' ) start [2025-02-21 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525382', 'tblTempUsageDetail_20' ) end [2025-02-21 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525382', 'tblTempVendorCDR_20' ) start [2025-02-21 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525382', 'tblTempVendorCDR_20' ) end [2025-02-21 13:28:21] Production.INFO: ProcessCDR(1,14525382,1,1,2) [2025-02-21 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525382', 'tblTempUsageDetail_20' ) start [2025-02-21 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525382', 'tblTempUsageDetail_20' ) end [2025-02-21 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:28:26] Production.INFO: ==7338== Releasing lock... [2025-02-21 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:28:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:29:05 [end_date_ymd] => 2025-02-21 13:29:05 [RateCDR] => 1 ) [2025-02-21 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:29:05' and `end` < '2025-02-21 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-21 13:29:18] Production.INFO: count ==5390 [2025-02-21 13:29:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:29:05 - End Time 2025-02-21 13:29:05 [2025-02-21 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525387', 'tblTempUsageDetail_20' ) start [2025-02-21 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525387', 'tblTempUsageDetail_20' ) end [2025-02-21 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525387', 'tblTempVendorCDR_20' ) start [2025-02-21 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525387', 'tblTempVendorCDR_20' ) end [2025-02-21 13:29:20] Production.INFO: ProcessCDR(1,14525387,1,1,2) [2025-02-21 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525387', 'tblTempUsageDetail_20' ) start [2025-02-21 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525387', 'tblTempUsageDetail_20' ) end [2025-02-21 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:29:25] Production.INFO: ==7427== Releasing lock... [2025-02-21 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:29:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:30:06 [end_date_ymd] => 2025-02-21 13:30:06 [RateCDR] => 1 ) [2025-02-21 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:30:06' and `end` < '2025-02-21 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:30:18] Production.INFO: count ==5373 [2025-02-21 13:30:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:30:06 - End Time 2025-02-21 13:30:06 [2025-02-21 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525392', 'tblTempUsageDetail_20' ) start [2025-02-21 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525392', 'tblTempUsageDetail_20' ) end [2025-02-21 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525392', 'tblTempVendorCDR_20' ) start [2025-02-21 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525392', 'tblTempVendorCDR_20' ) end [2025-02-21 13:30:21] Production.INFO: ProcessCDR(1,14525392,1,1,2) [2025-02-21 13:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525392', 'tblTempUsageDetail_20' ) start [2025-02-21 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525392', 'tblTempUsageDetail_20' ) end [2025-02-21 13:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:30:26] Production.INFO: ==7510== Releasing lock... [2025-02-21 13:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:30:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:31:05 [end_date_ymd] => 2025-02-21 13:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:31:05' and `end` < '2025-02-21 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-21 13:31:18] Production.INFO: count ==5379 [2025-02-21 13:31:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:31:05 - End Time 2025-02-21 13:31:05 [2025-02-21 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525398', 'tblTempUsageDetail_20' ) start [2025-02-21 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525398', 'tblTempUsageDetail_20' ) end [2025-02-21 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525398', 'tblTempVendorCDR_20' ) start [2025-02-21 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525398', 'tblTempVendorCDR_20' ) end [2025-02-21 13:31:21] Production.INFO: ProcessCDR(1,14525398,1,1,2) [2025-02-21 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525398', 'tblTempUsageDetail_20' ) start [2025-02-21 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525398', 'tblTempUsageDetail_20' ) end [2025-02-21 13:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:31:26] Production.INFO: ==7632== Releasing lock... [2025-02-21 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:31:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:32:05 [end_date_ymd] => 2025-02-21 13:32:05 [RateCDR] => 1 ) [2025-02-21 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:32:05' and `end` < '2025-02-21 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:32:18] Production.INFO: count ==5362 [2025-02-21 13:32:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:32:05 - End Time 2025-02-21 13:32:05 [2025-02-21 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525403', 'tblTempUsageDetail_20' ) start [2025-02-21 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525403', 'tblTempUsageDetail_20' ) end [2025-02-21 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525403', 'tblTempVendorCDR_20' ) start [2025-02-21 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525403', 'tblTempVendorCDR_20' ) end [2025-02-21 13:32:21] Production.INFO: ProcessCDR(1,14525403,1,1,2) [2025-02-21 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525403', 'tblTempUsageDetail_20' ) start [2025-02-21 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525403', 'tblTempUsageDetail_20' ) end [2025-02-21 13:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:32:25] Production.INFO: ==7719== Releasing lock... [2025-02-21 13:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:32:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:33:05 [end_date_ymd] => 2025-02-21 13:33:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:33:05' and `end` < '2025-02-21 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-21 13:33:18] Production.INFO: count ==5355 [2025-02-21 13:33:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:33:05 - End Time 2025-02-21 13:33:05 [2025-02-21 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525408', 'tblTempUsageDetail_20' ) start [2025-02-21 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525408', 'tblTempUsageDetail_20' ) end [2025-02-21 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525408', 'tblTempVendorCDR_20' ) start [2025-02-21 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525408', 'tblTempVendorCDR_20' ) end [2025-02-21 13:33:21] Production.INFO: ProcessCDR(1,14525408,1,1,2) [2025-02-21 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525408', 'tblTempUsageDetail_20' ) start [2025-02-21 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525408', 'tblTempUsageDetail_20' ) end [2025-02-21 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:33:26] Production.INFO: ==7810== Releasing lock... [2025-02-21 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:33:26] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:34:05 [end_date_ymd] => 2025-02-21 13:34:05 [RateCDR] => 1 ) [2025-02-21 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:34:05' and `end` < '2025-02-21 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:34:18] Production.INFO: count ==5364 [2025-02-21 13:34:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:34:05 - End Time 2025-02-21 13:34:05 [2025-02-21 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525413', 'tblTempUsageDetail_20' ) start [2025-02-21 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525413', 'tblTempUsageDetail_20' ) end [2025-02-21 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525413', 'tblTempVendorCDR_20' ) start [2025-02-21 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525413', 'tblTempVendorCDR_20' ) end [2025-02-21 13:34:20] Production.INFO: ProcessCDR(1,14525413,1,1,2) [2025-02-21 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525413', 'tblTempUsageDetail_20' ) start [2025-02-21 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525413', 'tblTempUsageDetail_20' ) end [2025-02-21 13:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:34:25] Production.INFO: ==7896== Releasing lock... [2025-02-21 13:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:34:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:35:05 [end_date_ymd] => 2025-02-21 13:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:35:05' and `end` < '2025-02-21 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-21 13:35:18] Production.INFO: count ==5372 [2025-02-21 13:35:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:35:05 - End Time 2025-02-21 13:35:05 [2025-02-21 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525418', 'tblTempUsageDetail_20' ) start [2025-02-21 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525418', 'tblTempUsageDetail_20' ) end [2025-02-21 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525418', 'tblTempVendorCDR_20' ) start [2025-02-21 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525418', 'tblTempVendorCDR_20' ) end [2025-02-21 13:35:21] Production.INFO: ProcessCDR(1,14525418,1,1,2) [2025-02-21 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525418', 'tblTempUsageDetail_20' ) start [2025-02-21 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525418', 'tblTempUsageDetail_20' ) end [2025-02-21 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:35:25] Production.INFO: ==7983== Releasing lock... [2025-02-21 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:35:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:36:05 [end_date_ymd] => 2025-02-21 13:36:05 [RateCDR] => 1 ) [2025-02-21 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:36:05' and `end` < '2025-02-21 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:36:17] Production.INFO: count ==5377 [2025-02-21 13:36:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:36:05 - End Time 2025-02-21 13:36:05 [2025-02-21 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525423', 'tblTempUsageDetail_20' ) start [2025-02-21 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525423', 'tblTempUsageDetail_20' ) end [2025-02-21 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525423', 'tblTempVendorCDR_20' ) start [2025-02-21 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525423', 'tblTempVendorCDR_20' ) end [2025-02-21 13:36:20] Production.INFO: ProcessCDR(1,14525423,1,1,2) [2025-02-21 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525423', 'tblTempUsageDetail_20' ) start [2025-02-21 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525423', 'tblTempUsageDetail_20' ) end [2025-02-21 13:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:36:24] Production.INFO: ==8069== Releasing lock... [2025-02-21 13:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:36:24] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:37:05 [end_date_ymd] => 2025-02-21 13:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:37:05' and `end` < '2025-02-21 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-21 13:37:18] Production.INFO: count ==5399 [2025-02-21 13:37:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:37:05 - End Time 2025-02-21 13:37:05 [2025-02-21 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525428', 'tblTempUsageDetail_20' ) start [2025-02-21 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525428', 'tblTempUsageDetail_20' ) end [2025-02-21 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525428', 'tblTempVendorCDR_20' ) start [2025-02-21 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525428', 'tblTempVendorCDR_20' ) end [2025-02-21 13:37:20] Production.INFO: ProcessCDR(1,14525428,1,1,2) [2025-02-21 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525428', 'tblTempUsageDetail_20' ) start [2025-02-21 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525428', 'tblTempUsageDetail_20' ) end [2025-02-21 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:37:23] Production.INFO: ==8148== Releasing lock... [2025-02-21 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:37:23] Production.INFO: 68.5 MB #Memory Used# [2025-02-21 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:38:06 [end_date_ymd] => 2025-02-21 13:38:06 [RateCDR] => 1 ) [2025-02-21 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-21 10:38:06' and `end` < '2025-02-21 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-21 13:38:18] Production.INFO: count ==5392 [2025-02-21 13:38:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:38:06 - End Time 2025-02-21 13:38:06 [2025-02-21 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525433', 'tblTempUsageDetail_20' ) start [2025-02-21 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525433', 'tblTempUsageDetail_20' ) end [2025-02-21 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525433', 'tblTempVendorCDR_20' ) start [2025-02-21 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525433', 'tblTempVendorCDR_20' ) end [2025-02-21 13:38:21] Production.INFO: ProcessCDR(1,14525433,1,1,2) [2025-02-21 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525433', 'tblTempUsageDetail_20' ) start [2025-02-21 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525433', 'tblTempUsageDetail_20' ) end [2025-02-21 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:38:25] Production.INFO: ==8238== Releasing lock... [2025-02-21 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:38:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:39:05 [end_date_ymd] => 2025-02-21 13:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:39:05' and `end` < '2025-02-21 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-21 13:39:18] Production.INFO: count ==5398 [2025-02-21 13:39:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:39:05 - End Time 2025-02-21 13:39:05 [2025-02-21 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525438', 'tblTempUsageDetail_20' ) start [2025-02-21 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525438', 'tblTempUsageDetail_20' ) end [2025-02-21 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525438', 'tblTempVendorCDR_20' ) start [2025-02-21 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525438', 'tblTempVendorCDR_20' ) end [2025-02-21 13:39:21] Production.INFO: ProcessCDR(1,14525438,1,1,2) [2025-02-21 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525438', 'tblTempUsageDetail_20' ) start [2025-02-21 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525438', 'tblTempUsageDetail_20' ) end [2025-02-21 13:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:39:24] Production.INFO: ==8325== Releasing lock... [2025-02-21 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:39:24] Production.INFO: 68.5 MB #Memory Used# [2025-02-21 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:40:06 [end_date_ymd] => 2025-02-21 13:40:06 [RateCDR] => 1 ) [2025-02-21 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:40:06' and `end` < '2025-02-21 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:40:19] Production.INFO: count ==5388 [2025-02-21 13:40:22] Production.ERROR: pbx CDR StartTime 2025-02-21 10:40:06 - End Time 2025-02-21 13:40:06 [2025-02-21 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525444', 'tblTempUsageDetail_20' ) start [2025-02-21 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525444', 'tblTempUsageDetail_20' ) end [2025-02-21 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525444', 'tblTempVendorCDR_20' ) start [2025-02-21 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525444', 'tblTempVendorCDR_20' ) end [2025-02-21 13:40:22] Production.INFO: ProcessCDR(1,14525444,1,1,2) [2025-02-21 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525444', 'tblTempUsageDetail_20' ) start [2025-02-21 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525444', 'tblTempUsageDetail_20' ) end [2025-02-21 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:40:27] Production.INFO: ==8414== Releasing lock... [2025-02-21 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:40:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:41:05 [end_date_ymd] => 2025-02-21 13:41:05 [RateCDR] => 1 ) [2025-02-21 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:41:05' and `end` < '2025-02-21 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:41:18] Production.INFO: count ==5332 [2025-02-21 13:41:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:41:05 - End Time 2025-02-21 13:41:05 [2025-02-21 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525449', 'tblTempUsageDetail_20' ) start [2025-02-21 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525449', 'tblTempUsageDetail_20' ) end [2025-02-21 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525449', 'tblTempVendorCDR_20' ) start [2025-02-21 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525449', 'tblTempVendorCDR_20' ) end [2025-02-21 13:41:20] Production.INFO: ProcessCDR(1,14525449,1,1,2) [2025-02-21 13:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525449', 'tblTempUsageDetail_20' ) start [2025-02-21 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525449', 'tblTempUsageDetail_20' ) end [2025-02-21 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:41:25] Production.INFO: ==8501== Releasing lock... [2025-02-21 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:41:25] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:42:06 [end_date_ymd] => 2025-02-21 13:42:06 [RateCDR] => 1 ) [2025-02-21 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:42:06' and `end` < '2025-02-21 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:42:18] Production.INFO: count ==5326 [2025-02-21 13:42:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:42:06 - End Time 2025-02-21 13:42:06 [2025-02-21 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525454', 'tblTempUsageDetail_20' ) start [2025-02-21 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525454', 'tblTempUsageDetail_20' ) end [2025-02-21 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525454', 'tblTempVendorCDR_20' ) start [2025-02-21 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525454', 'tblTempVendorCDR_20' ) end [2025-02-21 13:42:21] Production.INFO: ProcessCDR(1,14525454,1,1,2) [2025-02-21 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525454', 'tblTempUsageDetail_20' ) start [2025-02-21 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525454', 'tblTempUsageDetail_20' ) end [2025-02-21 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:42:27] Production.INFO: ==8586== Releasing lock... [2025-02-21 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:42:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-21 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:43:05 [end_date_ymd] => 2025-02-21 13:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:43:05' and `end` < '2025-02-21 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-21 13:43:18] Production.INFO: count ==5330 [2025-02-21 13:43:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:43:05 - End Time 2025-02-21 13:43:05 [2025-02-21 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525459', 'tblTempUsageDetail_20' ) start [2025-02-21 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525459', 'tblTempUsageDetail_20' ) end [2025-02-21 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525459', 'tblTempVendorCDR_20' ) start [2025-02-21 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525459', 'tblTempVendorCDR_20' ) end [2025-02-21 13:43:20] Production.INFO: ProcessCDR(1,14525459,1,1,2) [2025-02-21 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525459', 'tblTempUsageDetail_20' ) start [2025-02-21 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525459', 'tblTempUsageDetail_20' ) end [2025-02-21 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:43:25] Production.INFO: ==8670== Releasing lock... [2025-02-21 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:43:25] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:44:06 [end_date_ymd] => 2025-02-21 13:44:06 [RateCDR] => 1 ) [2025-02-21 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:44:06' and `end` < '2025-02-21 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:44:19] Production.INFO: count ==5308 [2025-02-21 13:44:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:44:06 - End Time 2025-02-21 13:44:06 [2025-02-21 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525464', 'tblTempUsageDetail_20' ) start [2025-02-21 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525464', 'tblTempUsageDetail_20' ) end [2025-02-21 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525464', 'tblTempVendorCDR_20' ) start [2025-02-21 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525464', 'tblTempVendorCDR_20' ) end [2025-02-21 13:44:21] Production.INFO: ProcessCDR(1,14525464,1,1,2) [2025-02-21 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525464', 'tblTempUsageDetail_20' ) start [2025-02-21 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525464', 'tblTempUsageDetail_20' ) end [2025-02-21 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:44:27] Production.INFO: ==8754== Releasing lock... [2025-02-21 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:44:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-21 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:45:06 [end_date_ymd] => 2025-02-21 13:45:06 [RateCDR] => 1 ) [2025-02-21 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-21 10:45:06' and `end` < '2025-02-21 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-21 13:45:18] Production.INFO: count ==5334 [2025-02-21 13:45:23] Production.ERROR: pbx CDR StartTime 2025-02-21 10:45:06 - End Time 2025-02-21 13:45:06 [2025-02-21 13:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525469', 'tblTempUsageDetail_20' ) start [2025-02-21 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525469', 'tblTempUsageDetail_20' ) end [2025-02-21 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525469', 'tblTempVendorCDR_20' ) start [2025-02-21 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525469', 'tblTempVendorCDR_20' ) end [2025-02-21 13:45:23] Production.INFO: ProcessCDR(1,14525469,1,1,2) [2025-02-21 13:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525469', 'tblTempUsageDetail_20' ) start [2025-02-21 13:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525469', 'tblTempUsageDetail_20' ) end [2025-02-21 13:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:45:29] Production.INFO: ==8838== Releasing lock... [2025-02-21 13:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:45:29] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:46:06 [end_date_ymd] => 2025-02-21 13:46:06 [RateCDR] => 1 ) [2025-02-21 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-21 10:46:06' and `end` < '2025-02-21 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-21 13:46:19] Production.INFO: count ==5336 [2025-02-21 13:46:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:46:06 - End Time 2025-02-21 13:46:06 [2025-02-21 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525474', 'tblTempUsageDetail_20' ) start [2025-02-21 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525474', 'tblTempUsageDetail_20' ) end [2025-02-21 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525474', 'tblTempVendorCDR_20' ) start [2025-02-21 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525474', 'tblTempVendorCDR_20' ) end [2025-02-21 13:46:21] Production.INFO: ProcessCDR(1,14525474,1,1,2) [2025-02-21 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525474', 'tblTempUsageDetail_20' ) start [2025-02-21 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525474', 'tblTempUsageDetail_20' ) end [2025-02-21 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:46:26] Production.INFO: ==8974== Releasing lock... [2025-02-21 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:46:26] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:47:05 [end_date_ymd] => 2025-02-21 13:47:05 [RateCDR] => 1 ) [2025-02-21 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:47:05' and `end` < '2025-02-21 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:47:18] Production.INFO: count ==5358 [2025-02-21 13:47:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:47:05 - End Time 2025-02-21 13:47:05 [2025-02-21 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525479', 'tblTempUsageDetail_20' ) start [2025-02-21 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525479', 'tblTempUsageDetail_20' ) end [2025-02-21 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525479', 'tblTempVendorCDR_20' ) start [2025-02-21 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525479', 'tblTempVendorCDR_20' ) end [2025-02-21 13:47:21] Production.INFO: ProcessCDR(1,14525479,1,1,2) [2025-02-21 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525479', 'tblTempUsageDetail_20' ) start [2025-02-21 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525479', 'tblTempUsageDetail_20' ) end [2025-02-21 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:47:27] Production.INFO: ==9059== Releasing lock... [2025-02-21 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:47:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:48:06 [end_date_ymd] => 2025-02-21 13:48:06 [RateCDR] => 1 ) [2025-02-21 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:48:06' and `end` < '2025-02-21 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:48:19] Production.INFO: count ==5337 [2025-02-21 13:48:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:48:06 - End Time 2025-02-21 13:48:06 [2025-02-21 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525484', 'tblTempUsageDetail_20' ) start [2025-02-21 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525484', 'tblTempUsageDetail_20' ) end [2025-02-21 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525484', 'tblTempVendorCDR_20' ) start [2025-02-21 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525484', 'tblTempVendorCDR_20' ) end [2025-02-21 13:48:22] Production.INFO: ProcessCDR(1,14525484,1,1,2) [2025-02-21 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525484', 'tblTempUsageDetail_20' ) start [2025-02-21 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525484', 'tblTempUsageDetail_20' ) end [2025-02-21 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:48:27] Production.INFO: ==9140== Releasing lock... [2025-02-21 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:48:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:49:05 [end_date_ymd] => 2025-02-21 13:49:05 [RateCDR] => 1 ) [2025-02-21 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:49:05' and `end` < '2025-02-21 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:49:18] Production.INFO: count ==5335 [2025-02-21 13:49:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:49:05 - End Time 2025-02-21 13:49:05 [2025-02-21 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525489', 'tblTempUsageDetail_20' ) start [2025-02-21 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525489', 'tblTempUsageDetail_20' ) end [2025-02-21 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525489', 'tblTempVendorCDR_20' ) start [2025-02-21 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525489', 'tblTempVendorCDR_20' ) end [2025-02-21 13:49:21] Production.INFO: ProcessCDR(1,14525489,1,1,2) [2025-02-21 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525489', 'tblTempUsageDetail_20' ) start [2025-02-21 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525489', 'tblTempUsageDetail_20' ) end [2025-02-21 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:49:27] Production.INFO: ==9230== Releasing lock... [2025-02-21 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:49:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:50:07 [end_date_ymd] => 2025-02-21 13:50:07 [RateCDR] => 1 ) [2025-02-21 13: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-21 10:50:07' and `end` < '2025-02-21 13: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-21 13:50:19] Production.INFO: count ==5339 [2025-02-21 13:50:22] Production.ERROR: pbx CDR StartTime 2025-02-21 10:50:07 - End Time 2025-02-21 13:50:07 [2025-02-21 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525495', 'tblTempUsageDetail_20' ) start [2025-02-21 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525495', 'tblTempUsageDetail_20' ) end [2025-02-21 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525495', 'tblTempVendorCDR_20' ) start [2025-02-21 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525495', 'tblTempVendorCDR_20' ) end [2025-02-21 13:50:22] Production.INFO: ProcessCDR(1,14525495,1,1,2) [2025-02-21 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525495', 'tblTempUsageDetail_20' ) start [2025-02-21 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525495', 'tblTempUsageDetail_20' ) end [2025-02-21 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:50:28] Production.INFO: ==9319== Releasing lock... [2025-02-21 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:50:28] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:51:05 [end_date_ymd] => 2025-02-21 13:51:05 [RateCDR] => 1 ) [2025-02-21 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:51:05' and `end` < '2025-02-21 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:51:18] Production.INFO: count ==5367 [2025-02-21 13:51:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:51:05 - End Time 2025-02-21 13:51:05 [2025-02-21 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525500', 'tblTempUsageDetail_20' ) start [2025-02-21 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525500', 'tblTempUsageDetail_20' ) end [2025-02-21 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525500', 'tblTempVendorCDR_20' ) start [2025-02-21 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525500', 'tblTempVendorCDR_20' ) end [2025-02-21 13:51:21] Production.INFO: ProcessCDR(1,14525500,1,1,2) [2025-02-21 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525500', 'tblTempUsageDetail_20' ) start [2025-02-21 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525500', 'tblTempUsageDetail_20' ) end [2025-02-21 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:51:26] Production.INFO: ==9406== Releasing lock... [2025-02-21 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:51:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:52:06 [end_date_ymd] => 2025-02-21 13:52:06 [RateCDR] => 1 ) [2025-02-21 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:52:06' and `end` < '2025-02-21 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:52:19] Production.INFO: count ==5378 [2025-02-21 13:52:22] Production.ERROR: pbx CDR StartTime 2025-02-21 10:52:06 - End Time 2025-02-21 13:52:06 [2025-02-21 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525505', 'tblTempUsageDetail_20' ) start [2025-02-21 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525505', 'tblTempUsageDetail_20' ) end [2025-02-21 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525505', 'tblTempVendorCDR_20' ) start [2025-02-21 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525505', 'tblTempVendorCDR_20' ) end [2025-02-21 13:52:22] Production.INFO: ProcessCDR(1,14525505,1,1,2) [2025-02-21 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525505', 'tblTempUsageDetail_20' ) start [2025-02-21 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525505', 'tblTempUsageDetail_20' ) end [2025-02-21 13:52:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:52:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:52:28] Production.INFO: ==9487== Releasing lock... [2025-02-21 13:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:52:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:53:06 [end_date_ymd] => 2025-02-21 13:53:06 [RateCDR] => 1 ) [2025-02-21 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-21 10:53:06' and `end` < '2025-02-21 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-21 13:53:19] Production.INFO: count ==5381 [2025-02-21 13:53:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:53:06 - End Time 2025-02-21 13:53:06 [2025-02-21 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525510', 'tblTempUsageDetail_20' ) start [2025-02-21 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525510', 'tblTempUsageDetail_20' ) end [2025-02-21 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525510', 'tblTempVendorCDR_20' ) start [2025-02-21 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525510', 'tblTempVendorCDR_20' ) end [2025-02-21 13:53:22] Production.INFO: ProcessCDR(1,14525510,1,1,2) [2025-02-21 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525510', 'tblTempUsageDetail_20' ) start [2025-02-21 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525510', 'tblTempUsageDetail_20' ) end [2025-02-21 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:53:27] Production.INFO: ==9578== Releasing lock... [2025-02-21 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:53:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:54:05 [end_date_ymd] => 2025-02-21 13:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:54:05' and `end` < '2025-02-21 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-21 13:54:18] Production.INFO: count ==5346 [2025-02-21 13:54:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:54:05 - End Time 2025-02-21 13:54:05 [2025-02-21 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525515', 'tblTempUsageDetail_20' ) start [2025-02-21 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525515', 'tblTempUsageDetail_20' ) end [2025-02-21 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525515', 'tblTempVendorCDR_20' ) start [2025-02-21 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525515', 'tblTempVendorCDR_20' ) end [2025-02-21 13:54:21] Production.INFO: ProcessCDR(1,14525515,1,1,2) [2025-02-21 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525515', 'tblTempUsageDetail_20' ) start [2025-02-21 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525515', 'tblTempUsageDetail_20' ) end [2025-02-21 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:54:27] Production.INFO: ==9670== Releasing lock... [2025-02-21 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:54:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:55:06 [end_date_ymd] => 2025-02-21 13:55:06 [RateCDR] => 1 ) [2025-02-21 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-21 10:55:06' and `end` < '2025-02-21 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-21 13:55:19] Production.INFO: count ==5339 [2025-02-21 13:55:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:55:06 - End Time 2025-02-21 13:55:06 [2025-02-21 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525520', 'tblTempUsageDetail_20' ) start [2025-02-21 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525520', 'tblTempUsageDetail_20' ) end [2025-02-21 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525520', 'tblTempVendorCDR_20' ) start [2025-02-21 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525520', 'tblTempVendorCDR_20' ) end [2025-02-21 13:55:21] Production.INFO: ProcessCDR(1,14525520,1,1,2) [2025-02-21 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525520', 'tblTempUsageDetail_20' ) start [2025-02-21 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525520', 'tblTempUsageDetail_20' ) end [2025-02-21 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:55:27] Production.INFO: ==9751== Releasing lock... [2025-02-21 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:55:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:56:05 [end_date_ymd] => 2025-02-21 13:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:56:05' and `end` < '2025-02-21 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-21 13:56:18] Production.INFO: count ==5350 [2025-02-21 13:56:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:56:05 - End Time 2025-02-21 13:56:05 [2025-02-21 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525525', 'tblTempUsageDetail_20' ) start [2025-02-21 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525525', 'tblTempUsageDetail_20' ) end [2025-02-21 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525525', 'tblTempVendorCDR_20' ) start [2025-02-21 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525525', 'tblTempVendorCDR_20' ) end [2025-02-21 13:56:21] Production.INFO: ProcessCDR(1,14525525,1,1,2) [2025-02-21 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525525', 'tblTempUsageDetail_20' ) start [2025-02-21 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525525', 'tblTempUsageDetail_20' ) end [2025-02-21 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:56:27] Production.INFO: ==9835== Releasing lock... [2025-02-21 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:56:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:57:05 [end_date_ymd] => 2025-02-21 13:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:57:05' and `end` < '2025-02-21 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-21 13:57:18] Production.INFO: count ==5356 [2025-02-21 13:57:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:57:05 - End Time 2025-02-21 13:57:05 [2025-02-21 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525530', 'tblTempUsageDetail_20' ) start [2025-02-21 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525530', 'tblTempUsageDetail_20' ) end [2025-02-21 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525530', 'tblTempVendorCDR_20' ) start [2025-02-21 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525530', 'tblTempVendorCDR_20' ) end [2025-02-21 13:57:21] Production.INFO: ProcessCDR(1,14525530,1,1,2) [2025-02-21 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525530', 'tblTempUsageDetail_20' ) start [2025-02-21 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525530', 'tblTempUsageDetail_20' ) end [2025-02-21 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:57:27] Production.INFO: ==9924== Releasing lock... [2025-02-21 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:57:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:58:05 [end_date_ymd] => 2025-02-21 13:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 10:58:05' and `end` < '2025-02-21 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-21 13:58:18] Production.INFO: count ==5358 [2025-02-21 13:58:20] Production.ERROR: pbx CDR StartTime 2025-02-21 10:58:05 - End Time 2025-02-21 13:58:05 [2025-02-21 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525535', 'tblTempUsageDetail_20' ) start [2025-02-21 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525535', 'tblTempUsageDetail_20' ) end [2025-02-21 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525535', 'tblTempVendorCDR_20' ) start [2025-02-21 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525535', 'tblTempVendorCDR_20' ) end [2025-02-21 13:58:21] Production.INFO: ProcessCDR(1,14525535,1,1,2) [2025-02-21 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525535', 'tblTempUsageDetail_20' ) start [2025-02-21 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525535', 'tblTempUsageDetail_20' ) end [2025-02-21 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:58:26] Production.INFO: ==10008== Releasing lock... [2025-02-21 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:58:26] Production.INFO: 68 MB #Memory Used# [2025-02-21 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 10:59:05 [end_date_ymd] => 2025-02-21 13:59:05 [RateCDR] => 1 ) [2025-02-21 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 10:59:05' and `end` < '2025-02-21 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 13:59:18] Production.INFO: count ==5355 [2025-02-21 13:59:21] Production.ERROR: pbx CDR StartTime 2025-02-21 10:59:05 - End Time 2025-02-21 13:59:05 [2025-02-21 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525540', 'tblTempUsageDetail_20' ) start [2025-02-21 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525540', 'tblTempUsageDetail_20' ) end [2025-02-21 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525540', 'tblTempVendorCDR_20' ) start [2025-02-21 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525540', 'tblTempVendorCDR_20' ) end [2025-02-21 13:59:21] Production.INFO: ProcessCDR(1,14525540,1,1,2) [2025-02-21 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525540', 'tblTempUsageDetail_20' ) start [2025-02-21 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525540', 'tblTempUsageDetail_20' ) end [2025-02-21 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 13:59:26] Production.INFO: ==10094== Releasing lock... [2025-02-21 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 13:59:26] Production.INFO: 68 MB #Memory Used# [2025-02-21 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:00:06 [end_date_ymd] => 2025-02-21 14:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:00:06' and `end` < '2025-02-21 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-21 14:00:18] Production.INFO: count ==5391 [2025-02-21 14:00:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:00:06 - End Time 2025-02-21 14:00:06 [2025-02-21 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525546', 'tblTempUsageDetail_20' ) start [2025-02-21 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525546', 'tblTempUsageDetail_20' ) end [2025-02-21 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525546', 'tblTempVendorCDR_20' ) start [2025-02-21 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525546', 'tblTempVendorCDR_20' ) end [2025-02-21 14:00:22] Production.INFO: ProcessCDR(1,14525546,1,1,2) [2025-02-21 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525546', 'tblTempUsageDetail_20' ) start [2025-02-21 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525546', 'tblTempUsageDetail_20' ) end [2025-02-21 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:00:28] Production.INFO: ==10184== Releasing lock... [2025-02-21 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:00:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:01:05 [end_date_ymd] => 2025-02-21 14:01:05 [RateCDR] => 1 ) [2025-02-21 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:01:05' and `end` < '2025-02-21 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:01:18] Production.INFO: count ==5383 [2025-02-21 14:01:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:01:05 - End Time 2025-02-21 14:01:05 [2025-02-21 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525548', 'tblTempUsageDetail_20' ) start [2025-02-21 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525548', 'tblTempUsageDetail_20' ) end [2025-02-21 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525548', 'tblTempVendorCDR_20' ) start [2025-02-21 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525548', 'tblTempVendorCDR_20' ) end [2025-02-21 14:01:21] Production.INFO: ProcessCDR(1,14525548,1,1,2) [2025-02-21 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525548', 'tblTempUsageDetail_20' ) start [2025-02-21 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525548', 'tblTempUsageDetail_20' ) end [2025-02-21 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:01:26] Production.INFO: ==10279== Releasing lock... [2025-02-21 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:01:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:02:06 [end_date_ymd] => 2025-02-21 14:02:06 [RateCDR] => 1 ) [2025-02-21 14: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-21 11:02:06' and `end` < '2025-02-21 14: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-21 14:02:19] Production.INFO: count ==5381 [2025-02-21 14:02:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:02:06 - End Time 2025-02-21 14:02:06 [2025-02-21 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525556', 'tblTempUsageDetail_20' ) start [2025-02-21 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525556', 'tblTempUsageDetail_20' ) end [2025-02-21 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525556', 'tblTempVendorCDR_20' ) start [2025-02-21 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525556', 'tblTempVendorCDR_20' ) end [2025-02-21 14:02:22] Production.INFO: ProcessCDR(1,14525556,1,1,2) [2025-02-21 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525556', 'tblTempUsageDetail_20' ) start [2025-02-21 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525556', 'tblTempUsageDetail_20' ) end [2025-02-21 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:02:27] Production.INFO: ==10406== Releasing lock... [2025-02-21 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:02:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:03:06 [end_date_ymd] => 2025-02-21 14:03:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:03:06' and `end` < '2025-02-21 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-21 14:03:18] Production.INFO: count ==5406 [2025-02-21 14:03:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:03:06 - End Time 2025-02-21 14:03:06 [2025-02-21 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525561', 'tblTempUsageDetail_20' ) start [2025-02-21 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525561', 'tblTempUsageDetail_20' ) end [2025-02-21 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525561', 'tblTempVendorCDR_20' ) start [2025-02-21 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525561', 'tblTempVendorCDR_20' ) end [2025-02-21 14:03:21] Production.INFO: ProcessCDR(1,14525561,1,1,2) [2025-02-21 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525561', 'tblTempUsageDetail_20' ) start [2025-02-21 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525561', 'tblTempUsageDetail_20' ) end [2025-02-21 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:03:27] Production.INFO: ==10488== Releasing lock... [2025-02-21 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:03:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-21 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:04:05 [end_date_ymd] => 2025-02-21 14:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:04:05' and `end` < '2025-02-21 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-21 14:04:18] Production.INFO: count ==5436 [2025-02-21 14:04:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:04:05 - End Time 2025-02-21 14:04:05 [2025-02-21 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525566', 'tblTempUsageDetail_20' ) start [2025-02-21 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525566', 'tblTempUsageDetail_20' ) end [2025-02-21 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525566', 'tblTempVendorCDR_20' ) start [2025-02-21 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525566', 'tblTempVendorCDR_20' ) end [2025-02-21 14:04:21] Production.INFO: ProcessCDR(1,14525566,1,1,2) [2025-02-21 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525566', 'tblTempUsageDetail_20' ) start [2025-02-21 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525566', 'tblTempUsageDetail_20' ) end [2025-02-21 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:04:26] Production.INFO: ==10574== Releasing lock... [2025-02-21 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:04:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-21 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:05:06 [end_date_ymd] => 2025-02-21 14:05:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:05:06' and `end` < '2025-02-21 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-21 14:05:19] Production.INFO: count ==5429 [2025-02-21 14:05:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:05:06 - End Time 2025-02-21 14:05:06 [2025-02-21 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525571', 'tblTempUsageDetail_20' ) start [2025-02-21 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525571', 'tblTempUsageDetail_20' ) end [2025-02-21 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525571', 'tblTempVendorCDR_20' ) start [2025-02-21 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525571', 'tblTempVendorCDR_20' ) end [2025-02-21 14:05:22] Production.INFO: ProcessCDR(1,14525571,1,1,2) [2025-02-21 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525571', 'tblTempUsageDetail_20' ) start [2025-02-21 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525571', 'tblTempUsageDetail_20' ) end [2025-02-21 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:05:27] Production.INFO: ==10659== Releasing lock... [2025-02-21 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:05:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-21 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:06:06 [end_date_ymd] => 2025-02-21 14:06:06 [RateCDR] => 1 ) [2025-02-21 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:06:06' and `end` < '2025-02-21 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:06:19] Production.INFO: count ==5405 [2025-02-21 14:06:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:06:06 - End Time 2025-02-21 14:06:06 [2025-02-21 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525576', 'tblTempUsageDetail_20' ) start [2025-02-21 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525576', 'tblTempUsageDetail_20' ) end [2025-02-21 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525576', 'tblTempVendorCDR_20' ) start [2025-02-21 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525576', 'tblTempVendorCDR_20' ) end [2025-02-21 14:06:22] Production.INFO: ProcessCDR(1,14525576,1,1,2) [2025-02-21 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525576', 'tblTempUsageDetail_20' ) start [2025-02-21 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525576', 'tblTempUsageDetail_20' ) end [2025-02-21 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:06:27] Production.INFO: ==10733== Releasing lock... [2025-02-21 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:06:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-21 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:07:05 [end_date_ymd] => 2025-02-21 14:07:05 [RateCDR] => 1 ) [2025-02-21 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:07:05' and `end` < '2025-02-21 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:07:18] Production.INFO: count ==5394 [2025-02-21 14:07:20] Production.ERROR: pbx CDR StartTime 2025-02-21 11:07:05 - End Time 2025-02-21 14:07:05 [2025-02-21 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525581', 'tblTempUsageDetail_20' ) start [2025-02-21 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525581', 'tblTempUsageDetail_20' ) end [2025-02-21 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525581', 'tblTempVendorCDR_20' ) start [2025-02-21 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525581', 'tblTempVendorCDR_20' ) end [2025-02-21 14:07:21] Production.INFO: ProcessCDR(1,14525581,1,1,2) [2025-02-21 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525581', 'tblTempUsageDetail_20' ) start [2025-02-21 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525581', 'tblTempUsageDetail_20' ) end [2025-02-21 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:07:26] Production.INFO: ==10809== Releasing lock... [2025-02-21 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:07:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-21 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:08:06 [end_date_ymd] => 2025-02-21 14:08:06 [RateCDR] => 1 ) [2025-02-21 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:08:06' and `end` < '2025-02-21 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:08:19] Production.INFO: count ==5387 [2025-02-21 14:08:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:08:06 - End Time 2025-02-21 14:08:06 [2025-02-21 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525586', 'tblTempUsageDetail_20' ) start [2025-02-21 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525586', 'tblTempUsageDetail_20' ) end [2025-02-21 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525586', 'tblTempVendorCDR_20' ) start [2025-02-21 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525586', 'tblTempVendorCDR_20' ) end [2025-02-21 14:08:22] Production.INFO: ProcessCDR(1,14525586,1,1,2) [2025-02-21 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525586', 'tblTempUsageDetail_20' ) start [2025-02-21 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525586', 'tblTempUsageDetail_20' ) end [2025-02-21 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:08:27] Production.INFO: ==10890== Releasing lock... [2025-02-21 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:08:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:09:06 [end_date_ymd] => 2025-02-21 14:09:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:09:06' and `end` < '2025-02-21 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-21 14:09:19] Production.INFO: count ==5368 [2025-02-21 14:09:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:09:06 - End Time 2025-02-21 14:09:06 [2025-02-21 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525591', 'tblTempUsageDetail_20' ) start [2025-02-21 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525591', 'tblTempUsageDetail_20' ) end [2025-02-21 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525591', 'tblTempVendorCDR_20' ) start [2025-02-21 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525591', 'tblTempVendorCDR_20' ) end [2025-02-21 14:09:21] Production.INFO: ProcessCDR(1,14525591,1,1,2) [2025-02-21 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525591', 'tblTempUsageDetail_20' ) start [2025-02-21 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525591', 'tblTempUsageDetail_20' ) end [2025-02-21 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:09:27] Production.INFO: ==10964== Releasing lock... [2025-02-21 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:09:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:10:06 [end_date_ymd] => 2025-02-21 14:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:10:06' and `end` < '2025-02-21 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-21 14:10:19] Production.INFO: count ==5343 [2025-02-21 14:10:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:10:06 - End Time 2025-02-21 14:10:06 [2025-02-21 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525596', 'tblTempUsageDetail_20' ) start [2025-02-21 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525596', 'tblTempUsageDetail_20' ) end [2025-02-21 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525596', 'tblTempVendorCDR_20' ) start [2025-02-21 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525596', 'tblTempVendorCDR_20' ) end [2025-02-21 14:10:22] Production.INFO: ProcessCDR(1,14525596,1,1,2) [2025-02-21 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525596', 'tblTempUsageDetail_20' ) start [2025-02-21 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525596', 'tblTempUsageDetail_20' ) end [2025-02-21 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:10:28] Production.INFO: ==11040== Releasing lock... [2025-02-21 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:10:28] Production.INFO: 68 MB #Memory Used# [2025-02-21 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:11:05 [end_date_ymd] => 2025-02-21 14:11:05 [RateCDR] => 1 ) [2025-02-21 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:11:05' and `end` < '2025-02-21 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:11:18] Production.INFO: count ==5353 [2025-02-21 14:11:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:11:05 - End Time 2025-02-21 14:11:05 [2025-02-21 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525602', 'tblTempUsageDetail_20' ) start [2025-02-21 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525602', 'tblTempUsageDetail_20' ) end [2025-02-21 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525602', 'tblTempVendorCDR_20' ) start [2025-02-21 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525602', 'tblTempVendorCDR_20' ) end [2025-02-21 14:11:21] Production.INFO: ProcessCDR(1,14525602,1,1,2) [2025-02-21 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525602', 'tblTempUsageDetail_20' ) start [2025-02-21 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525602', 'tblTempUsageDetail_20' ) end [2025-02-21 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:11:26] Production.INFO: ==11116== Releasing lock... [2025-02-21 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:11:26] Production.INFO: 68 MB #Memory Used# [2025-02-21 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:12:06 [end_date_ymd] => 2025-02-21 14:12:06 [RateCDR] => 1 ) [2025-02-21 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:12:06' and `end` < '2025-02-21 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:12:18] Production.INFO: count ==5364 [2025-02-21 14:12:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:12:06 - End Time 2025-02-21 14:12:06 [2025-02-21 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525607', 'tblTempUsageDetail_20' ) start [2025-02-21 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525607', 'tblTempUsageDetail_20' ) end [2025-02-21 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525607', 'tblTempVendorCDR_20' ) start [2025-02-21 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525607', 'tblTempVendorCDR_20' ) end [2025-02-21 14:12:21] Production.INFO: ProcessCDR(1,14525607,1,1,2) [2025-02-21 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525607', 'tblTempUsageDetail_20' ) start [2025-02-21 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525607', 'tblTempUsageDetail_20' ) end [2025-02-21 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:12:27] Production.INFO: ==11193== Releasing lock... [2025-02-21 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:12:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:13:05 [end_date_ymd] => 2025-02-21 14:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:13:05' and `end` < '2025-02-21 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-21 14:13:18] Production.INFO: count ==5372 [2025-02-21 14:13:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:13:05 - End Time 2025-02-21 14:13:05 [2025-02-21 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525612', 'tblTempUsageDetail_20' ) start [2025-02-21 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525612', 'tblTempUsageDetail_20' ) end [2025-02-21 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525612', 'tblTempVendorCDR_20' ) start [2025-02-21 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525612', 'tblTempVendorCDR_20' ) end [2025-02-21 14:13:21] Production.INFO: ProcessCDR(1,14525612,1,1,2) [2025-02-21 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525612', 'tblTempUsageDetail_20' ) start [2025-02-21 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525612', 'tblTempUsageDetail_20' ) end [2025-02-21 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:13:26] Production.INFO: ==11266== Releasing lock... [2025-02-21 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:13:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:14:06 [end_date_ymd] => 2025-02-21 14:14:06 [RateCDR] => 1 ) [2025-02-21 14: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-21 11:14:06' and `end` < '2025-02-21 14: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-21 14:14:18] Production.INFO: count ==5413 [2025-02-21 14:14:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:14:06 - End Time 2025-02-21 14:14:06 [2025-02-21 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525617', 'tblTempUsageDetail_20' ) start [2025-02-21 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525617', 'tblTempUsageDetail_20' ) end [2025-02-21 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525617', 'tblTempVendorCDR_20' ) start [2025-02-21 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525617', 'tblTempVendorCDR_20' ) end [2025-02-21 14:14:21] Production.INFO: ProcessCDR(1,14525617,1,1,2) [2025-02-21 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525617', 'tblTempUsageDetail_20' ) start [2025-02-21 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525617', 'tblTempUsageDetail_20' ) end [2025-02-21 14:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:14:25] Production.INFO: ==11345== Releasing lock... [2025-02-21 14:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:14:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-21 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:15:05 [end_date_ymd] => 2025-02-21 14:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:15:05' and `end` < '2025-02-21 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-21 14:15:18] Production.INFO: count ==5494 [2025-02-21 14:15:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:15:05 - End Time 2025-02-21 14:15:05 [2025-02-21 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525622', 'tblTempUsageDetail_20' ) start [2025-02-21 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525622', 'tblTempUsageDetail_20' ) end [2025-02-21 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525622', 'tblTempVendorCDR_20' ) start [2025-02-21 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525622', 'tblTempVendorCDR_20' ) end [2025-02-21 14:15:21] Production.INFO: ProcessCDR(1,14525622,1,1,2) [2025-02-21 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525622', 'tblTempUsageDetail_20' ) start [2025-02-21 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525622', 'tblTempUsageDetail_20' ) end [2025-02-21 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:15:26] Production.INFO: ==11417== Releasing lock... [2025-02-21 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:15:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-21 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:16:05 [end_date_ymd] => 2025-02-21 14:16:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:16:05' and `end` < '2025-02-21 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-21 14:16:18] Production.INFO: count ==5559 [2025-02-21 14:16:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:16:05 - End Time 2025-02-21 14:16:05 [2025-02-21 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525627', 'tblTempUsageDetail_20' ) start [2025-02-21 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525627', 'tblTempUsageDetail_20' ) end [2025-02-21 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525627', 'tblTempVendorCDR_20' ) start [2025-02-21 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525627', 'tblTempVendorCDR_20' ) end [2025-02-21 14:16:21] Production.INFO: ProcessCDR(1,14525627,1,1,2) [2025-02-21 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525627', 'tblTempUsageDetail_20' ) start [2025-02-21 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525627', 'tblTempUsageDetail_20' ) end [2025-02-21 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:16:25] Production.INFO: ==11489== Releasing lock... [2025-02-21 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:16:25] Production.INFO: 69.5 MB #Memory Used# [2025-02-21 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:17:06 [end_date_ymd] => 2025-02-21 14:17:06 [RateCDR] => 1 ) [2025-02-21 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:17:06' and `end` < '2025-02-21 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:17:19] Production.INFO: count ==5621 [2025-02-21 14:17:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:17:06 - End Time 2025-02-21 14:17:06 [2025-02-21 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525632', 'tblTempUsageDetail_20' ) start [2025-02-21 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525632', 'tblTempUsageDetail_20' ) end [2025-02-21 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525632', 'tblTempVendorCDR_20' ) start [2025-02-21 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525632', 'tblTempVendorCDR_20' ) end [2025-02-21 14:17:22] Production.INFO: ProcessCDR(1,14525632,1,1,2) [2025-02-21 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525632', 'tblTempUsageDetail_20' ) start [2025-02-21 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525632', 'tblTempUsageDetail_20' ) end [2025-02-21 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:17:26] Production.INFO: ==11603== Releasing lock... [2025-02-21 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:17:26] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:18:06 [end_date_ymd] => 2025-02-21 14:18:06 [RateCDR] => 1 ) [2025-02-21 14: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-21 11:18:06' and `end` < '2025-02-21 14: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-21 14:18:19] Production.INFO: count ==5621 [2025-02-21 14:18:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:18:06 - End Time 2025-02-21 14:18:06 [2025-02-21 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525637', 'tblTempUsageDetail_20' ) start [2025-02-21 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525637', 'tblTempUsageDetail_20' ) end [2025-02-21 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525637', 'tblTempVendorCDR_20' ) start [2025-02-21 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525637', 'tblTempVendorCDR_20' ) end [2025-02-21 14:18:22] Production.INFO: ProcessCDR(1,14525637,1,1,2) [2025-02-21 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525637', 'tblTempUsageDetail_20' ) start [2025-02-21 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525637', 'tblTempUsageDetail_20' ) end [2025-02-21 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:18:26] Production.INFO: ==11675== Releasing lock... [2025-02-21 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:18:26] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:19:05 [end_date_ymd] => 2025-02-21 14:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:19:05' and `end` < '2025-02-21 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-21 14:19:18] Production.INFO: count ==5613 [2025-02-21 14:19:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:19:05 - End Time 2025-02-21 14:19:05 [2025-02-21 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525642', 'tblTempUsageDetail_20' ) start [2025-02-21 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525642', 'tblTempUsageDetail_20' ) end [2025-02-21 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525642', 'tblTempVendorCDR_20' ) start [2025-02-21 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525642', 'tblTempVendorCDR_20' ) end [2025-02-21 14:19:21] Production.INFO: ProcessCDR(1,14525642,1,1,2) [2025-02-21 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525642', 'tblTempUsageDetail_20' ) start [2025-02-21 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525642', 'tblTempUsageDetail_20' ) end [2025-02-21 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:19:26] Production.INFO: ==11747== Releasing lock... [2025-02-21 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:19:26] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:20:06 [end_date_ymd] => 2025-02-21 14:20:06 [RateCDR] => 1 ) [2025-02-21 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:20:06' and `end` < '2025-02-21 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:20:19] Production.INFO: count ==5595 [2025-02-21 14:20:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:20:06 - End Time 2025-02-21 14:20:06 [2025-02-21 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525648', 'tblTempUsageDetail_20' ) start [2025-02-21 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525648', 'tblTempUsageDetail_20' ) end [2025-02-21 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525648', 'tblTempVendorCDR_20' ) start [2025-02-21 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525648', 'tblTempVendorCDR_20' ) end [2025-02-21 14:20:22] Production.INFO: ProcessCDR(1,14525648,1,1,2) [2025-02-21 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525648', 'tblTempUsageDetail_20' ) start [2025-02-21 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525648', 'tblTempUsageDetail_20' ) end [2025-02-21 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:20:27] Production.INFO: ==11820== Releasing lock... [2025-02-21 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:20:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-21 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:21:05 [end_date_ymd] => 2025-02-21 14:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:21:05' and `end` < '2025-02-21 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-21 14:21:18] Production.INFO: count ==5627 [2025-02-21 14:21:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:21:05 - End Time 2025-02-21 14:21:05 [2025-02-21 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525653', 'tblTempUsageDetail_20' ) start [2025-02-21 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525653', 'tblTempUsageDetail_20' ) end [2025-02-21 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525653', 'tblTempVendorCDR_20' ) start [2025-02-21 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525653', 'tblTempVendorCDR_20' ) end [2025-02-21 14:21:21] Production.INFO: ProcessCDR(1,14525653,1,1,2) [2025-02-21 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525653', 'tblTempUsageDetail_20' ) start [2025-02-21 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525653', 'tblTempUsageDetail_20' ) end [2025-02-21 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:21:27] Production.INFO: ==11896== Releasing lock... [2025-02-21 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:21:27] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:22:06 [end_date_ymd] => 2025-02-21 14:22:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:22:06' and `end` < '2025-02-21 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-21 14:22:19] Production.INFO: count ==5597 [2025-02-21 14:22:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:22:06 - End Time 2025-02-21 14:22:06 [2025-02-21 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525658', 'tblTempUsageDetail_20' ) start [2025-02-21 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525658', 'tblTempUsageDetail_20' ) end [2025-02-21 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525658', 'tblTempVendorCDR_20' ) start [2025-02-21 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525658', 'tblTempVendorCDR_20' ) end [2025-02-21 14:22:22] Production.INFO: ProcessCDR(1,14525658,1,1,2) [2025-02-21 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525658', 'tblTempUsageDetail_20' ) start [2025-02-21 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525658', 'tblTempUsageDetail_20' ) end [2025-02-21 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:22:27] Production.INFO: ==11967== Releasing lock... [2025-02-21 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:22:27] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:23:05 [end_date_ymd] => 2025-02-21 14:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:23:05' and `end` < '2025-02-21 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-21 14:23:18] Production.INFO: count ==5626 [2025-02-21 14:23:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:23:05 - End Time 2025-02-21 14:23:05 [2025-02-21 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525663', 'tblTempUsageDetail_20' ) start [2025-02-21 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525663', 'tblTempUsageDetail_20' ) end [2025-02-21 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525663', 'tblTempVendorCDR_20' ) start [2025-02-21 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525663', 'tblTempVendorCDR_20' ) end [2025-02-21 14:23:21] Production.INFO: ProcessCDR(1,14525663,1,1,2) [2025-02-21 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525663', 'tblTempUsageDetail_20' ) start [2025-02-21 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525663', 'tblTempUsageDetail_20' ) end [2025-02-21 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:23:27] Production.INFO: ==12039== Releasing lock... [2025-02-21 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:23:27] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:24:06 [end_date_ymd] => 2025-02-21 14:24:06 [RateCDR] => 1 ) [2025-02-21 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:24:06' and `end` < '2025-02-21 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:24:19] Production.INFO: count ==5639 [2025-02-21 14:24:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:24:06 - End Time 2025-02-21 14:24:06 [2025-02-21 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525668', 'tblTempUsageDetail_20' ) start [2025-02-21 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525668', 'tblTempUsageDetail_20' ) end [2025-02-21 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525668', 'tblTempVendorCDR_20' ) start [2025-02-21 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525668', 'tblTempVendorCDR_20' ) end [2025-02-21 14:24:22] Production.INFO: ProcessCDR(1,14525668,1,1,2) [2025-02-21 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525668', 'tblTempUsageDetail_20' ) start [2025-02-21 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525668', 'tblTempUsageDetail_20' ) end [2025-02-21 14:24:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:24:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:24:28] Production.INFO: ==12112== Releasing lock... [2025-02-21 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:24:28] Production.INFO: 70.25 MB #Memory Used# [2025-02-21 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:25:05 [end_date_ymd] => 2025-02-21 14:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:25:05' and `end` < '2025-02-21 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-21 14:25:18] Production.INFO: count ==5612 [2025-02-21 14:25:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:25:05 - End Time 2025-02-21 14:25:05 [2025-02-21 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525673', 'tblTempUsageDetail_20' ) start [2025-02-21 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525673', 'tblTempUsageDetail_20' ) end [2025-02-21 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525673', 'tblTempVendorCDR_20' ) start [2025-02-21 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525673', 'tblTempVendorCDR_20' ) end [2025-02-21 14:25:21] Production.INFO: ProcessCDR(1,14525673,1,1,2) [2025-02-21 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525673', 'tblTempUsageDetail_20' ) start [2025-02-21 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525673', 'tblTempUsageDetail_20' ) end [2025-02-21 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:25:28] Production.INFO: ==12181== Releasing lock... [2025-02-21 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:25:28] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:26:05 [end_date_ymd] => 2025-02-21 14:26:05 [RateCDR] => 1 ) [2025-02-21 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:26:05' and `end` < '2025-02-21 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:26:18] Production.INFO: count ==5616 [2025-02-21 14:26:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:26:05 - End Time 2025-02-21 14:26:05 [2025-02-21 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525678', 'tblTempUsageDetail_20' ) start [2025-02-21 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525678', 'tblTempUsageDetail_20' ) end [2025-02-21 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525678', 'tblTempVendorCDR_20' ) start [2025-02-21 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525678', 'tblTempVendorCDR_20' ) end [2025-02-21 14:26:21] Production.INFO: ProcessCDR(1,14525678,1,1,2) [2025-02-21 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525678', 'tblTempUsageDetail_20' ) start [2025-02-21 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525678', 'tblTempUsageDetail_20' ) end [2025-02-21 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:26:27] Production.INFO: ==12253== Releasing lock... [2025-02-21 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:26:27] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:27:05 [end_date_ymd] => 2025-02-21 14:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:27:05' and `end` < '2025-02-21 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-21 14:27:18] Production.INFO: count ==5600 [2025-02-21 14:27:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:27:05 - End Time 2025-02-21 14:27:05 [2025-02-21 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525683', 'tblTempUsageDetail_20' ) start [2025-02-21 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525683', 'tblTempUsageDetail_20' ) end [2025-02-21 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525683', 'tblTempVendorCDR_20' ) start [2025-02-21 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525683', 'tblTempVendorCDR_20' ) end [2025-02-21 14:27:21] Production.INFO: ProcessCDR(1,14525683,1,1,2) [2025-02-21 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525683', 'tblTempUsageDetail_20' ) start [2025-02-21 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525683', 'tblTempUsageDetail_20' ) end [2025-02-21 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:27:26] Production.INFO: ==12331== Releasing lock... [2025-02-21 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:27:26] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:28:06 [end_date_ymd] => 2025-02-21 14:28:06 [RateCDR] => 1 ) [2025-02-21 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:28:06' and `end` < '2025-02-21 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:28:19] Production.INFO: count ==5591 [2025-02-21 14:28:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:28:06 - End Time 2025-02-21 14:28:06 [2025-02-21 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525688', 'tblTempUsageDetail_20' ) start [2025-02-21 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525688', 'tblTempUsageDetail_20' ) end [2025-02-21 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525688', 'tblTempVendorCDR_20' ) start [2025-02-21 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525688', 'tblTempVendorCDR_20' ) end [2025-02-21 14:28:22] Production.INFO: ProcessCDR(1,14525688,1,1,2) [2025-02-21 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525688', 'tblTempUsageDetail_20' ) start [2025-02-21 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525688', 'tblTempUsageDetail_20' ) end [2025-02-21 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:28:27] Production.INFO: ==12405== Releasing lock... [2025-02-21 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:28:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-21 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:29:06 [end_date_ymd] => 2025-02-21 14:29:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:29:06' and `end` < '2025-02-21 14: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-21 14:29:18] Production.INFO: count ==5603 [2025-02-21 14:29:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:29:06 - End Time 2025-02-21 14:29:06 [2025-02-21 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525693', 'tblTempUsageDetail_20' ) start [2025-02-21 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525693', 'tblTempUsageDetail_20' ) end [2025-02-21 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525693', 'tblTempVendorCDR_20' ) start [2025-02-21 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525693', 'tblTempVendorCDR_20' ) end [2025-02-21 14:29:21] Production.INFO: ProcessCDR(1,14525693,1,1,2) [2025-02-21 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525693', 'tblTempUsageDetail_20' ) start [2025-02-21 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525693', 'tblTempUsageDetail_20' ) end [2025-02-21 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:29:27] Production.INFO: ==12477== Releasing lock... [2025-02-21 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:29:27] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:30:06 [end_date_ymd] => 2025-02-21 14:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:30:06' and `end` < '2025-02-21 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-21 14:30:19] Production.INFO: count ==5596 [2025-02-21 14:30:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:30:06 - End Time 2025-02-21 14:30:06 [2025-02-21 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525699', 'tblTempUsageDetail_20' ) start [2025-02-21 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525699', 'tblTempUsageDetail_20' ) end [2025-02-21 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525699', 'tblTempVendorCDR_20' ) start [2025-02-21 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525699', 'tblTempVendorCDR_20' ) end [2025-02-21 14:30:23] Production.INFO: ProcessCDR(1,14525699,1,1,2) [2025-02-21 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525699', 'tblTempUsageDetail_20' ) start [2025-02-21 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525699', 'tblTempUsageDetail_20' ) end [2025-02-21 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:30:28] Production.INFO: ==12551== Releasing lock... [2025-02-21 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:30:28] Production.INFO: 70 MB #Memory Used# [2025-02-21 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:31:05 [end_date_ymd] => 2025-02-21 14:31:05 [RateCDR] => 1 ) [2025-02-21 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:31:05' and `end` < '2025-02-21 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:31:18] Production.INFO: count ==5587 [2025-02-21 14:31:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:31:05 - End Time 2025-02-21 14:31:05 [2025-02-21 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525704', 'tblTempUsageDetail_20' ) start [2025-02-21 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525704', 'tblTempUsageDetail_20' ) end [2025-02-21 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525704', 'tblTempVendorCDR_20' ) start [2025-02-21 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525704', 'tblTempVendorCDR_20' ) end [2025-02-21 14:31:21] Production.INFO: ProcessCDR(1,14525704,1,1,2) [2025-02-21 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525704', 'tblTempUsageDetail_20' ) start [2025-02-21 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525704', 'tblTempUsageDetail_20' ) end [2025-02-21 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:31:27] Production.INFO: ==12623== Releasing lock... [2025-02-21 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:31:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-21 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:32:05 [end_date_ymd] => 2025-02-21 14:32:05 [RateCDR] => 1 ) [2025-02-21 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:32:05' and `end` < '2025-02-21 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:32:18] Production.INFO: count ==5578 [2025-02-21 14:32:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:32:05 - End Time 2025-02-21 14:32:05 [2025-02-21 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525709', 'tblTempUsageDetail_20' ) start [2025-02-21 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525709', 'tblTempUsageDetail_20' ) end [2025-02-21 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525709', 'tblTempVendorCDR_20' ) start [2025-02-21 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525709', 'tblTempVendorCDR_20' ) end [2025-02-21 14:32:21] Production.INFO: ProcessCDR(1,14525709,1,1,2) [2025-02-21 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525709', 'tblTempUsageDetail_20' ) start [2025-02-21 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525709', 'tblTempUsageDetail_20' ) end [2025-02-21 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:32:26] Production.INFO: ==12732== Releasing lock... [2025-02-21 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:32:26] Production.INFO: 69.75 MB #Memory Used# [2025-02-21 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:33:05 [end_date_ymd] => 2025-02-21 14:33:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:33:05' and `end` < '2025-02-21 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-21 14:33:18] Production.INFO: count ==5578 [2025-02-21 14:33:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:33:05 - End Time 2025-02-21 14:33:05 [2025-02-21 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525714', 'tblTempUsageDetail_20' ) start [2025-02-21 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525714', 'tblTempUsageDetail_20' ) end [2025-02-21 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525714', 'tblTempVendorCDR_20' ) start [2025-02-21 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525714', 'tblTempVendorCDR_20' ) end [2025-02-21 14:33:21] Production.INFO: ProcessCDR(1,14525714,1,1,2) [2025-02-21 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525714', 'tblTempUsageDetail_20' ) start [2025-02-21 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525714', 'tblTempUsageDetail_20' ) end [2025-02-21 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:33:26] Production.INFO: ==12803== Releasing lock... [2025-02-21 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:33:26] Production.INFO: 69.75 MB #Memory Used# [2025-02-21 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:34:06 [end_date_ymd] => 2025-02-21 14:34:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:34:06' and `end` < '2025-02-21 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-21 14:34:19] Production.INFO: count ==5566 [2025-02-21 14:34:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:34:06 - End Time 2025-02-21 14:34:06 [2025-02-21 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525719', 'tblTempUsageDetail_20' ) start [2025-02-21 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525719', 'tblTempUsageDetail_20' ) end [2025-02-21 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525719', 'tblTempVendorCDR_20' ) start [2025-02-21 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525719', 'tblTempVendorCDR_20' ) end [2025-02-21 14:34:21] Production.INFO: ProcessCDR(1,14525719,1,1,2) [2025-02-21 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525719', 'tblTempUsageDetail_20' ) start [2025-02-21 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525719', 'tblTempUsageDetail_20' ) end [2025-02-21 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:34:27] Production.INFO: ==12875== Releasing lock... [2025-02-21 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:34:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-21 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:35:05 [end_date_ymd] => 2025-02-21 14:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:35:05' and `end` < '2025-02-21 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-21 14:35:18] Production.INFO: count ==5557 [2025-02-21 14:35:20] Production.ERROR: pbx CDR StartTime 2025-02-21 11:35:05 - End Time 2025-02-21 14:35:05 [2025-02-21 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525724', 'tblTempUsageDetail_20' ) start [2025-02-21 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525724', 'tblTempUsageDetail_20' ) end [2025-02-21 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525724', 'tblTempVendorCDR_20' ) start [2025-02-21 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525724', 'tblTempVendorCDR_20' ) end [2025-02-21 14:35:21] Production.INFO: ProcessCDR(1,14525724,1,1,2) [2025-02-21 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525724', 'tblTempUsageDetail_20' ) start [2025-02-21 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525724', 'tblTempUsageDetail_20' ) end [2025-02-21 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:35:26] Production.INFO: ==12957== Releasing lock... [2025-02-21 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:35:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-21 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:36:05 [end_date_ymd] => 2025-02-21 14:36:05 [RateCDR] => 1 ) [2025-02-21 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:36:05' and `end` < '2025-02-21 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-21 14:36:18] Production.INFO: count ==5556 [2025-02-21 14:36:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:36:05 - End Time 2025-02-21 14:36:05 [2025-02-21 14:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525729', 'tblTempUsageDetail_20' ) start [2025-02-21 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525729', 'tblTempUsageDetail_20' ) end [2025-02-21 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525729', 'tblTempVendorCDR_20' ) start [2025-02-21 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525729', 'tblTempVendorCDR_20' ) end [2025-02-21 14:36:22] Production.INFO: ProcessCDR(1,14525729,1,1,2) [2025-02-21 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525729', 'tblTempUsageDetail_20' ) start [2025-02-21 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525729', 'tblTempUsageDetail_20' ) end [2025-02-21 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:36:27] Production.INFO: ==13091== Releasing lock... [2025-02-21 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:36:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-21 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:37:05 [end_date_ymd] => 2025-02-21 14:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:37:05' and `end` < '2025-02-21 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-21 14:37:18] Production.INFO: count ==5553 [2025-02-21 14:37:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:37:05 - End Time 2025-02-21 14:37:05 [2025-02-21 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525734', 'tblTempUsageDetail_20' ) start [2025-02-21 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525734', 'tblTempUsageDetail_20' ) end [2025-02-21 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525734', 'tblTempVendorCDR_20' ) start [2025-02-21 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525734', 'tblTempVendorCDR_20' ) end [2025-02-21 14:37:21] Production.INFO: ProcessCDR(1,14525734,1,1,2) [2025-02-21 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525734', 'tblTempUsageDetail_20' ) start [2025-02-21 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525734', 'tblTempUsageDetail_20' ) end [2025-02-21 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:37:27] Production.INFO: ==13161== Releasing lock... [2025-02-21 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:37:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-21 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:38:06 [end_date_ymd] => 2025-02-21 14:38:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:38:06' and `end` < '2025-02-21 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-21 14:38:19] Production.INFO: count ==5526 [2025-02-21 14:38:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:38:06 - End Time 2025-02-21 14:38:06 [2025-02-21 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525739', 'tblTempUsageDetail_20' ) start [2025-02-21 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525739', 'tblTempUsageDetail_20' ) end [2025-02-21 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525739', 'tblTempVendorCDR_20' ) start [2025-02-21 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525739', 'tblTempVendorCDR_20' ) end [2025-02-21 14:38:21] Production.INFO: ProcessCDR(1,14525739,1,1,2) [2025-02-21 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525739', 'tblTempUsageDetail_20' ) start [2025-02-21 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525739', 'tblTempUsageDetail_20' ) end [2025-02-21 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:38:27] Production.INFO: ==13237== Releasing lock... [2025-02-21 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:38:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-21 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:39:06 [end_date_ymd] => 2025-02-21 14:39:06 [RateCDR] => 1 ) [2025-02-21 14: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-21 11:39:06' and `end` < '2025-02-21 14: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-21 14:39:19] Production.INFO: count ==5501 [2025-02-21 14:39:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:39:06 - End Time 2025-02-21 14:39:06 [2025-02-21 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525744', 'tblTempUsageDetail_20' ) start [2025-02-21 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525744', 'tblTempUsageDetail_20' ) end [2025-02-21 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525744', 'tblTempVendorCDR_20' ) start [2025-02-21 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525744', 'tblTempVendorCDR_20' ) end [2025-02-21 14:39:21] Production.INFO: ProcessCDR(1,14525744,1,1,2) [2025-02-21 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525744', 'tblTempUsageDetail_20' ) start [2025-02-21 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525744', 'tblTempUsageDetail_20' ) end [2025-02-21 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:39:27] Production.INFO: ==13307== Releasing lock... [2025-02-21 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:39:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-21 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:40:06 [end_date_ymd] => 2025-02-21 14:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:40:06' and `end` < '2025-02-21 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-21 14:40:19] Production.INFO: count ==5466 [2025-02-21 14:40:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:40:06 - End Time 2025-02-21 14:40:06 [2025-02-21 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525750', 'tblTempUsageDetail_20' ) start [2025-02-21 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525750', 'tblTempUsageDetail_20' ) end [2025-02-21 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525750', 'tblTempVendorCDR_20' ) start [2025-02-21 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525750', 'tblTempVendorCDR_20' ) end [2025-02-21 14:40:22] Production.INFO: ProcessCDR(1,14525750,1,1,2) [2025-02-21 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525750', 'tblTempUsageDetail_20' ) start [2025-02-21 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525750', 'tblTempUsageDetail_20' ) end [2025-02-21 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:40:28] Production.INFO: ==13380== Releasing lock... [2025-02-21 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:40:28] Production.INFO: 69 MB #Memory Used# [2025-02-21 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:41:05 [end_date_ymd] => 2025-02-21 14:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:41:05' and `end` < '2025-02-21 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-21 14:41:18] Production.INFO: count ==5464 [2025-02-21 14:41:20] Production.ERROR: pbx CDR StartTime 2025-02-21 11:41:05 - End Time 2025-02-21 14:41:05 [2025-02-21 14:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525755', 'tblTempUsageDetail_20' ) start [2025-02-21 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525755', 'tblTempUsageDetail_20' ) end [2025-02-21 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525755', 'tblTempVendorCDR_20' ) start [2025-02-21 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525755', 'tblTempVendorCDR_20' ) end [2025-02-21 14:41:21] Production.INFO: ProcessCDR(1,14525755,1,1,2) [2025-02-21 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525755', 'tblTempUsageDetail_20' ) start [2025-02-21 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525755', 'tblTempUsageDetail_20' ) end [2025-02-21 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:41:26] Production.INFO: ==13455== Releasing lock... [2025-02-21 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:41:26] Production.INFO: 69 MB #Memory Used# [2025-02-21 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:42:06 [end_date_ymd] => 2025-02-21 14:42:06 [RateCDR] => 1 ) [2025-02-21 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:42:06' and `end` < '2025-02-21 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:42:19] Production.INFO: count ==5418 [2025-02-21 14:42:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:42:06 - End Time 2025-02-21 14:42:06 [2025-02-21 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525760', 'tblTempUsageDetail_20' ) start [2025-02-21 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525760', 'tblTempUsageDetail_20' ) end [2025-02-21 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525760', 'tblTempVendorCDR_20' ) start [2025-02-21 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525760', 'tblTempVendorCDR_20' ) end [2025-02-21 14:42:22] Production.INFO: ProcessCDR(1,14525760,1,1,2) [2025-02-21 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525760', 'tblTempUsageDetail_20' ) start [2025-02-21 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525760', 'tblTempUsageDetail_20' ) end [2025-02-21 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:42:27] Production.INFO: ==13525== Releasing lock... [2025-02-21 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:42:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-21 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:43:05 [end_date_ymd] => 2025-02-21 14:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:43:05' and `end` < '2025-02-21 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-21 14:43:18] Production.INFO: count ==5379 [2025-02-21 14:43:20] Production.ERROR: pbx CDR StartTime 2025-02-21 11:43:05 - End Time 2025-02-21 14:43:05 [2025-02-21 14:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525765', 'tblTempUsageDetail_20' ) start [2025-02-21 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525765', 'tblTempUsageDetail_20' ) end [2025-02-21 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525765', 'tblTempVendorCDR_20' ) start [2025-02-21 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525765', 'tblTempVendorCDR_20' ) end [2025-02-21 14:43:21] Production.INFO: ProcessCDR(1,14525765,1,1,2) [2025-02-21 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525765', 'tblTempUsageDetail_20' ) start [2025-02-21 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525765', 'tblTempUsageDetail_20' ) end [2025-02-21 14:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:43:24] Production.INFO: ==13595== Releasing lock... [2025-02-21 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:43:24] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:44:06 [end_date_ymd] => 2025-02-21 14:44:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:44:06' and `end` < '2025-02-21 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-21 14:44:19] Production.INFO: count ==5374 [2025-02-21 14:44:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:44:06 - End Time 2025-02-21 14:44:06 [2025-02-21 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525770', 'tblTempUsageDetail_20' ) start [2025-02-21 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525770', 'tblTempUsageDetail_20' ) end [2025-02-21 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525770', 'tblTempVendorCDR_20' ) start [2025-02-21 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525770', 'tblTempVendorCDR_20' ) end [2025-02-21 14:44:21] Production.INFO: ProcessCDR(1,14525770,1,1,2) [2025-02-21 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525770', 'tblTempUsageDetail_20' ) start [2025-02-21 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525770', 'tblTempUsageDetail_20' ) end [2025-02-21 14:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:44:25] Production.INFO: ==13668== Releasing lock... [2025-02-21 14:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:44:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:45:05 [end_date_ymd] => 2025-02-21 14:45:05 [RateCDR] => 1 ) [2025-02-21 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:45:05' and `end` < '2025-02-21 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:45:18] Production.INFO: count ==5379 [2025-02-21 14:45:20] Production.ERROR: pbx CDR StartTime 2025-02-21 11:45:05 - End Time 2025-02-21 14:45:05 [2025-02-21 14:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525775', 'tblTempUsageDetail_20' ) start [2025-02-21 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525775', 'tblTempUsageDetail_20' ) end [2025-02-21 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525775', 'tblTempVendorCDR_20' ) start [2025-02-21 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525775', 'tblTempVendorCDR_20' ) end [2025-02-21 14:45:21] Production.INFO: ProcessCDR(1,14525775,1,1,2) [2025-02-21 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525775', 'tblTempUsageDetail_20' ) start [2025-02-21 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525775', 'tblTempUsageDetail_20' ) end [2025-02-21 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:45:26] Production.INFO: ==13739== Releasing lock... [2025-02-21 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:45:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:46:06 [end_date_ymd] => 2025-02-21 14:46:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:46:06' and `end` < '2025-02-21 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-21 14:46:18] Production.INFO: count ==5360 [2025-02-21 14:46:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:46:06 - End Time 2025-02-21 14:46:06 [2025-02-21 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525780', 'tblTempUsageDetail_20' ) start [2025-02-21 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525780', 'tblTempUsageDetail_20' ) end [2025-02-21 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525780', 'tblTempVendorCDR_20' ) start [2025-02-21 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525780', 'tblTempVendorCDR_20' ) end [2025-02-21 14:46:21] Production.INFO: ProcessCDR(1,14525780,1,1,2) [2025-02-21 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525780', 'tblTempUsageDetail_20' ) start [2025-02-21 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525780', 'tblTempUsageDetail_20' ) end [2025-02-21 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:46:26] Production.INFO: ==13809== Releasing lock... [2025-02-21 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:46:26] Production.INFO: 68 MB #Memory Used# [2025-02-21 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:47:06 [end_date_ymd] => 2025-02-21 14:47:06 [RateCDR] => 1 ) [2025-02-21 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:47:06' and `end` < '2025-02-21 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:47:19] Production.INFO: count ==5360 [2025-02-21 14:47:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:47:06 - End Time 2025-02-21 14:47:06 [2025-02-21 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525785', 'tblTempUsageDetail_20' ) start [2025-02-21 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525785', 'tblTempUsageDetail_20' ) end [2025-02-21 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525785', 'tblTempVendorCDR_20' ) start [2025-02-21 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525785', 'tblTempVendorCDR_20' ) end [2025-02-21 14:47:21] Production.INFO: ProcessCDR(1,14525785,1,1,2) [2025-02-21 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525785', 'tblTempUsageDetail_20' ) start [2025-02-21 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525785', 'tblTempUsageDetail_20' ) end [2025-02-21 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:47:27] Production.INFO: ==13885== Releasing lock... [2025-02-21 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:47:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:48:06 [end_date_ymd] => 2025-02-21 14:48:06 [RateCDR] => 1 ) [2025-02-21 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:48:06' and `end` < '2025-02-21 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:48:19] Production.INFO: count ==5356 [2025-02-21 14:48:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:48:06 - End Time 2025-02-21 14:48:06 [2025-02-21 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525790', 'tblTempUsageDetail_20' ) start [2025-02-21 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525790', 'tblTempUsageDetail_20' ) end [2025-02-21 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525790', 'tblTempVendorCDR_20' ) start [2025-02-21 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525790', 'tblTempVendorCDR_20' ) end [2025-02-21 14:48:21] Production.INFO: ProcessCDR(1,14525790,1,1,2) [2025-02-21 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525790', 'tblTempUsageDetail_20' ) start [2025-02-21 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525790', 'tblTempUsageDetail_20' ) end [2025-02-21 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:48:26] Production.INFO: ==13993== Releasing lock... [2025-02-21 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:48:26] Production.INFO: 68 MB #Memory Used# [2025-02-21 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:49:05 [end_date_ymd] => 2025-02-21 14:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:49:05' and `end` < '2025-02-21 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-21 14:49:18] Production.INFO: count ==5379 [2025-02-21 14:49:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:49:05 - End Time 2025-02-21 14:49:05 [2025-02-21 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525795', 'tblTempUsageDetail_20' ) start [2025-02-21 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525795', 'tblTempUsageDetail_20' ) end [2025-02-21 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525795', 'tblTempVendorCDR_20' ) start [2025-02-21 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525795', 'tblTempVendorCDR_20' ) end [2025-02-21 14:49:21] Production.INFO: ProcessCDR(1,14525795,1,1,2) [2025-02-21 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525795', 'tblTempUsageDetail_20' ) start [2025-02-21 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525795', 'tblTempUsageDetail_20' ) end [2025-02-21 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:49:26] Production.INFO: ==14065== Releasing lock... [2025-02-21 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:49:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:50:07 [end_date_ymd] => 2025-02-21 14:50:07 [RateCDR] => 1 ) [2025-02-21 14: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-21 11:50:07' and `end` < '2025-02-21 14: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-21 14:50:19] Production.INFO: count ==5389 [2025-02-21 14:50:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:50:07 - End Time 2025-02-21 14:50:07 [2025-02-21 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525801', 'tblTempUsageDetail_20' ) start [2025-02-21 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525801', 'tblTempUsageDetail_20' ) end [2025-02-21 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525801', 'tblTempVendorCDR_20' ) start [2025-02-21 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525801', 'tblTempVendorCDR_20' ) end [2025-02-21 14:50:22] Production.INFO: ProcessCDR(1,14525801,1,1,2) [2025-02-21 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525801', 'tblTempUsageDetail_20' ) start [2025-02-21 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525801', 'tblTempUsageDetail_20' ) end [2025-02-21 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:50:28] Production.INFO: ==14141== Releasing lock... [2025-02-21 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:50:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:51:06 [end_date_ymd] => 2025-02-21 14:51:06 [RateCDR] => 1 ) [2025-02-21 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-21 11:51:06' and `end` < '2025-02-21 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-21 14:51:18] Production.INFO: count ==5373 [2025-02-21 14:51:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:51:06 - End Time 2025-02-21 14:51:06 [2025-02-21 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525806', 'tblTempUsageDetail_20' ) start [2025-02-21 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525806', 'tblTempUsageDetail_20' ) end [2025-02-21 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525806', 'tblTempVendorCDR_20' ) start [2025-02-21 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525806', 'tblTempVendorCDR_20' ) end [2025-02-21 14:51:21] Production.INFO: ProcessCDR(1,14525806,1,1,2) [2025-02-21 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525806', 'tblTempUsageDetail_20' ) start [2025-02-21 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525806', 'tblTempUsageDetail_20' ) end [2025-02-21 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:51:27] Production.INFO: ==14213== Releasing lock... [2025-02-21 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:51:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:52:06 [end_date_ymd] => 2025-02-21 14:52:06 [RateCDR] => 1 ) [2025-02-21 14: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-21 11:52:06' and `end` < '2025-02-21 14: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-21 14:52:19] Production.INFO: count ==5385 [2025-02-21 14:52:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:52:06 - End Time 2025-02-21 14:52:06 [2025-02-21 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525811', 'tblTempUsageDetail_20' ) start [2025-02-21 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525811', 'tblTempUsageDetail_20' ) end [2025-02-21 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525811', 'tblTempVendorCDR_20' ) start [2025-02-21 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525811', 'tblTempVendorCDR_20' ) end [2025-02-21 14:52:22] Production.INFO: ProcessCDR(1,14525811,1,1,2) [2025-02-21 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525811', 'tblTempUsageDetail_20' ) start [2025-02-21 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525811', 'tblTempUsageDetail_20' ) end [2025-02-21 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:52:27] Production.INFO: ==14284== Releasing lock... [2025-02-21 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:52:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:53:05 [end_date_ymd] => 2025-02-21 14:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:53:05' and `end` < '2025-02-21 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-21 14:53:18] Production.INFO: count ==5382 [2025-02-21 14:53:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:53:05 - End Time 2025-02-21 14:53:05 [2025-02-21 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525816', 'tblTempUsageDetail_20' ) start [2025-02-21 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525816', 'tblTempUsageDetail_20' ) end [2025-02-21 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525816', 'tblTempVendorCDR_20' ) start [2025-02-21 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525816', 'tblTempVendorCDR_20' ) end [2025-02-21 14:53:21] Production.INFO: ProcessCDR(1,14525816,1,1,2) [2025-02-21 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525816', 'tblTempUsageDetail_20' ) start [2025-02-21 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525816', 'tblTempUsageDetail_20' ) end [2025-02-21 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:53:26] Production.INFO: ==14357== Releasing lock... [2025-02-21 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:53:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:54:06 [end_date_ymd] => 2025-02-21 14:54:06 [RateCDR] => 1 ) [2025-02-21 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:54:06' and `end` < '2025-02-21 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:54:19] Production.INFO: count ==5433 [2025-02-21 14:54:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:54:06 - End Time 2025-02-21 14:54:06 [2025-02-21 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525821', 'tblTempUsageDetail_20' ) start [2025-02-21 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525821', 'tblTempUsageDetail_20' ) end [2025-02-21 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525821', 'tblTempVendorCDR_20' ) start [2025-02-21 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525821', 'tblTempVendorCDR_20' ) end [2025-02-21 14:54:22] Production.INFO: ProcessCDR(1,14525821,1,1,2) [2025-02-21 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525821', 'tblTempUsageDetail_20' ) start [2025-02-21 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525821', 'tblTempUsageDetail_20' ) end [2025-02-21 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:54:28] Production.INFO: ==14427== Releasing lock... [2025-02-21 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:54:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-21 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:55:05 [end_date_ymd] => 2025-02-21 14:55:05 [RateCDR] => 1 ) [2025-02-21 14: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-21 11:55:05' and `end` < '2025-02-21 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-21 14:55:18] Production.INFO: count ==5440 [2025-02-21 14:55:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:55:05 - End Time 2025-02-21 14:55:05 [2025-02-21 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525826', 'tblTempUsageDetail_20' ) start [2025-02-21 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525826', 'tblTempUsageDetail_20' ) end [2025-02-21 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525826', 'tblTempVendorCDR_20' ) start [2025-02-21 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525826', 'tblTempVendorCDR_20' ) end [2025-02-21 14:55:21] Production.INFO: ProcessCDR(1,14525826,1,1,2) [2025-02-21 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525826', 'tblTempUsageDetail_20' ) start [2025-02-21 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525826', 'tblTempUsageDetail_20' ) end [2025-02-21 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:55:27] Production.INFO: ==14503== Releasing lock... [2025-02-21 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:55:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-21 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:56:05 [end_date_ymd] => 2025-02-21 14:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:56:05' and `end` < '2025-02-21 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-21 14:56:17] Production.INFO: count ==5461 [2025-02-21 14:56:20] Production.ERROR: pbx CDR StartTime 2025-02-21 11:56:05 - End Time 2025-02-21 14:56:05 [2025-02-21 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525831', 'tblTempUsageDetail_20' ) start [2025-02-21 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525831', 'tblTempUsageDetail_20' ) end [2025-02-21 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525831', 'tblTempVendorCDR_20' ) start [2025-02-21 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525831', 'tblTempVendorCDR_20' ) end [2025-02-21 14:56:20] Production.INFO: ProcessCDR(1,14525831,1,1,2) [2025-02-21 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525831', 'tblTempUsageDetail_20' ) start [2025-02-21 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525831', 'tblTempUsageDetail_20' ) end [2025-02-21 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:56:26] Production.INFO: ==14574== Releasing lock... [2025-02-21 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:56:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-21 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:57:05 [end_date_ymd] => 2025-02-21 14:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 11:57:05' and `end` < '2025-02-21 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-21 14:57:18] Production.INFO: count ==5462 [2025-02-21 14:57:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:57:05 - End Time 2025-02-21 14:57:05 [2025-02-21 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525836', 'tblTempUsageDetail_20' ) start [2025-02-21 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525836', 'tblTempUsageDetail_20' ) end [2025-02-21 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525836', 'tblTempVendorCDR_20' ) start [2025-02-21 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525836', 'tblTempVendorCDR_20' ) end [2025-02-21 14:57:21] Production.INFO: ProcessCDR(1,14525836,1,1,2) [2025-02-21 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525836', 'tblTempUsageDetail_20' ) start [2025-02-21 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525836', 'tblTempUsageDetail_20' ) end [2025-02-21 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:57:26] Production.INFO: ==14646== Releasing lock... [2025-02-21 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:57:26] Production.INFO: 69 MB #Memory Used# [2025-02-21 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:58:06 [end_date_ymd] => 2025-02-21 14:58:06 [RateCDR] => 1 ) [2025-02-21 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 11:58:06' and `end` < '2025-02-21 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 14:58:18] Production.INFO: count ==5449 [2025-02-21 14:58:21] Production.ERROR: pbx CDR StartTime 2025-02-21 11:58:06 - End Time 2025-02-21 14:58:06 [2025-02-21 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525841', 'tblTempUsageDetail_20' ) start [2025-02-21 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525841', 'tblTempUsageDetail_20' ) end [2025-02-21 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525841', 'tblTempVendorCDR_20' ) start [2025-02-21 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525841', 'tblTempVendorCDR_20' ) end [2025-02-21 14:58:21] Production.INFO: ProcessCDR(1,14525841,1,1,2) [2025-02-21 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525841', 'tblTempUsageDetail_20' ) start [2025-02-21 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525841', 'tblTempUsageDetail_20' ) end [2025-02-21 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:58:27] Production.INFO: ==14717== Releasing lock... [2025-02-21 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:58:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-21 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 11:59:06 [end_date_ymd] => 2025-02-21 14:59:06 [RateCDR] => 1 ) [2025-02-21 14: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-21 11:59:06' and `end` < '2025-02-21 14: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-21 14:59:19] Production.INFO: count ==5442 [2025-02-21 14:59:22] Production.ERROR: pbx CDR StartTime 2025-02-21 11:59:06 - End Time 2025-02-21 14:59:06 [2025-02-21 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525846', 'tblTempUsageDetail_20' ) start [2025-02-21 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525846', 'tblTempUsageDetail_20' ) end [2025-02-21 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525846', 'tblTempVendorCDR_20' ) start [2025-02-21 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525846', 'tblTempVendorCDR_20' ) end [2025-02-21 14:59:22] Production.INFO: ProcessCDR(1,14525846,1,1,2) [2025-02-21 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525846', 'tblTempUsageDetail_20' ) start [2025-02-21 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525846', 'tblTempUsageDetail_20' ) end [2025-02-21 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 14:59:27] Production.INFO: ==14790== Releasing lock... [2025-02-21 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 14:59:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-21 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:00:07 [end_date_ymd] => 2025-02-21 15:00:07 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:00:07' and `end` < '2025-02-21 15: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-21 15:00:20] Production.INFO: count ==5417 [2025-02-21 15:00:23] Production.ERROR: pbx CDR StartTime 2025-02-21 12:00:07 - End Time 2025-02-21 15:00:07 [2025-02-21 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525852', 'tblTempUsageDetail_20' ) start [2025-02-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525852', 'tblTempUsageDetail_20' ) end [2025-02-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525852', 'tblTempVendorCDR_20' ) start [2025-02-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525852', 'tblTempVendorCDR_20' ) end [2025-02-21 15:00:23] Production.INFO: ProcessCDR(1,14525852,1,1,2) [2025-02-21 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525852', 'tblTempUsageDetail_20' ) start [2025-02-21 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525852', 'tblTempUsageDetail_20' ) end [2025-02-21 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:00:28] Production.INFO: ==14865== Releasing lock... [2025-02-21 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:00:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-21 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:01:06 [end_date_ymd] => 2025-02-21 15:01:06 [RateCDR] => 1 ) [2025-02-21 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:01:06' and `end` < '2025-02-21 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:01:19] Production.INFO: count ==5408 [2025-02-21 15:01:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:01:06 - End Time 2025-02-21 15:01:06 [2025-02-21 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525857', 'tblTempUsageDetail_20' ) start [2025-02-21 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525857', 'tblTempUsageDetail_20' ) end [2025-02-21 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525857', 'tblTempVendorCDR_20' ) start [2025-02-21 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525857', 'tblTempVendorCDR_20' ) end [2025-02-21 15:01:21] Production.INFO: ProcessCDR(1,14525857,1,1,2) [2025-02-21 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525857', 'tblTempUsageDetail_20' ) start [2025-02-21 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525857', 'tblTempUsageDetail_20' ) end [2025-02-21 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:01:27] Production.INFO: ==15027== Releasing lock... [2025-02-21 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:01:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-21 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:02:06 [end_date_ymd] => 2025-02-21 15:02:06 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:02:06' and `end` < '2025-02-21 15: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-21 15:02:19] Production.INFO: count ==5392 [2025-02-21 15:02:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:02:06 - End Time 2025-02-21 15:02:06 [2025-02-21 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525862', 'tblTempUsageDetail_20' ) start [2025-02-21 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525862', 'tblTempUsageDetail_20' ) end [2025-02-21 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525862', 'tblTempVendorCDR_20' ) start [2025-02-21 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525862', 'tblTempVendorCDR_20' ) end [2025-02-21 15:02:22] Production.INFO: ProcessCDR(1,14525862,1,1,2) [2025-02-21 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525862', 'tblTempUsageDetail_20' ) start [2025-02-21 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525862', 'tblTempUsageDetail_20' ) end [2025-02-21 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:02:27] Production.INFO: ==15098== Releasing lock... [2025-02-21 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:02:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:03:05 [end_date_ymd] => 2025-02-21 15:03:05 [RateCDR] => 1 ) [2025-02-21 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:03:05' and `end` < '2025-02-21 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:03:18] Production.INFO: count ==5385 [2025-02-21 15:03:20] Production.ERROR: pbx CDR StartTime 2025-02-21 12:03:05 - End Time 2025-02-21 15:03:05 [2025-02-21 15:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525867', 'tblTempUsageDetail_20' ) start [2025-02-21 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525867', 'tblTempUsageDetail_20' ) end [2025-02-21 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525867', 'tblTempVendorCDR_20' ) start [2025-02-21 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525867', 'tblTempVendorCDR_20' ) end [2025-02-21 15:03:20] Production.INFO: ProcessCDR(1,14525867,1,1,2) [2025-02-21 15:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525867', 'tblTempUsageDetail_20' ) start [2025-02-21 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525867', 'tblTempUsageDetail_20' ) end [2025-02-21 15:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:03:25] Production.INFO: ==15207== Releasing lock... [2025-02-21 15:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:03:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-21 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:04:06 [end_date_ymd] => 2025-02-21 15:04:06 [RateCDR] => 1 ) [2025-02-21 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:04:06' and `end` < '2025-02-21 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:04:19] Production.INFO: count ==5358 [2025-02-21 15:04:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:04:06 - End Time 2025-02-21 15:04:06 [2025-02-21 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525872', 'tblTempUsageDetail_20' ) start [2025-02-21 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525872', 'tblTempUsageDetail_20' ) end [2025-02-21 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525872', 'tblTempVendorCDR_20' ) start [2025-02-21 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525872', 'tblTempVendorCDR_20' ) end [2025-02-21 15:04:21] Production.INFO: ProcessCDR(1,14525872,1,1,2) [2025-02-21 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525872', 'tblTempUsageDetail_20' ) start [2025-02-21 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525872', 'tblTempUsageDetail_20' ) end [2025-02-21 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:04:27] Production.INFO: ==15281== Releasing lock... [2025-02-21 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:04:27] Production.INFO: 68 MB #Memory Used# [2025-02-21 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:05:06 [end_date_ymd] => 2025-02-21 15:05:06 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:05:06' and `end` < '2025-02-21 15: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-21 15:05:19] Production.INFO: count ==5313 [2025-02-21 15:05:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:05:06 - End Time 2025-02-21 15:05:06 [2025-02-21 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525877', 'tblTempUsageDetail_20' ) start [2025-02-21 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525877', 'tblTempUsageDetail_20' ) end [2025-02-21 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525877', 'tblTempVendorCDR_20' ) start [2025-02-21 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525877', 'tblTempVendorCDR_20' ) end [2025-02-21 15:05:21] Production.INFO: ProcessCDR(1,14525877,1,1,2) [2025-02-21 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525877', 'tblTempUsageDetail_20' ) start [2025-02-21 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525877', 'tblTempUsageDetail_20' ) end [2025-02-21 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:05:27] Production.INFO: ==15430== Releasing lock... [2025-02-21 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:05:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-21 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:06:06 [end_date_ymd] => 2025-02-21 15:06:06 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:06:06' and `end` < '2025-02-21 15: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-21 15:06:18] Production.INFO: count ==5277 [2025-02-21 15:06:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:06:06 - End Time 2025-02-21 15:06:06 [2025-02-21 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525882', 'tblTempUsageDetail_20' ) start [2025-02-21 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525882', 'tblTempUsageDetail_20' ) end [2025-02-21 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525882', 'tblTempVendorCDR_20' ) start [2025-02-21 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525882', 'tblTempVendorCDR_20' ) end [2025-02-21 15:06:21] Production.INFO: ProcessCDR(1,14525882,1,1,2) [2025-02-21 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525882', 'tblTempUsageDetail_20' ) start [2025-02-21 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525882', 'tblTempUsageDetail_20' ) end [2025-02-21 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:06:26] Production.INFO: ==15508== Releasing lock... [2025-02-21 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:06:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:07:05 [end_date_ymd] => 2025-02-21 15:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:07:05' and `end` < '2025-02-21 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-21 15:07:18] Production.INFO: count ==5258 [2025-02-21 15:07:20] Production.ERROR: pbx CDR StartTime 2025-02-21 12:07:05 - End Time 2025-02-21 15:07:05 [2025-02-21 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525887', 'tblTempUsageDetail_20' ) start [2025-02-21 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525887', 'tblTempUsageDetail_20' ) end [2025-02-21 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525887', 'tblTempVendorCDR_20' ) start [2025-02-21 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525887', 'tblTempVendorCDR_20' ) end [2025-02-21 15:07:21] Production.INFO: ProcessCDR(1,14525887,1,1,2) [2025-02-21 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525887', 'tblTempUsageDetail_20' ) start [2025-02-21 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525887', 'tblTempUsageDetail_20' ) end [2025-02-21 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:07:26] Production.INFO: ==15578== Releasing lock... [2025-02-21 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:07:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:08:06 [end_date_ymd] => 2025-02-21 15:08:06 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:08:06' and `end` < '2025-02-21 15: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-21 15:08:19] Production.INFO: count ==5253 [2025-02-21 15:08:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:08:06 - End Time 2025-02-21 15:08:06 [2025-02-21 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525892', 'tblTempUsageDetail_20' ) start [2025-02-21 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525892', 'tblTempUsageDetail_20' ) end [2025-02-21 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525892', 'tblTempVendorCDR_20' ) start [2025-02-21 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525892', 'tblTempVendorCDR_20' ) end [2025-02-21 15:08:21] Production.INFO: ProcessCDR(1,14525892,1,1,2) [2025-02-21 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525892', 'tblTempUsageDetail_20' ) start [2025-02-21 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525892', 'tblTempUsageDetail_20' ) end [2025-02-21 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:08:26] Production.INFO: ==15727== Releasing lock... [2025-02-21 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:08:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:09:05 [end_date_ymd] => 2025-02-21 15:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:09:05' and `end` < '2025-02-21 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-21 15:09:18] Production.INFO: count ==5249 [2025-02-21 15:09:20] Production.ERROR: pbx CDR StartTime 2025-02-21 12:09:05 - End Time 2025-02-21 15:09:05 [2025-02-21 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525894', 'tblTempUsageDetail_20' ) start [2025-02-21 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525894', 'tblTempUsageDetail_20' ) end [2025-02-21 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525894', 'tblTempVendorCDR_20' ) start [2025-02-21 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525894', 'tblTempVendorCDR_20' ) end [2025-02-21 15:09:20] Production.INFO: ProcessCDR(1,14525894,1,1,2) [2025-02-21 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525894', 'tblTempUsageDetail_20' ) start [2025-02-21 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525894', 'tblTempUsageDetail_20' ) end [2025-02-21 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:09:26] Production.INFO: ==15802== Releasing lock... [2025-02-21 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:09:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:10:07 [end_date_ymd] => 2025-02-21 15:10:07 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:10:07' and `end` < '2025-02-21 15: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-21 15:10:19] Production.INFO: count ==5246 [2025-02-21 15:10:22] Production.ERROR: pbx CDR StartTime 2025-02-21 12:10:07 - End Time 2025-02-21 15:10:07 [2025-02-21 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525903', 'tblTempUsageDetail_20' ) start [2025-02-21 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525903', 'tblTempUsageDetail_20' ) end [2025-02-21 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525903', 'tblTempVendorCDR_20' ) start [2025-02-21 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525903', 'tblTempVendorCDR_20' ) end [2025-02-21 15:10:22] Production.INFO: ProcessCDR(1,14525903,1,1,2) [2025-02-21 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525903', 'tblTempUsageDetail_20' ) start [2025-02-21 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525903', 'tblTempUsageDetail_20' ) end [2025-02-21 15:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:10:26] Production.INFO: ==15876== Releasing lock... [2025-02-21 15:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:10:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:11:05 [end_date_ymd] => 2025-02-21 15:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:11:05' and `end` < '2025-02-21 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-21 15:11:18] Production.INFO: count ==5252 [2025-02-21 15:11:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:11:05 - End Time 2025-02-21 15:11:05 [2025-02-21 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525908', 'tblTempUsageDetail_20' ) start [2025-02-21 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525908', 'tblTempUsageDetail_20' ) end [2025-02-21 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525908', 'tblTempVendorCDR_20' ) start [2025-02-21 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525908', 'tblTempVendorCDR_20' ) end [2025-02-21 15:11:21] Production.INFO: ProcessCDR(1,14525908,1,1,2) [2025-02-21 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525908', 'tblTempUsageDetail_20' ) start [2025-02-21 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525908', 'tblTempUsageDetail_20' ) end [2025-02-21 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:11:26] Production.INFO: ==15949== Releasing lock... [2025-02-21 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:11:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:12:06 [end_date_ymd] => 2025-02-21 15:12:06 [RateCDR] => 1 ) [2025-02-21 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-21 12:12:06' and `end` < '2025-02-21 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-21 15:12:19] Production.INFO: count ==5282 [2025-02-21 15:12:22] Production.ERROR: pbx CDR StartTime 2025-02-21 12:12:06 - End Time 2025-02-21 15:12:06 [2025-02-21 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525913', 'tblTempUsageDetail_20' ) start [2025-02-21 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525913', 'tblTempUsageDetail_20' ) end [2025-02-21 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525913', 'tblTempVendorCDR_20' ) start [2025-02-21 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525913', 'tblTempVendorCDR_20' ) end [2025-02-21 15:12:22] Production.INFO: ProcessCDR(1,14525913,1,1,2) [2025-02-21 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525913', 'tblTempUsageDetail_20' ) start [2025-02-21 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525913', 'tblTempUsageDetail_20' ) end [2025-02-21 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:12:27] Production.INFO: ==16097== Releasing lock... [2025-02-21 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:12:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:13:05 [end_date_ymd] => 2025-02-21 15:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:13:05' and `end` < '2025-02-21 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-21 15:13:18] Production.INFO: count ==5267 [2025-02-21 15:13:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:13:05 - End Time 2025-02-21 15:13:05 [2025-02-21 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525918', 'tblTempUsageDetail_20' ) start [2025-02-21 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525918', 'tblTempUsageDetail_20' ) end [2025-02-21 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525918', 'tblTempVendorCDR_20' ) start [2025-02-21 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525918', 'tblTempVendorCDR_20' ) end [2025-02-21 15:13:21] Production.INFO: ProcessCDR(1,14525918,1,1,2) [2025-02-21 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525918', 'tblTempUsageDetail_20' ) start [2025-02-21 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525918', 'tblTempUsageDetail_20' ) end [2025-02-21 15:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:13:26] Production.INFO: ==16167== Releasing lock... [2025-02-21 15:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:13:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:14:05 [end_date_ymd] => 2025-02-21 15:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:14:05' and `end` < '2025-02-21 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-21 15:14:18] Production.INFO: count ==5255 [2025-02-21 15:14:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:14:05 - End Time 2025-02-21 15:14:05 [2025-02-21 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525923', 'tblTempUsageDetail_20' ) start [2025-02-21 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525923', 'tblTempUsageDetail_20' ) end [2025-02-21 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525923', 'tblTempVendorCDR_20' ) start [2025-02-21 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525923', 'tblTempVendorCDR_20' ) end [2025-02-21 15:14:21] Production.INFO: ProcessCDR(1,14525923,1,1,2) [2025-02-21 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525923', 'tblTempUsageDetail_20' ) start [2025-02-21 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525923', 'tblTempUsageDetail_20' ) end [2025-02-21 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:14:26] Production.INFO: ==16238== Releasing lock... [2025-02-21 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:14:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:15:05 [end_date_ymd] => 2025-02-21 15:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:15:05' and `end` < '2025-02-21 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-21 15:15:19] Production.INFO: count ==5270 [2025-02-21 15:15:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:15:05 - End Time 2025-02-21 15:15:05 [2025-02-21 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525928', 'tblTempUsageDetail_20' ) start [2025-02-21 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525928', 'tblTempUsageDetail_20' ) end [2025-02-21 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525928', 'tblTempVendorCDR_20' ) start [2025-02-21 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525928', 'tblTempVendorCDR_20' ) end [2025-02-21 15:15:21] Production.INFO: ProcessCDR(1,14525928,1,1,2) [2025-02-21 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525928', 'tblTempUsageDetail_20' ) start [2025-02-21 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525928', 'tblTempUsageDetail_20' ) end [2025-02-21 15:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:15:25] Production.INFO: ==16387== Releasing lock... [2025-02-21 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:15:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:16:06 [end_date_ymd] => 2025-02-21 15:16:06 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:16:06' and `end` < '2025-02-21 15: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-21 15:16:19] Production.INFO: count ==5276 [2025-02-21 15:16:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:16:06 - End Time 2025-02-21 15:16:06 [2025-02-21 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525933', 'tblTempUsageDetail_20' ) start [2025-02-21 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525933', 'tblTempUsageDetail_20' ) end [2025-02-21 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525933', 'tblTempVendorCDR_20' ) start [2025-02-21 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525933', 'tblTempVendorCDR_20' ) end [2025-02-21 15:16:21] Production.INFO: ProcessCDR(1,14525933,1,1,2) [2025-02-21 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525933', 'tblTempUsageDetail_20' ) start [2025-02-21 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525933', 'tblTempUsageDetail_20' ) end [2025-02-21 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:16:27] Production.INFO: ==16461== Releasing lock... [2025-02-21 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:16:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:17:05 [end_date_ymd] => 2025-02-21 15:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:17:05' and `end` < '2025-02-21 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-21 15:17:18] Production.INFO: count ==5276 [2025-02-21 15:17:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:17:05 - End Time 2025-02-21 15:17:05 [2025-02-21 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525938', 'tblTempUsageDetail_20' ) start [2025-02-21 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525938', 'tblTempUsageDetail_20' ) end [2025-02-21 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525938', 'tblTempVendorCDR_20' ) start [2025-02-21 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525938', 'tblTempVendorCDR_20' ) end [2025-02-21 15:17:21] Production.INFO: ProcessCDR(1,14525938,1,1,2) [2025-02-21 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525938', 'tblTempUsageDetail_20' ) start [2025-02-21 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525938', 'tblTempUsageDetail_20' ) end [2025-02-21 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:17:26] Production.INFO: ==16534== Releasing lock... [2025-02-21 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:17:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-21 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:18:06 [end_date_ymd] => 2025-02-21 15:18:06 [RateCDR] => 1 ) [2025-02-21 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-21 12:18:06' and `end` < '2025-02-21 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-21 15:18:19] Production.INFO: count ==5257 [2025-02-21 15:18:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:18:06 - End Time 2025-02-21 15:18:06 [2025-02-21 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525943', 'tblTempUsageDetail_20' ) start [2025-02-21 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525943', 'tblTempUsageDetail_20' ) end [2025-02-21 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525943', 'tblTempVendorCDR_20' ) start [2025-02-21 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525943', 'tblTempVendorCDR_20' ) end [2025-02-21 15:18:22] Production.INFO: ProcessCDR(1,14525943,1,1,2) [2025-02-21 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525943', 'tblTempUsageDetail_20' ) start [2025-02-21 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525943', 'tblTempUsageDetail_20' ) end [2025-02-21 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:18:27] Production.INFO: ==16604== Releasing lock... [2025-02-21 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:18:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-21 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:19:05 [end_date_ymd] => 2025-02-21 15:19:05 [RateCDR] => 1 ) [2025-02-21 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:19:05' and `end` < '2025-02-21 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:19:18] Production.INFO: count ==5211 [2025-02-21 15:19:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:19:05 - End Time 2025-02-21 15:19:05 [2025-02-21 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525948', 'tblTempUsageDetail_20' ) start [2025-02-21 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525948', 'tblTempUsageDetail_20' ) end [2025-02-21 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525948', 'tblTempVendorCDR_20' ) start [2025-02-21 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525948', 'tblTempVendorCDR_20' ) end [2025-02-21 15:19:21] Production.INFO: ProcessCDR(1,14525948,1,1,2) [2025-02-21 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525948', 'tblTempUsageDetail_20' ) start [2025-02-21 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525948', 'tblTempUsageDetail_20' ) end [2025-02-21 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:19:26] Production.INFO: ==16714== Releasing lock... [2025-02-21 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:19:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:20:07 [end_date_ymd] => 2025-02-21 15:20:07 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:20:07' and `end` < '2025-02-21 15: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-21 15:20:20] Production.INFO: count ==5183 [2025-02-21 15:20:22] Production.ERROR: pbx CDR StartTime 2025-02-21 12:20:07 - End Time 2025-02-21 15:20:07 [2025-02-21 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525954', 'tblTempUsageDetail_20' ) start [2025-02-21 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525954', 'tblTempUsageDetail_20' ) end [2025-02-21 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525954', 'tblTempVendorCDR_20' ) start [2025-02-21 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525954', 'tblTempVendorCDR_20' ) end [2025-02-21 15:20:22] Production.INFO: ProcessCDR(1,14525954,1,1,2) [2025-02-21 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525954', 'tblTempUsageDetail_20' ) start [2025-02-21 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525954', 'tblTempUsageDetail_20' ) end [2025-02-21 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:20:28] Production.INFO: ==16788== Releasing lock... [2025-02-21 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:20:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:21:06 [end_date_ymd] => 2025-02-21 15:21:06 [RateCDR] => 1 ) [2025-02-21 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:21:06' and `end` < '2025-02-21 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:21:19] Production.INFO: count ==5132 [2025-02-21 15:21:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:21:06 - End Time 2025-02-21 15:21:06 [2025-02-21 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525959', 'tblTempUsageDetail_20' ) start [2025-02-21 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525959', 'tblTempUsageDetail_20' ) end [2025-02-21 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525959', 'tblTempVendorCDR_20' ) start [2025-02-21 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525959', 'tblTempVendorCDR_20' ) end [2025-02-21 15:21:22] Production.INFO: ProcessCDR(1,14525959,1,1,2) [2025-02-21 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525959', 'tblTempUsageDetail_20' ) start [2025-02-21 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525959', 'tblTempUsageDetail_20' ) end [2025-02-21 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:21:27] Production.INFO: ==16861== Releasing lock... [2025-02-21 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:21:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:22:06 [end_date_ymd] => 2025-02-21 15:22:06 [RateCDR] => 1 ) [2025-02-21 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-21 12:22:06' and `end` < '2025-02-21 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-21 15:22:19] Production.INFO: count ==5125 [2025-02-21 15:22:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:22:06 - End Time 2025-02-21 15:22:06 [2025-02-21 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525964', 'tblTempUsageDetail_20' ) start [2025-02-21 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525964', 'tblTempUsageDetail_20' ) end [2025-02-21 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525964', 'tblTempVendorCDR_20' ) start [2025-02-21 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525964', 'tblTempVendorCDR_20' ) end [2025-02-21 15:22:21] Production.INFO: ProcessCDR(1,14525964,1,1,2) [2025-02-21 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525964', 'tblTempUsageDetail_20' ) start [2025-02-21 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525964', 'tblTempUsageDetail_20' ) end [2025-02-21 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:22:27] Production.INFO: ==16933== Releasing lock... [2025-02-21 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:22:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-21 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:23:05 [end_date_ymd] => 2025-02-21 15:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:23:05' and `end` < '2025-02-21 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-21 15:23:18] Production.INFO: count ==5141 [2025-02-21 15:23:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:23:05 - End Time 2025-02-21 15:23:05 [2025-02-21 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525969', 'tblTempUsageDetail_20' ) start [2025-02-21 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525969', 'tblTempUsageDetail_20' ) end [2025-02-21 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525969', 'tblTempVendorCDR_20' ) start [2025-02-21 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525969', 'tblTempVendorCDR_20' ) end [2025-02-21 15:23:21] Production.INFO: ProcessCDR(1,14525969,1,1,2) [2025-02-21 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525969', 'tblTempUsageDetail_20' ) start [2025-02-21 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525969', 'tblTempUsageDetail_20' ) end [2025-02-21 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:23:27] Production.INFO: ==17010== Releasing lock... [2025-02-21 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:23:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:24:06 [end_date_ymd] => 2025-02-21 15:24:06 [RateCDR] => 1 ) [2025-02-21 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:24:06' and `end` < '2025-02-21 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:24:19] Production.INFO: count ==5155 [2025-02-21 15:24:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:24:06 - End Time 2025-02-21 15:24:06 [2025-02-21 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525974', 'tblTempUsageDetail_20' ) start [2025-02-21 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525974', 'tblTempUsageDetail_20' ) end [2025-02-21 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525974', 'tblTempVendorCDR_20' ) start [2025-02-21 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525974', 'tblTempVendorCDR_20' ) end [2025-02-21 15:24:21] Production.INFO: ProcessCDR(1,14525974,1,1,2) [2025-02-21 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525974', 'tblTempUsageDetail_20' ) start [2025-02-21 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525974', 'tblTempUsageDetail_20' ) end [2025-02-21 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:24:27] Production.INFO: ==17082== Releasing lock... [2025-02-21 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:24:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:25:06 [end_date_ymd] => 2025-02-21 15:25:06 [RateCDR] => 1 ) [2025-02-21 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-21 12:25:06' and `end` < '2025-02-21 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-21 15:25:19] Production.INFO: count ==5171 [2025-02-21 15:25:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:25:06 - End Time 2025-02-21 15:25:06 [2025-02-21 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525979', 'tblTempUsageDetail_20' ) start [2025-02-21 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525979', 'tblTempUsageDetail_20' ) end [2025-02-21 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525979', 'tblTempVendorCDR_20' ) start [2025-02-21 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525979', 'tblTempVendorCDR_20' ) end [2025-02-21 15:25:22] Production.INFO: ProcessCDR(1,14525979,1,1,2) [2025-02-21 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525979', 'tblTempUsageDetail_20' ) start [2025-02-21 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525979', 'tblTempUsageDetail_20' ) end [2025-02-21 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:25:27] Production.INFO: ==17159== Releasing lock... [2025-02-21 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:25:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:26:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:26:07 [end_date_ymd] => 2025-02-21 15:26:07 [RateCDR] => 1 ) [2025-02-21 15:26: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-21 12:26:07' and `end` < '2025-02-21 15:26: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-21 15:26:20] Production.INFO: count ==5188 [2025-02-21 15:26:22] Production.ERROR: pbx CDR StartTime 2025-02-21 12:26:07 - End Time 2025-02-21 15:26:07 [2025-02-21 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525984', 'tblTempUsageDetail_20' ) start [2025-02-21 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525984', 'tblTempUsageDetail_20' ) end [2025-02-21 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525984', 'tblTempVendorCDR_20' ) start [2025-02-21 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525984', 'tblTempVendorCDR_20' ) end [2025-02-21 15:26:22] Production.INFO: ProcessCDR(1,14525984,1,1,2) [2025-02-21 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525984', 'tblTempUsageDetail_20' ) start [2025-02-21 15:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525984', 'tblTempUsageDetail_20' ) end [2025-02-21 15:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:26:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:26:28] Production.INFO: ==17239== Releasing lock... [2025-02-21 15:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:26:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:27:05 [end_date_ymd] => 2025-02-21 15:27:05 [RateCDR] => 1 ) [2025-02-21 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:27:05' and `end` < '2025-02-21 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:27:19] Production.INFO: count ==5192 [2025-02-21 15:27:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:27:05 - End Time 2025-02-21 15:27:05 [2025-02-21 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525989', 'tblTempUsageDetail_20' ) start [2025-02-21 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525989', 'tblTempUsageDetail_20' ) end [2025-02-21 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525989', 'tblTempVendorCDR_20' ) start [2025-02-21 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525989', 'tblTempVendorCDR_20' ) end [2025-02-21 15:27:21] Production.INFO: ProcessCDR(1,14525989,1,1,2) [2025-02-21 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525989', 'tblTempUsageDetail_20' ) start [2025-02-21 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525989', 'tblTempUsageDetail_20' ) end [2025-02-21 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:27:26] Production.INFO: ==17309== Releasing lock... [2025-02-21 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:27:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:28:05 [end_date_ymd] => 2025-02-21 15:28:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:28:05' and `end` < '2025-02-21 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-21 15:28:18] Production.INFO: count ==5202 [2025-02-21 15:28:20] Production.ERROR: pbx CDR StartTime 2025-02-21 12:28:05 - End Time 2025-02-21 15:28:05 [2025-02-21 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525994', 'tblTempUsageDetail_20' ) start [2025-02-21 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525994', 'tblTempUsageDetail_20' ) end [2025-02-21 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525994', 'tblTempVendorCDR_20' ) start [2025-02-21 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525994', 'tblTempVendorCDR_20' ) end [2025-02-21 15:28:21] Production.INFO: ProcessCDR(1,14525994,1,1,2) [2025-02-21 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525994', 'tblTempUsageDetail_20' ) start [2025-02-21 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525994', 'tblTempUsageDetail_20' ) end [2025-02-21 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:28:26] Production.INFO: ==17385== Releasing lock... [2025-02-21 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:28:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:29:05 [end_date_ymd] => 2025-02-21 15:29:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:29:05' and `end` < '2025-02-21 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-21 15:29:18] Production.INFO: count ==5198 [2025-02-21 15:29:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:29:05 - End Time 2025-02-21 15:29:05 [2025-02-21 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525999', 'tblTempUsageDetail_20' ) start [2025-02-21 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14525999', 'tblTempUsageDetail_20' ) end [2025-02-21 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525999', 'tblTempVendorCDR_20' ) start [2025-02-21 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14525999', 'tblTempVendorCDR_20' ) end [2025-02-21 15:29:21] Production.INFO: ProcessCDR(1,14525999,1,1,2) [2025-02-21 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14525999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14525999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14525999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14525999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525999', 'tblTempUsageDetail_20' ) start [2025-02-21 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14525999', 'tblTempUsageDetail_20' ) end [2025-02-21 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:29:26] Production.INFO: ==17457== Releasing lock... [2025-02-21 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:29:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:30:06 [end_date_ymd] => 2025-02-21 15:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 12:30:06' and `end` < '2025-02-21 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-21 15:30:19] Production.INFO: count ==5196 [2025-02-21 15:30:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:30:06 - End Time 2025-02-21 15:30:06 [2025-02-21 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526005', 'tblTempUsageDetail_20' ) start [2025-02-21 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526005', 'tblTempUsageDetail_20' ) end [2025-02-21 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526005', 'tblTempVendorCDR_20' ) start [2025-02-21 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526005', 'tblTempVendorCDR_20' ) end [2025-02-21 15:30:21] Production.INFO: ProcessCDR(1,14526005,1,1,2) [2025-02-21 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526005', 'tblTempUsageDetail_20' ) start [2025-02-21 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526005', 'tblTempUsageDetail_20' ) end [2025-02-21 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:30:27] Production.INFO: ==17533== Releasing lock... [2025-02-21 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:30:27] Production.INFO: 67 MB #Memory Used# [2025-02-21 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:31:06 [end_date_ymd] => 2025-02-21 15:31:06 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:31:06' and `end` < '2025-02-21 15: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-21 15:31:19] Production.INFO: count ==5193 [2025-02-21 15:31:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:31:06 - End Time 2025-02-21 15:31:06 [2025-02-21 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526010', 'tblTempUsageDetail_20' ) start [2025-02-21 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526010', 'tblTempUsageDetail_20' ) end [2025-02-21 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526010', 'tblTempVendorCDR_20' ) start [2025-02-21 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526010', 'tblTempVendorCDR_20' ) end [2025-02-21 15:31:21] Production.INFO: ProcessCDR(1,14526010,1,1,2) [2025-02-21 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526010', 'tblTempUsageDetail_20' ) start [2025-02-21 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526010', 'tblTempUsageDetail_20' ) end [2025-02-21 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:31:25] Production.INFO: ==17606== Releasing lock... [2025-02-21 15:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:31:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:32:05 [end_date_ymd] => 2025-02-21 15:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:32:05' and `end` < '2025-02-21 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-21 15:32:18] Production.INFO: count ==5198 [2025-02-21 15:32:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:32:05 - End Time 2025-02-21 15:32:05 [2025-02-21 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526015', 'tblTempUsageDetail_20' ) start [2025-02-21 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526015', 'tblTempUsageDetail_20' ) end [2025-02-21 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526015', 'tblTempVendorCDR_20' ) start [2025-02-21 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526015', 'tblTempVendorCDR_20' ) end [2025-02-21 15:32:21] Production.INFO: ProcessCDR(1,14526015,1,1,2) [2025-02-21 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526015', 'tblTempUsageDetail_20' ) start [2025-02-21 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526015', 'tblTempUsageDetail_20' ) end [2025-02-21 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:32:26] Production.INFO: ==17677== Releasing lock... [2025-02-21 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:32:26] Production.INFO: 67 MB #Memory Used# [2025-02-21 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:33:06 [end_date_ymd] => 2025-02-21 15:33:06 [RateCDR] => 1 ) [2025-02-21 15:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:33:06' and `end` < '2025-02-21 15:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:33:19] Production.INFO: count ==5180 [2025-02-21 15:33:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:33:06 - End Time 2025-02-21 15:33:06 [2025-02-21 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526020', 'tblTempUsageDetail_20' ) start [2025-02-21 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526020', 'tblTempUsageDetail_20' ) end [2025-02-21 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526020', 'tblTempVendorCDR_20' ) start [2025-02-21 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526020', 'tblTempVendorCDR_20' ) end [2025-02-21 15:33:21] Production.INFO: ProcessCDR(1,14526020,1,1,2) [2025-02-21 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526020', 'tblTempUsageDetail_20' ) start [2025-02-21 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526020', 'tblTempUsageDetail_20' ) end [2025-02-21 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:33:27] Production.INFO: ==17747== Releasing lock... [2025-02-21 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:33:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:34:05 [end_date_ymd] => 2025-02-21 15:34:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:34:05' and `end` < '2025-02-21 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-21 15:34:18] Production.INFO: count ==5162 [2025-02-21 15:34:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:34:05 - End Time 2025-02-21 15:34:05 [2025-02-21 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526025', 'tblTempUsageDetail_20' ) start [2025-02-21 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526025', 'tblTempUsageDetail_20' ) end [2025-02-21 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526025', 'tblTempVendorCDR_20' ) start [2025-02-21 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526025', 'tblTempVendorCDR_20' ) end [2025-02-21 15:34:21] Production.INFO: ProcessCDR(1,14526025,1,1,2) [2025-02-21 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526025', 'tblTempUsageDetail_20' ) start [2025-02-21 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526025', 'tblTempUsageDetail_20' ) end [2025-02-21 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:34:26] Production.INFO: ==17858== Releasing lock... [2025-02-21 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:34:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:35:06 [end_date_ymd] => 2025-02-21 15:35:06 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:35:06' and `end` < '2025-02-21 15: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-21 15:35:19] Production.INFO: count ==5159 [2025-02-21 15:35:22] Production.ERROR: pbx CDR StartTime 2025-02-21 12:35:06 - End Time 2025-02-21 15:35:06 [2025-02-21 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526030', 'tblTempUsageDetail_20' ) start [2025-02-21 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526030', 'tblTempUsageDetail_20' ) end [2025-02-21 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526030', 'tblTempVendorCDR_20' ) start [2025-02-21 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526030', 'tblTempVendorCDR_20' ) end [2025-02-21 15:35:22] Production.INFO: ProcessCDR(1,14526030,1,1,2) [2025-02-21 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526030', 'tblTempUsageDetail_20' ) start [2025-02-21 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526030', 'tblTempUsageDetail_20' ) end [2025-02-21 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:35:27] Production.INFO: ==17927== Releasing lock... [2025-02-21 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:35:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:36:06 [end_date_ymd] => 2025-02-21 15:36:06 [RateCDR] => 1 ) [2025-02-21 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-21 12:36:06' and `end` < '2025-02-21 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-21 15:36:19] Production.INFO: count ==5153 [2025-02-21 15:36:22] Production.ERROR: pbx CDR StartTime 2025-02-21 12:36:06 - End Time 2025-02-21 15:36:06 [2025-02-21 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526035', 'tblTempUsageDetail_20' ) start [2025-02-21 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526035', 'tblTempUsageDetail_20' ) end [2025-02-21 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526035', 'tblTempVendorCDR_20' ) start [2025-02-21 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526035', 'tblTempVendorCDR_20' ) end [2025-02-21 15:36:22] Production.INFO: ProcessCDR(1,14526035,1,1,2) [2025-02-21 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526035', 'tblTempUsageDetail_20' ) start [2025-02-21 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526035', 'tblTempUsageDetail_20' ) end [2025-02-21 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:36:28] Production.INFO: ==18000== Releasing lock... [2025-02-21 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:36:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:37:06 [end_date_ymd] => 2025-02-21 15:37:06 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:37:06' and `end` < '2025-02-21 15: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-21 15:37:20] Production.INFO: count ==5160 [2025-02-21 15:37:22] Production.ERROR: pbx CDR StartTime 2025-02-21 12:37:06 - End Time 2025-02-21 15:37:06 [2025-02-21 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526040', 'tblTempUsageDetail_20' ) start [2025-02-21 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526040', 'tblTempUsageDetail_20' ) end [2025-02-21 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526040', 'tblTempVendorCDR_20' ) start [2025-02-21 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526040', 'tblTempVendorCDR_20' ) end [2025-02-21 15:37:23] Production.INFO: ProcessCDR(1,14526040,1,1,2) [2025-02-21 15:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526040', 'tblTempUsageDetail_20' ) start [2025-02-21 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526040', 'tblTempUsageDetail_20' ) end [2025-02-21 15:37:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:37:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:37:28] Production.INFO: ==18071== Releasing lock... [2025-02-21 15:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:37:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:38:05 [end_date_ymd] => 2025-02-21 15:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:38:05' and `end` < '2025-02-21 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-21 15:38:18] Production.INFO: count ==5158 [2025-02-21 15:38:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:38:05 - End Time 2025-02-21 15:38:05 [2025-02-21 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526045', 'tblTempUsageDetail_20' ) start [2025-02-21 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526045', 'tblTempUsageDetail_20' ) end [2025-02-21 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526045', 'tblTempVendorCDR_20' ) start [2025-02-21 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526045', 'tblTempVendorCDR_20' ) end [2025-02-21 15:38:21] Production.INFO: ProcessCDR(1,14526045,1,1,2) [2025-02-21 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526045', 'tblTempUsageDetail_20' ) start [2025-02-21 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526045', 'tblTempUsageDetail_20' ) end [2025-02-21 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:38:26] Production.INFO: ==18142== Releasing lock... [2025-02-21 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:38:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:39:05 [end_date_ymd] => 2025-02-21 15:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:39:05' and `end` < '2025-02-21 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-21 15:39:18] Production.INFO: count ==5191 [2025-02-21 15:39:20] Production.ERROR: pbx CDR StartTime 2025-02-21 12:39:05 - End Time 2025-02-21 15:39:05 [2025-02-21 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526048', 'tblTempUsageDetail_20' ) start [2025-02-21 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526048', 'tblTempUsageDetail_20' ) end [2025-02-21 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526048', 'tblTempVendorCDR_20' ) start [2025-02-21 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526048', 'tblTempVendorCDR_20' ) end [2025-02-21 15:39:21] Production.INFO: ProcessCDR(1,14526048,1,1,2) [2025-02-21 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526048', 'tblTempUsageDetail_20' ) start [2025-02-21 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526048', 'tblTempUsageDetail_20' ) end [2025-02-21 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:39:26] Production.INFO: ==18212== Releasing lock... [2025-02-21 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:39:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:40:07 [end_date_ymd] => 2025-02-21 15:40:07 [RateCDR] => 1 ) [2025-02-21 15:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:40:07' and `end` < '2025-02-21 15:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:40:19] Production.INFO: count ==5170 [2025-02-21 15:40:22] Production.ERROR: pbx CDR StartTime 2025-02-21 12:40:07 - End Time 2025-02-21 15:40:07 [2025-02-21 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526056', 'tblTempUsageDetail_20' ) start [2025-02-21 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526056', 'tblTempUsageDetail_20' ) end [2025-02-21 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526056', 'tblTempVendorCDR_20' ) start [2025-02-21 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526056', 'tblTempVendorCDR_20' ) end [2025-02-21 15:40:22] Production.INFO: ProcessCDR(1,14526056,1,1,2) [2025-02-21 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526056', 'tblTempUsageDetail_20' ) start [2025-02-21 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526056', 'tblTempUsageDetail_20' ) end [2025-02-21 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:40:28] Production.INFO: ==18287== Releasing lock... [2025-02-21 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:40:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:41:05 [end_date_ymd] => 2025-02-21 15:41:05 [RateCDR] => 1 ) [2025-02-21 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:41:05' and `end` < '2025-02-21 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:41:18] Production.INFO: count ==5148 [2025-02-21 15:41:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:41:05 - End Time 2025-02-21 15:41:05 [2025-02-21 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526061', 'tblTempUsageDetail_20' ) start [2025-02-21 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526061', 'tblTempUsageDetail_20' ) end [2025-02-21 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526061', 'tblTempVendorCDR_20' ) start [2025-02-21 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526061', 'tblTempVendorCDR_20' ) end [2025-02-21 15:41:21] Production.INFO: ProcessCDR(1,14526061,1,1,2) [2025-02-21 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526061', 'tblTempUsageDetail_20' ) start [2025-02-21 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526061', 'tblTempUsageDetail_20' ) end [2025-02-21 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:41:26] Production.INFO: ==18361== Releasing lock... [2025-02-21 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:41:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:42:06 [end_date_ymd] => 2025-02-21 15:42:06 [RateCDR] => 1 ) [2025-02-21 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:42:06' and `end` < '2025-02-21 15:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:42:19] Production.INFO: count ==5152 [2025-02-21 15:42:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:42:06 - End Time 2025-02-21 15:42:06 [2025-02-21 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526066', 'tblTempUsageDetail_20' ) start [2025-02-21 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526066', 'tblTempUsageDetail_20' ) end [2025-02-21 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526066', 'tblTempVendorCDR_20' ) start [2025-02-21 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526066', 'tblTempVendorCDR_20' ) end [2025-02-21 15:42:22] Production.INFO: ProcessCDR(1,14526066,1,1,2) [2025-02-21 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526066', 'tblTempUsageDetail_20' ) start [2025-02-21 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526066', 'tblTempUsageDetail_20' ) end [2025-02-21 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:42:27] Production.INFO: ==18435== Releasing lock... [2025-02-21 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:42:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:43:06 [end_date_ymd] => 2025-02-21 15:43:06 [RateCDR] => 1 ) [2025-02-21 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-21 12:43:06' and `end` < '2025-02-21 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-21 15:43:19] Production.INFO: count ==5169 [2025-02-21 15:43:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:43:06 - End Time 2025-02-21 15:43:06 [2025-02-21 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526071', 'tblTempUsageDetail_20' ) start [2025-02-21 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526071', 'tblTempUsageDetail_20' ) end [2025-02-21 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526071', 'tblTempVendorCDR_20' ) start [2025-02-21 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526071', 'tblTempVendorCDR_20' ) end [2025-02-21 15:43:21] Production.INFO: ProcessCDR(1,14526071,1,1,2) [2025-02-21 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526071', 'tblTempUsageDetail_20' ) start [2025-02-21 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526071', 'tblTempUsageDetail_20' ) end [2025-02-21 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:43:27] Production.INFO: ==18505== Releasing lock... [2025-02-21 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:43:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:44:06 [end_date_ymd] => 2025-02-21 15:44:06 [RateCDR] => 1 ) [2025-02-21 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:44:06' and `end` < '2025-02-21 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:44:19] Production.INFO: count ==5167 [2025-02-21 15:44:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:44:06 - End Time 2025-02-21 15:44:06 [2025-02-21 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526076', 'tblTempUsageDetail_20' ) start [2025-02-21 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526076', 'tblTempUsageDetail_20' ) end [2025-02-21 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526076', 'tblTempVendorCDR_20' ) start [2025-02-21 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526076', 'tblTempVendorCDR_20' ) end [2025-02-21 15:44:21] Production.INFO: ProcessCDR(1,14526076,1,1,2) [2025-02-21 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526076', 'tblTempUsageDetail_20' ) start [2025-02-21 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526076', 'tblTempUsageDetail_20' ) end [2025-02-21 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:44:27] Production.INFO: ==18576== Releasing lock... [2025-02-21 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:44:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:45:05 [end_date_ymd] => 2025-02-21 15:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:45:05' and `end` < '2025-02-21 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-21 15:45:19] Production.INFO: count ==5161 [2025-02-21 15:45:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:45:05 - End Time 2025-02-21 15:45:05 [2025-02-21 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526081', 'tblTempUsageDetail_20' ) start [2025-02-21 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526081', 'tblTempUsageDetail_20' ) end [2025-02-21 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526081', 'tblTempVendorCDR_20' ) start [2025-02-21 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526081', 'tblTempVendorCDR_20' ) end [2025-02-21 15:45:21] Production.INFO: ProcessCDR(1,14526081,1,1,2) [2025-02-21 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526081', 'tblTempUsageDetail_20' ) start [2025-02-21 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526081', 'tblTempUsageDetail_20' ) end [2025-02-21 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:45:26] Production.INFO: ==18651== Releasing lock... [2025-02-21 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:45:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:46:06 [end_date_ymd] => 2025-02-21 15:46:06 [RateCDR] => 1 ) [2025-02-21 15: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-21 12:46:06' and `end` < '2025-02-21 15: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-21 15:46:19] Production.INFO: count ==5161 [2025-02-21 15:46:22] Production.ERROR: pbx CDR StartTime 2025-02-21 12:46:06 - End Time 2025-02-21 15:46:06 [2025-02-21 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526086', 'tblTempUsageDetail_20' ) start [2025-02-21 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526086', 'tblTempUsageDetail_20' ) end [2025-02-21 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526086', 'tblTempVendorCDR_20' ) start [2025-02-21 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526086', 'tblTempVendorCDR_20' ) end [2025-02-21 15:46:22] Production.INFO: ProcessCDR(1,14526086,1,1,2) [2025-02-21 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526086', 'tblTempUsageDetail_20' ) start [2025-02-21 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526086', 'tblTempUsageDetail_20' ) end [2025-02-21 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:46:28] Production.INFO: ==18721== Releasing lock... [2025-02-21 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:46:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:47:06 [end_date_ymd] => 2025-02-21 15:47:06 [RateCDR] => 1 ) [2025-02-21 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-21 12:47:06' and `end` < '2025-02-21 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-21 15:47:19] Production.INFO: count ==5172 [2025-02-21 15:47:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:47:06 - End Time 2025-02-21 15:47:06 [2025-02-21 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526091', 'tblTempUsageDetail_20' ) start [2025-02-21 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526091', 'tblTempUsageDetail_20' ) end [2025-02-21 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526091', 'tblTempVendorCDR_20' ) start [2025-02-21 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526091', 'tblTempVendorCDR_20' ) end [2025-02-21 15:47:21] Production.INFO: ProcessCDR(1,14526091,1,1,2) [2025-02-21 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526091', 'tblTempUsageDetail_20' ) start [2025-02-21 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526091', 'tblTempUsageDetail_20' ) end [2025-02-21 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:47:27] Production.INFO: ==18795== Releasing lock... [2025-02-21 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:47:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:48:05 [end_date_ymd] => 2025-02-21 15:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:48:05' and `end` < '2025-02-21 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-21 15:48:18] Production.INFO: count ==5195 [2025-02-21 15:48:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:48:05 - End Time 2025-02-21 15:48:05 [2025-02-21 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526096', 'tblTempUsageDetail_20' ) start [2025-02-21 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526096', 'tblTempUsageDetail_20' ) end [2025-02-21 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526096', 'tblTempVendorCDR_20' ) start [2025-02-21 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526096', 'tblTempVendorCDR_20' ) end [2025-02-21 15:48:21] Production.INFO: ProcessCDR(1,14526096,1,1,2) [2025-02-21 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526096', 'tblTempUsageDetail_20' ) start [2025-02-21 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526096', 'tblTempUsageDetail_20' ) end [2025-02-21 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:48:27] Production.INFO: ==18867== Releasing lock... [2025-02-21 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:48:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:49:05 [end_date_ymd] => 2025-02-21 15:49:05 [RateCDR] => 1 ) [2025-02-21 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:49:05' and `end` < '2025-02-21 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:49:18] Production.INFO: count ==5183 [2025-02-21 15:49:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:49:05 - End Time 2025-02-21 15:49:05 [2025-02-21 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526101', 'tblTempUsageDetail_20' ) start [2025-02-21 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526101', 'tblTempUsageDetail_20' ) end [2025-02-21 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526101', 'tblTempVendorCDR_20' ) start [2025-02-21 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526101', 'tblTempVendorCDR_20' ) end [2025-02-21 15:49:21] Production.INFO: ProcessCDR(1,14526101,1,1,2) [2025-02-21 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526101', 'tblTempUsageDetail_20' ) start [2025-02-21 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526101', 'tblTempUsageDetail_20' ) end [2025-02-21 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:49:27] Production.INFO: ==18938== Releasing lock... [2025-02-21 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:49:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:50:06 [end_date_ymd] => 2025-02-21 15:50:06 [RateCDR] => 1 ) [2025-02-21 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:50:06' and `end` < '2025-02-21 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:50:19] Production.INFO: count ==5179 [2025-02-21 15:50:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:50:06 - End Time 2025-02-21 15:50:06 [2025-02-21 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526107', 'tblTempUsageDetail_20' ) start [2025-02-21 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526107', 'tblTempUsageDetail_20' ) end [2025-02-21 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526107', 'tblTempVendorCDR_20' ) start [2025-02-21 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526107', 'tblTempVendorCDR_20' ) end [2025-02-21 15:50:21] Production.INFO: ProcessCDR(1,14526107,1,1,2) [2025-02-21 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526107', 'tblTempUsageDetail_20' ) start [2025-02-21 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526107', 'tblTempUsageDetail_20' ) end [2025-02-21 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:50:27] Production.INFO: ==19053== Releasing lock... [2025-02-21 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:50:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:51:06 [end_date_ymd] => 2025-02-21 15:51:06 [RateCDR] => 1 ) [2025-02-21 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 12:51:06' and `end` < '2025-02-21 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 15:51:19] Production.INFO: count ==5203 [2025-02-21 15:51:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:51:06 - End Time 2025-02-21 15:51:06 [2025-02-21 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526112', 'tblTempUsageDetail_20' ) start [2025-02-21 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526112', 'tblTempUsageDetail_20' ) end [2025-02-21 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526112', 'tblTempVendorCDR_20' ) start [2025-02-21 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526112', 'tblTempVendorCDR_20' ) end [2025-02-21 15:51:22] Production.INFO: ProcessCDR(1,14526112,1,1,2) [2025-02-21 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526112', 'tblTempUsageDetail_20' ) start [2025-02-21 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526112', 'tblTempUsageDetail_20' ) end [2025-02-21 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:51:27] Production.INFO: ==19133== Releasing lock... [2025-02-21 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:51:27] Production.INFO: 67 MB #Memory Used# [2025-02-21 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:52:05 [end_date_ymd] => 2025-02-21 15:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:52:05' and `end` < '2025-02-21 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-21 15:52:18] Production.INFO: count ==5192 [2025-02-21 15:52:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:52:05 - End Time 2025-02-21 15:52:05 [2025-02-21 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526117', 'tblTempUsageDetail_20' ) start [2025-02-21 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526117', 'tblTempUsageDetail_20' ) end [2025-02-21 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526117', 'tblTempVendorCDR_20' ) start [2025-02-21 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526117', 'tblTempVendorCDR_20' ) end [2025-02-21 15:52:21] Production.INFO: ProcessCDR(1,14526117,1,1,2) [2025-02-21 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526117', 'tblTempUsageDetail_20' ) start [2025-02-21 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526117', 'tblTempUsageDetail_20' ) end [2025-02-21 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:52:26] Production.INFO: ==19209== Releasing lock... [2025-02-21 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:52:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:53:05 [end_date_ymd] => 2025-02-21 15:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:53:05' and `end` < '2025-02-21 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-21 15:53:18] Production.INFO: count ==5190 [2025-02-21 15:53:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:53:05 - End Time 2025-02-21 15:53:05 [2025-02-21 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526122', 'tblTempUsageDetail_20' ) start [2025-02-21 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526122', 'tblTempUsageDetail_20' ) end [2025-02-21 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526122', 'tblTempVendorCDR_20' ) start [2025-02-21 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526122', 'tblTempVendorCDR_20' ) end [2025-02-21 15:53:21] Production.INFO: ProcessCDR(1,14526122,1,1,2) [2025-02-21 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526122', 'tblTempUsageDetail_20' ) start [2025-02-21 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526122', 'tblTempUsageDetail_20' ) end [2025-02-21 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:53:26] Production.INFO: ==19287== Releasing lock... [2025-02-21 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:53:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:54:05 [end_date_ymd] => 2025-02-21 15:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:54:05' and `end` < '2025-02-21 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-21 15:54:18] Production.INFO: count ==5183 [2025-02-21 15:54:20] Production.ERROR: pbx CDR StartTime 2025-02-21 12:54:05 - End Time 2025-02-21 15:54:05 [2025-02-21 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526127', 'tblTempUsageDetail_20' ) start [2025-02-21 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526127', 'tblTempUsageDetail_20' ) end [2025-02-21 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526127', 'tblTempVendorCDR_20' ) start [2025-02-21 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526127', 'tblTempVendorCDR_20' ) end [2025-02-21 15:54:21] Production.INFO: ProcessCDR(1,14526127,1,1,2) [2025-02-21 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526127', 'tblTempUsageDetail_20' ) start [2025-02-21 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526127', 'tblTempUsageDetail_20' ) end [2025-02-21 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:54:26] Production.INFO: ==19366== Releasing lock... [2025-02-21 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:54:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:55:06 [end_date_ymd] => 2025-02-21 15:55:06 [RateCDR] => 1 ) [2025-02-21 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-21 12:55:06' and `end` < '2025-02-21 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-21 15:55:18] Production.INFO: count ==5161 [2025-02-21 15:55:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:55:06 - End Time 2025-02-21 15:55:06 [2025-02-21 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526132', 'tblTempUsageDetail_20' ) start [2025-02-21 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526132', 'tblTempUsageDetail_20' ) end [2025-02-21 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526132', 'tblTempVendorCDR_20' ) start [2025-02-21 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526132', 'tblTempVendorCDR_20' ) end [2025-02-21 15:55:21] Production.INFO: ProcessCDR(1,14526132,1,1,2) [2025-02-21 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526132', 'tblTempUsageDetail_20' ) start [2025-02-21 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526132', 'tblTempUsageDetail_20' ) end [2025-02-21 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:55:26] Production.INFO: ==19446== Releasing lock... [2025-02-21 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:55:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:56:05 [end_date_ymd] => 2025-02-21 15:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:56:05' and `end` < '2025-02-21 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-21 15:56:19] Production.INFO: count ==5152 [2025-02-21 15:56:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:56:05 - End Time 2025-02-21 15:56:05 [2025-02-21 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526137', 'tblTempUsageDetail_20' ) start [2025-02-21 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526137', 'tblTempUsageDetail_20' ) end [2025-02-21 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526137', 'tblTempVendorCDR_20' ) start [2025-02-21 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526137', 'tblTempVendorCDR_20' ) end [2025-02-21 15:56:21] Production.INFO: ProcessCDR(1,14526137,1,1,2) [2025-02-21 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526137', 'tblTempUsageDetail_20' ) start [2025-02-21 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526137', 'tblTempUsageDetail_20' ) end [2025-02-21 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:56:27] Production.INFO: ==19526== Releasing lock... [2025-02-21 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:56:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:57:05 [end_date_ymd] => 2025-02-21 15:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:57:05' and `end` < '2025-02-21 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-21 15:57:18] Production.INFO: count ==5146 [2025-02-21 15:57:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:57:05 - End Time 2025-02-21 15:57:05 [2025-02-21 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526142', 'tblTempUsageDetail_20' ) start [2025-02-21 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526142', 'tblTempUsageDetail_20' ) end [2025-02-21 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526142', 'tblTempVendorCDR_20' ) start [2025-02-21 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526142', 'tblTempVendorCDR_20' ) end [2025-02-21 15:57:21] Production.INFO: ProcessCDR(1,14526142,1,1,2) [2025-02-21 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526142', 'tblTempUsageDetail_20' ) start [2025-02-21 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526142', 'tblTempUsageDetail_20' ) end [2025-02-21 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:57:26] Production.INFO: ==19609== Releasing lock... [2025-02-21 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:57:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:58:05 [end_date_ymd] => 2025-02-21 15:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:58:05' and `end` < '2025-02-21 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-21 15:58:18] Production.INFO: count ==5169 [2025-02-21 15:58:20] Production.ERROR: pbx CDR StartTime 2025-02-21 12:58:05 - End Time 2025-02-21 15:58:05 [2025-02-21 15:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526147', 'tblTempUsageDetail_20' ) start [2025-02-21 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526147', 'tblTempUsageDetail_20' ) end [2025-02-21 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526147', 'tblTempVendorCDR_20' ) start [2025-02-21 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526147', 'tblTempVendorCDR_20' ) end [2025-02-21 15:58:20] Production.INFO: ProcessCDR(1,14526147,1,1,2) [2025-02-21 15:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526147', 'tblTempUsageDetail_20' ) start [2025-02-21 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526147', 'tblTempUsageDetail_20' ) end [2025-02-21 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:58:26] Production.INFO: ==19686== Releasing lock... [2025-02-21 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:58:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 12:59:05 [end_date_ymd] => 2025-02-21 15:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 12:59:05' and `end` < '2025-02-21 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-21 15:59:18] Production.INFO: count ==5189 [2025-02-21 15:59:21] Production.ERROR: pbx CDR StartTime 2025-02-21 12:59:05 - End Time 2025-02-21 15:59:05 [2025-02-21 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526152', 'tblTempUsageDetail_20' ) start [2025-02-21 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526152', 'tblTempUsageDetail_20' ) end [2025-02-21 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526152', 'tblTempVendorCDR_20' ) start [2025-02-21 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526152', 'tblTempVendorCDR_20' ) end [2025-02-21 15:59:21] Production.INFO: ProcessCDR(1,14526152,1,1,2) [2025-02-21 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526152', 'tblTempUsageDetail_20' ) start [2025-02-21 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526152', 'tblTempUsageDetail_20' ) end [2025-02-21 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 15:59:26] Production.INFO: ==19767== Releasing lock... [2025-02-21 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 15:59:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:00:06 [end_date_ymd] => 2025-02-21 16:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 13:00:06' and `end` < '2025-02-21 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-21 16:00:19] Production.INFO: count ==5172 [2025-02-21 16:00:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:00:06 - End Time 2025-02-21 16:00:06 [2025-02-21 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526158', 'tblTempUsageDetail_20' ) start [2025-02-21 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526158', 'tblTempUsageDetail_20' ) end [2025-02-21 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526158', 'tblTempVendorCDR_20' ) start [2025-02-21 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526158', 'tblTempVendorCDR_20' ) end [2025-02-21 16:00:22] Production.INFO: ProcessCDR(1,14526158,1,1,2) [2025-02-21 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526158', 'tblTempUsageDetail_20' ) start [2025-02-21 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526158', 'tblTempUsageDetail_20' ) end [2025-02-21 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:00:27] Production.INFO: ==19849== Releasing lock... [2025-02-21 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:00:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:01:06 [end_date_ymd] => 2025-02-21 16:01:06 [RateCDR] => 1 ) [2025-02-21 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-21 13:01:06' and `end` < '2025-02-21 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-21 16:01:19] Production.INFO: count ==5158 [2025-02-21 16:01:22] Production.ERROR: pbx CDR StartTime 2025-02-21 13:01:06 - End Time 2025-02-21 16:01:06 [2025-02-21 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526163', 'tblTempUsageDetail_20' ) start [2025-02-21 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526163', 'tblTempUsageDetail_20' ) end [2025-02-21 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526163', 'tblTempVendorCDR_20' ) start [2025-02-21 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526163', 'tblTempVendorCDR_20' ) end [2025-02-21 16:01:22] Production.INFO: ProcessCDR(1,14526163,1,1,2) [2025-02-21 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526163', 'tblTempUsageDetail_20' ) start [2025-02-21 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526163', 'tblTempUsageDetail_20' ) end [2025-02-21 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:01:27] Production.INFO: ==19939== Releasing lock... [2025-02-21 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:01:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:02:06 [end_date_ymd] => 2025-02-21 16:02:06 [RateCDR] => 1 ) [2025-02-21 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:02:06' and `end` < '2025-02-21 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:02:19] Production.INFO: count ==5163 [2025-02-21 16:02:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:02:06 - End Time 2025-02-21 16:02:06 [2025-02-21 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526168', 'tblTempUsageDetail_20' ) start [2025-02-21 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526168', 'tblTempUsageDetail_20' ) end [2025-02-21 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526168', 'tblTempVendorCDR_20' ) start [2025-02-21 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526168', 'tblTempVendorCDR_20' ) end [2025-02-21 16:02:21] Production.INFO: ProcessCDR(1,14526168,1,1,2) [2025-02-21 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526168', 'tblTempUsageDetail_20' ) start [2025-02-21 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526168', 'tblTempUsageDetail_20' ) end [2025-02-21 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:02:26] Production.INFO: ==20021== Releasing lock... [2025-02-21 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:02:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-21 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:03:05 [end_date_ymd] => 2025-02-21 16:03:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:03:05' and `end` < '2025-02-21 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-21 16:03:18] Production.INFO: count ==5160 [2025-02-21 16:03:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:03:05 - End Time 2025-02-21 16:03:05 [2025-02-21 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526173', 'tblTempUsageDetail_20' ) start [2025-02-21 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526173', 'tblTempUsageDetail_20' ) end [2025-02-21 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526173', 'tblTempVendorCDR_20' ) start [2025-02-21 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526173', 'tblTempVendorCDR_20' ) end [2025-02-21 16:03:21] Production.INFO: ProcessCDR(1,14526173,1,1,2) [2025-02-21 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526173', 'tblTempUsageDetail_20' ) start [2025-02-21 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526173', 'tblTempUsageDetail_20' ) end [2025-02-21 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:03:27] Production.INFO: ==20098== Releasing lock... [2025-02-21 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:03:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:04:05 [end_date_ymd] => 2025-02-21 16:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:04:05' and `end` < '2025-02-21 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-21 16:04:18] Production.INFO: count ==5147 [2025-02-21 16:04:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:04:05 - End Time 2025-02-21 16:04:05 [2025-02-21 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526178', 'tblTempUsageDetail_20' ) start [2025-02-21 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526178', 'tblTempUsageDetail_20' ) end [2025-02-21 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526178', 'tblTempVendorCDR_20' ) start [2025-02-21 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526178', 'tblTempVendorCDR_20' ) end [2025-02-21 16:04:21] Production.INFO: ProcessCDR(1,14526178,1,1,2) [2025-02-21 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526178', 'tblTempUsageDetail_20' ) start [2025-02-21 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526178', 'tblTempUsageDetail_20' ) end [2025-02-21 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:04:26] Production.INFO: ==20198== Releasing lock... [2025-02-21 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:04:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:05:06 [end_date_ymd] => 2025-02-21 16:05:06 [RateCDR] => 1 ) [2025-02-21 16:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:05:06' and `end` < '2025-02-21 16:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:05:19] Production.INFO: count ==5139 [2025-02-21 16:05:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:05:06 - End Time 2025-02-21 16:05:06 [2025-02-21 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526183', 'tblTempUsageDetail_20' ) start [2025-02-21 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526183', 'tblTempUsageDetail_20' ) end [2025-02-21 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526183', 'tblTempVendorCDR_20' ) start [2025-02-21 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526183', 'tblTempVendorCDR_20' ) end [2025-02-21 16:05:21] Production.INFO: ProcessCDR(1,14526183,1,1,2) [2025-02-21 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526183', 'tblTempUsageDetail_20' ) start [2025-02-21 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526183', 'tblTempUsageDetail_20' ) end [2025-02-21 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:05:27] Production.INFO: ==20318== Releasing lock... [2025-02-21 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:05:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 16:06:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:06:07 [end_date_ymd] => 2025-02-21 16:06:07 [RateCDR] => 1 ) [2025-02-21 16:06: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-21 13:06:07' and `end` < '2025-02-21 16:06: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-21 16:06:20] Production.INFO: count ==5143 [2025-02-21 16:06:22] Production.ERROR: pbx CDR StartTime 2025-02-21 13:06:07 - End Time 2025-02-21 16:06:07 [2025-02-21 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526188', 'tblTempUsageDetail_20' ) start [2025-02-21 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526188', 'tblTempUsageDetail_20' ) end [2025-02-21 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526188', 'tblTempVendorCDR_20' ) start [2025-02-21 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526188', 'tblTempVendorCDR_20' ) end [2025-02-21 16:06:22] Production.INFO: ProcessCDR(1,14526188,1,1,2) [2025-02-21 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526188', 'tblTempUsageDetail_20' ) start [2025-02-21 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526188', 'tblTempUsageDetail_20' ) end [2025-02-21 16:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:06:28] Production.INFO: ==20397== Releasing lock... [2025-02-21 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:06:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:07:06 [end_date_ymd] => 2025-02-21 16:07:06 [RateCDR] => 1 ) [2025-02-21 16:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:07:06' and `end` < '2025-02-21 16:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:07:19] Production.INFO: count ==5152 [2025-02-21 16:07:22] Production.ERROR: pbx CDR StartTime 2025-02-21 13:07:06 - End Time 2025-02-21 16:07:06 [2025-02-21 16:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526193', 'tblTempUsageDetail_20' ) start [2025-02-21 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526193', 'tblTempUsageDetail_20' ) end [2025-02-21 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526193', 'tblTempVendorCDR_20' ) start [2025-02-21 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526193', 'tblTempVendorCDR_20' ) end [2025-02-21 16:07:22] Production.INFO: ProcessCDR(1,14526193,1,1,2) [2025-02-21 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526193', 'tblTempUsageDetail_20' ) start [2025-02-21 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526193', 'tblTempUsageDetail_20' ) end [2025-02-21 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:07:28] Production.INFO: ==20471== Releasing lock... [2025-02-21 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:07:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:08:06 [end_date_ymd] => 2025-02-21 16:08:06 [RateCDR] => 1 ) [2025-02-21 16: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-21 13:08:06' and `end` < '2025-02-21 16: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-21 16:08:18] Production.INFO: count ==5134 [2025-02-21 16:08:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:08:06 - End Time 2025-02-21 16:08:06 [2025-02-21 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526198', 'tblTempUsageDetail_20' ) start [2025-02-21 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526198', 'tblTempUsageDetail_20' ) end [2025-02-21 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526198', 'tblTempVendorCDR_20' ) start [2025-02-21 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526198', 'tblTempVendorCDR_20' ) end [2025-02-21 16:08:21] Production.INFO: ProcessCDR(1,14526198,1,1,2) [2025-02-21 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526198', 'tblTempUsageDetail_20' ) start [2025-02-21 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526198', 'tblTempUsageDetail_20' ) end [2025-02-21 16:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:08:24] Production.INFO: ==20550== Releasing lock... [2025-02-21 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:08:24] Production.INFO: 66.5 MB #Memory Used# [2025-02-21 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:09:05 [end_date_ymd] => 2025-02-21 16:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:09:05' and `end` < '2025-02-21 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-21 16:09:18] Production.INFO: count ==5123 [2025-02-21 16:09:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:09:05 - End Time 2025-02-21 16:09:05 [2025-02-21 16:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526203', 'tblTempUsageDetail_20' ) start [2025-02-21 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526203', 'tblTempUsageDetail_20' ) end [2025-02-21 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526203', 'tblTempVendorCDR_20' ) start [2025-02-21 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526203', 'tblTempVendorCDR_20' ) end [2025-02-21 16:09:20] Production.INFO: ProcessCDR(1,14526203,1,1,2) [2025-02-21 16:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526203', 'tblTempUsageDetail_20' ) start [2025-02-21 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526203', 'tblTempUsageDetail_20' ) end [2025-02-21 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:09:26] Production.INFO: ==20631== Releasing lock... [2025-02-21 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:09:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-21 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:10:06 [end_date_ymd] => 2025-02-21 16:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 13:10:06' and `end` < '2025-02-21 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-21 16:10:20] Production.INFO: count ==5111 [2025-02-21 16:10:24] Production.ERROR: pbx CDR StartTime 2025-02-21 13:10:06 - End Time 2025-02-21 16:10:06 [2025-02-21 16:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526208', 'tblTempUsageDetail_20' ) start [2025-02-21 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526208', 'tblTempUsageDetail_20' ) end [2025-02-21 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526208', 'tblTempVendorCDR_20' ) start [2025-02-21 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526208', 'tblTempVendorCDR_20' ) end [2025-02-21 16:10:24] Production.INFO: ProcessCDR(1,14526208,1,1,2) [2025-02-21 16:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526208', 'tblTempUsageDetail_20' ) start [2025-02-21 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526208', 'tblTempUsageDetail_20' ) end [2025-02-21 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:10:29] Production.INFO: ==20713== Releasing lock... [2025-02-21 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:10:29] Production.INFO: 66.25 MB #Memory Used# [2025-02-21 16:11:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:11:07 [end_date_ymd] => 2025-02-21 16:11:07 [RateCDR] => 1 ) [2025-02-21 16:11:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:11:07' and `end` < '2025-02-21 16:11:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:11:20] Production.INFO: count ==5070 [2025-02-21 16:11:22] Production.ERROR: pbx CDR StartTime 2025-02-21 13:11:07 - End Time 2025-02-21 16:11:07 [2025-02-21 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526214', 'tblTempUsageDetail_20' ) start [2025-02-21 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526214', 'tblTempUsageDetail_20' ) end [2025-02-21 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526214', 'tblTempVendorCDR_20' ) start [2025-02-21 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526214', 'tblTempVendorCDR_20' ) end [2025-02-21 16:11:23] Production.INFO: ProcessCDR(1,14526214,1,1,2) [2025-02-21 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526214', 'tblTempUsageDetail_20' ) start [2025-02-21 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526214', 'tblTempUsageDetail_20' ) end [2025-02-21 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:11:28] Production.INFO: ==20859== Releasing lock... [2025-02-21 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:11:28] Production.INFO: 66 MB #Memory Used# [2025-02-21 16:12:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:12:07 [end_date_ymd] => 2025-02-21 16:12:07 [RateCDR] => 1 ) [2025-02-21 16: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-21 13:12:07' and `end` < '2025-02-21 16: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-21 16:12:20] Production.INFO: count ==5063 [2025-02-21 16:12:27] Production.ERROR: pbx CDR StartTime 2025-02-21 13:12:07 - End Time 2025-02-21 16:12:07 [2025-02-21 16:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526219', 'tblTempUsageDetail_20' ) start [2025-02-21 16:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526219', 'tblTempUsageDetail_20' ) end [2025-02-21 16:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526219', 'tblTempVendorCDR_20' ) start [2025-02-21 16:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526219', 'tblTempVendorCDR_20' ) end [2025-02-21 16:12:27] Production.INFO: ProcessCDR(1,14526219,1,1,2) [2025-02-21 16:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:12:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526219', 'tblTempUsageDetail_20' ) start [2025-02-21 16:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526219', 'tblTempUsageDetail_20' ) end [2025-02-21 16:12:35] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:12:35] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:12:35] Production.INFO: ==20935== Releasing lock... [2025-02-21 16:12:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:12:35] Production.INFO: 66 MB #Memory Used# [2025-02-21 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:13:06 [end_date_ymd] => 2025-02-21 16:13:06 [RateCDR] => 1 ) [2025-02-21 16:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:13:06' and `end` < '2025-02-21 16:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:13:19] Production.INFO: count ==5077 [2025-02-21 16:13:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:13:06 - End Time 2025-02-21 16:13:06 [2025-02-21 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526224', 'tblTempUsageDetail_20' ) start [2025-02-21 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526224', 'tblTempUsageDetail_20' ) end [2025-02-21 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526224', 'tblTempVendorCDR_20' ) start [2025-02-21 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526224', 'tblTempVendorCDR_20' ) end [2025-02-21 16:13:22] Production.INFO: ProcessCDR(1,14526224,1,1,2) [2025-02-21 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526224', 'tblTempUsageDetail_20' ) start [2025-02-21 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526224', 'tblTempUsageDetail_20' ) end [2025-02-21 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:13:27] Production.INFO: ==21011== Releasing lock... [2025-02-21 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:13:27] Production.INFO: 66 MB #Memory Used# [2025-02-21 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:14:05 [end_date_ymd] => 2025-02-21 16:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:14:05' and `end` < '2025-02-21 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-21 16:14:18] Production.INFO: count ==5076 [2025-02-21 16:14:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:14:05 - End Time 2025-02-21 16:14:05 [2025-02-21 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526229', 'tblTempUsageDetail_20' ) start [2025-02-21 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526229', 'tblTempUsageDetail_20' ) end [2025-02-21 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526229', 'tblTempVendorCDR_20' ) start [2025-02-21 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526229', 'tblTempVendorCDR_20' ) end [2025-02-21 16:14:21] Production.INFO: ProcessCDR(1,14526229,1,1,2) [2025-02-21 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526229', 'tblTempUsageDetail_20' ) start [2025-02-21 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526229', 'tblTempUsageDetail_20' ) end [2025-02-21 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:14:26] Production.INFO: ==21089== Releasing lock... [2025-02-21 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:14:26] Production.INFO: 66 MB #Memory Used# [2025-02-21 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:15:06 [end_date_ymd] => 2025-02-21 16:15:06 [RateCDR] => 1 ) [2025-02-21 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:15:06' and `end` < '2025-02-21 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:15:19] Production.INFO: count ==5063 [2025-02-21 16:15:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:15:06 - End Time 2025-02-21 16:15:06 [2025-02-21 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526234', 'tblTempUsageDetail_20' ) start [2025-02-21 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526234', 'tblTempUsageDetail_20' ) end [2025-02-21 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526234', 'tblTempVendorCDR_20' ) start [2025-02-21 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526234', 'tblTempVendorCDR_20' ) end [2025-02-21 16:15:21] Production.INFO: ProcessCDR(1,14526234,1,1,2) [2025-02-21 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526234', 'tblTempUsageDetail_20' ) start [2025-02-21 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526234', 'tblTempUsageDetail_20' ) end [2025-02-21 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:15:27] Production.INFO: ==21179== Releasing lock... [2025-02-21 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:15:27] Production.INFO: 66 MB #Memory Used# [2025-02-21 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:16:05 [end_date_ymd] => 2025-02-21 16:16:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:16:05' and `end` < '2025-02-21 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-21 16:16:19] Production.INFO: count ==5057 [2025-02-21 16:16:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:16:05 - End Time 2025-02-21 16:16:05 [2025-02-21 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526239', 'tblTempUsageDetail_20' ) start [2025-02-21 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526239', 'tblTempUsageDetail_20' ) end [2025-02-21 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526239', 'tblTempVendorCDR_20' ) start [2025-02-21 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526239', 'tblTempVendorCDR_20' ) end [2025-02-21 16:16:21] Production.INFO: ProcessCDR(1,14526239,1,1,2) [2025-02-21 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526239', 'tblTempUsageDetail_20' ) start [2025-02-21 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526239', 'tblTempUsageDetail_20' ) end [2025-02-21 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:16:27] Production.INFO: ==21260== Releasing lock... [2025-02-21 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:16:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:17:06 [end_date_ymd] => 2025-02-21 16:17:06 [RateCDR] => 1 ) [2025-02-21 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:17:06' and `end` < '2025-02-21 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:17:19] Production.INFO: count ==5038 [2025-02-21 16:17:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:17:06 - End Time 2025-02-21 16:17:06 [2025-02-21 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526244', 'tblTempUsageDetail_20' ) start [2025-02-21 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526244', 'tblTempUsageDetail_20' ) end [2025-02-21 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526244', 'tblTempVendorCDR_20' ) start [2025-02-21 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526244', 'tblTempVendorCDR_20' ) end [2025-02-21 16:17:21] Production.INFO: ProcessCDR(1,14526244,1,1,2) [2025-02-21 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526244', 'tblTempUsageDetail_20' ) start [2025-02-21 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526244', 'tblTempUsageDetail_20' ) end [2025-02-21 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:17:26] Production.INFO: ==21342== Releasing lock... [2025-02-21 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:17:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:18:06 [end_date_ymd] => 2025-02-21 16:18:06 [RateCDR] => 1 ) [2025-02-21 16: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-21 13:18:06' and `end` < '2025-02-21 16: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-21 16:18:19] Production.INFO: count ==5034 [2025-02-21 16:18:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:18:06 - End Time 2025-02-21 16:18:06 [2025-02-21 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526249', 'tblTempUsageDetail_20' ) start [2025-02-21 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526249', 'tblTempUsageDetail_20' ) end [2025-02-21 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526249', 'tblTempVendorCDR_20' ) start [2025-02-21 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526249', 'tblTempVendorCDR_20' ) end [2025-02-21 16:18:21] Production.INFO: ProcessCDR(1,14526249,1,1,2) [2025-02-21 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526249', 'tblTempUsageDetail_20' ) start [2025-02-21 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526249', 'tblTempUsageDetail_20' ) end [2025-02-21 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:18:27] Production.INFO: ==21436== Releasing lock... [2025-02-21 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:18:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:19:06 [end_date_ymd] => 2025-02-21 16:19:06 [RateCDR] => 1 ) [2025-02-21 16: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-21 13:19:06' and `end` < '2025-02-21 16: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-21 16:19:19] Production.INFO: count ==5029 [2025-02-21 16:19:22] Production.ERROR: pbx CDR StartTime 2025-02-21 13:19:06 - End Time 2025-02-21 16:19:06 [2025-02-21 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526254', 'tblTempUsageDetail_20' ) start [2025-02-21 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526254', 'tblTempUsageDetail_20' ) end [2025-02-21 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526254', 'tblTempVendorCDR_20' ) start [2025-02-21 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526254', 'tblTempVendorCDR_20' ) end [2025-02-21 16:19:22] Production.INFO: ProcessCDR(1,14526254,1,1,2) [2025-02-21 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526254', 'tblTempUsageDetail_20' ) start [2025-02-21 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526254', 'tblTempUsageDetail_20' ) end [2025-02-21 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:19:27] Production.INFO: ==21518== Releasing lock... [2025-02-21 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:19:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-21 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:20:06 [end_date_ymd] => 2025-02-21 16:20:06 [RateCDR] => 1 ) [2025-02-21 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-21 13:20:06' and `end` < '2025-02-21 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:20:19] Production.INFO: count ==5031 [2025-02-21 16:20:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:20:06 - End Time 2025-02-21 16:20:06 [2025-02-21 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526260', 'tblTempUsageDetail_20' ) start [2025-02-21 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526260', 'tblTempUsageDetail_20' ) end [2025-02-21 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526260', 'tblTempVendorCDR_20' ) start [2025-02-21 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526260', 'tblTempVendorCDR_20' ) end [2025-02-21 16:20:22] Production.INFO: ProcessCDR(1,14526260,1,1,2) [2025-02-21 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526260', 'tblTempUsageDetail_20' ) start [2025-02-21 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526260', 'tblTempUsageDetail_20' ) end [2025-02-21 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:20:27] Production.INFO: ==21595== Releasing lock... [2025-02-21 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:20:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:21:06 [end_date_ymd] => 2025-02-21 16:21:06 [RateCDR] => 1 ) [2025-02-21 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:21:06' and `end` < '2025-02-21 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:21:19] Production.INFO: count ==5032 [2025-02-21 16:21:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:21:06 - End Time 2025-02-21 16:21:06 [2025-02-21 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526265', 'tblTempUsageDetail_20' ) start [2025-02-21 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526265', 'tblTempUsageDetail_20' ) end [2025-02-21 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526265', 'tblTempVendorCDR_20' ) start [2025-02-21 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526265', 'tblTempVendorCDR_20' ) end [2025-02-21 16:21:21] Production.INFO: ProcessCDR(1,14526265,1,1,2) [2025-02-21 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526265', 'tblTempUsageDetail_20' ) start [2025-02-21 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526265', 'tblTempUsageDetail_20' ) end [2025-02-21 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:21:27] Production.INFO: ==21714== Releasing lock... [2025-02-21 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:21:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:22:06 [end_date_ymd] => 2025-02-21 16:22:06 [RateCDR] => 1 ) [2025-02-21 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:22:06' and `end` < '2025-02-21 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:22:19] Production.INFO: count ==5043 [2025-02-21 16:22:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:22:06 - End Time 2025-02-21 16:22:06 [2025-02-21 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526270', 'tblTempUsageDetail_20' ) start [2025-02-21 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526270', 'tblTempUsageDetail_20' ) end [2025-02-21 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526270', 'tblTempVendorCDR_20' ) start [2025-02-21 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526270', 'tblTempVendorCDR_20' ) end [2025-02-21 16:22:21] Production.INFO: ProcessCDR(1,14526270,1,1,2) [2025-02-21 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526270', 'tblTempUsageDetail_20' ) start [2025-02-21 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526270', 'tblTempUsageDetail_20' ) end [2025-02-21 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:22:27] Production.INFO: ==21789== Releasing lock... [2025-02-21 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:22:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:23:06 [end_date_ymd] => 2025-02-21 16:23:06 [RateCDR] => 1 ) [2025-02-21 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-21 13:23:06' and `end` < '2025-02-21 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-21 16:23:19] Production.INFO: count ==5032 [2025-02-21 16:23:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:23:06 - End Time 2025-02-21 16:23:06 [2025-02-21 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526275', 'tblTempUsageDetail_20' ) start [2025-02-21 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526275', 'tblTempUsageDetail_20' ) end [2025-02-21 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526275', 'tblTempVendorCDR_20' ) start [2025-02-21 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526275', 'tblTempVendorCDR_20' ) end [2025-02-21 16:23:21] Production.INFO: ProcessCDR(1,14526275,1,1,2) [2025-02-21 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526275', 'tblTempUsageDetail_20' ) start [2025-02-21 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526275', 'tblTempUsageDetail_20' ) end [2025-02-21 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:23:26] Production.INFO: ==21872== Releasing lock... [2025-02-21 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:23:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:24:06 [end_date_ymd] => 2025-02-21 16:24:06 [RateCDR] => 1 ) [2025-02-21 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:24:06' and `end` < '2025-02-21 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:24:19] Production.INFO: count ==5023 [2025-02-21 16:24:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:24:06 - End Time 2025-02-21 16:24:06 [2025-02-21 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526280', 'tblTempUsageDetail_20' ) start [2025-02-21 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526280', 'tblTempUsageDetail_20' ) end [2025-02-21 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526280', 'tblTempVendorCDR_20' ) start [2025-02-21 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526280', 'tblTempVendorCDR_20' ) end [2025-02-21 16:24:21] Production.INFO: ProcessCDR(1,14526280,1,1,2) [2025-02-21 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526280', 'tblTempUsageDetail_20' ) start [2025-02-21 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526280', 'tblTempUsageDetail_20' ) end [2025-02-21 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:24:26] Production.INFO: ==21958== Releasing lock... [2025-02-21 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:24:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-21 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:25:05 [end_date_ymd] => 2025-02-21 16:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:25:05' and `end` < '2025-02-21 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-21 16:25:18] Production.INFO: count ==5012 [2025-02-21 16:25:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:25:05 - End Time 2025-02-21 16:25:05 [2025-02-21 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526285', 'tblTempUsageDetail_20' ) start [2025-02-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526285', 'tblTempUsageDetail_20' ) end [2025-02-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526285', 'tblTempVendorCDR_20' ) start [2025-02-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526285', 'tblTempVendorCDR_20' ) end [2025-02-21 16:25:21] Production.INFO: ProcessCDR(1,14526285,1,1,2) [2025-02-21 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526285', 'tblTempUsageDetail_20' ) start [2025-02-21 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526285', 'tblTempUsageDetail_20' ) end [2025-02-21 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:25:26] Production.INFO: ==22035== Releasing lock... [2025-02-21 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:25:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-21 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:26:05 [end_date_ymd] => 2025-02-21 16:26:05 [RateCDR] => 1 ) [2025-02-21 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:26:05' and `end` < '2025-02-21 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:26:18] Production.INFO: count ==4997 [2025-02-21 16:26:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:26:05 - End Time 2025-02-21 16:26:05 [2025-02-21 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526290', 'tblTempUsageDetail_20' ) start [2025-02-21 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526290', 'tblTempUsageDetail_20' ) end [2025-02-21 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526290', 'tblTempVendorCDR_20' ) start [2025-02-21 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526290', 'tblTempVendorCDR_20' ) end [2025-02-21 16:26:21] Production.INFO: ProcessCDR(1,14526290,1,1,2) [2025-02-21 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526290', 'tblTempUsageDetail_20' ) start [2025-02-21 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526290', 'tblTempUsageDetail_20' ) end [2025-02-21 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:26:26] Production.INFO: ==22121== Releasing lock... [2025-02-21 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:26:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-21 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:27:06 [end_date_ymd] => 2025-02-21 16:27:06 [RateCDR] => 1 ) [2025-02-21 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:27:06' and `end` < '2025-02-21 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:27:19] Production.INFO: count ==4985 [2025-02-21 16:27:22] Production.ERROR: pbx CDR StartTime 2025-02-21 13:27:06 - End Time 2025-02-21 16:27:06 [2025-02-21 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526295', 'tblTempUsageDetail_20' ) start [2025-02-21 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526295', 'tblTempUsageDetail_20' ) end [2025-02-21 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526295', 'tblTempVendorCDR_20' ) start [2025-02-21 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526295', 'tblTempVendorCDR_20' ) end [2025-02-21 16:27:22] Production.INFO: ProcessCDR(1,14526295,1,1,2) [2025-02-21 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526295', 'tblTempUsageDetail_20' ) start [2025-02-21 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526295', 'tblTempUsageDetail_20' ) end [2025-02-21 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:27:27] Production.INFO: ==22203== Releasing lock... [2025-02-21 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:27:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:28:06 [end_date_ymd] => 2025-02-21 16:28:06 [RateCDR] => 1 ) [2025-02-21 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:28:06' and `end` < '2025-02-21 16: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-21 16:28:18] Production.INFO: count ==4962 [2025-02-21 16:28:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:28:06 - End Time 2025-02-21 16:28:06 [2025-02-21 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526300', 'tblTempUsageDetail_20' ) start [2025-02-21 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526300', 'tblTempUsageDetail_20' ) end [2025-02-21 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526300', 'tblTempVendorCDR_20' ) start [2025-02-21 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526300', 'tblTempVendorCDR_20' ) end [2025-02-21 16:28:21] Production.INFO: ProcessCDR(1,14526300,1,1,2) [2025-02-21 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526300', 'tblTempUsageDetail_20' ) start [2025-02-21 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526300', 'tblTempUsageDetail_20' ) end [2025-02-21 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:28:26] Production.INFO: ==22284== Releasing lock... [2025-02-21 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:28:26] Production.INFO: 65 MB #Memory Used# [2025-02-21 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:29:05 [end_date_ymd] => 2025-02-21 16:29:05 [RateCDR] => 1 ) [2025-02-21 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:29:05' and `end` < '2025-02-21 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:29:18] Production.INFO: count ==4964 [2025-02-21 16:29:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:29:05 - End Time 2025-02-21 16:29:05 [2025-02-21 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526305', 'tblTempUsageDetail_20' ) start [2025-02-21 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526305', 'tblTempUsageDetail_20' ) end [2025-02-21 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526305', 'tblTempVendorCDR_20' ) start [2025-02-21 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526305', 'tblTempVendorCDR_20' ) end [2025-02-21 16:29:21] Production.INFO: ProcessCDR(1,14526305,1,1,2) [2025-02-21 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526305', 'tblTempUsageDetail_20' ) start [2025-02-21 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526305', 'tblTempUsageDetail_20' ) end [2025-02-21 16:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:29:25] Production.INFO: ==22361== Releasing lock... [2025-02-21 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:29:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:30:06 [end_date_ymd] => 2025-02-21 16:30:06 [RateCDR] => 1 ) [2025-02-21 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:30:06' and `end` < '2025-02-21 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:30:19] Production.INFO: count ==5000 [2025-02-21 16:30:22] Production.ERROR: pbx CDR StartTime 2025-02-21 13:30:06 - End Time 2025-02-21 16:30:06 [2025-02-21 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526311', 'tblTempUsageDetail_20' ) start [2025-02-21 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526311', 'tblTempUsageDetail_20' ) end [2025-02-21 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526311', 'tblTempVendorCDR_20' ) start [2025-02-21 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526311', 'tblTempVendorCDR_20' ) end [2025-02-21 16:30:22] Production.INFO: ProcessCDR(1,14526311,1,1,2) [2025-02-21 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526311', 'tblTempUsageDetail_20' ) start [2025-02-21 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526311', 'tblTempUsageDetail_20' ) end [2025-02-21 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:30:27] Production.INFO: ==22450== Releasing lock... [2025-02-21 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:30:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-21 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:31:05 [end_date_ymd] => 2025-02-21 16:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:31:05' and `end` < '2025-02-21 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-21 16:31:18] Production.INFO: count ==4978 [2025-02-21 16:31:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:31:05 - End Time 2025-02-21 16:31:05 [2025-02-21 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526316', 'tblTempUsageDetail_20' ) start [2025-02-21 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526316', 'tblTempUsageDetail_20' ) end [2025-02-21 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526316', 'tblTempVendorCDR_20' ) start [2025-02-21 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526316', 'tblTempVendorCDR_20' ) end [2025-02-21 16:31:20] Production.INFO: ProcessCDR(1,14526316,1,1,2) [2025-02-21 16:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526316', 'tblTempUsageDetail_20' ) start [2025-02-21 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526316', 'tblTempUsageDetail_20' ) end [2025-02-21 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:31:26] Production.INFO: ==22537== Releasing lock... [2025-02-21 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:31:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:32:06 [end_date_ymd] => 2025-02-21 16:32:06 [RateCDR] => 1 ) [2025-02-21 16:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:32:06' and `end` < '2025-02-21 16:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:32:19] Production.INFO: count ==4980 [2025-02-21 16:32:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:32:06 - End Time 2025-02-21 16:32:06 [2025-02-21 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526321', 'tblTempUsageDetail_20' ) start [2025-02-21 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526321', 'tblTempUsageDetail_20' ) end [2025-02-21 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526321', 'tblTempVendorCDR_20' ) start [2025-02-21 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526321', 'tblTempVendorCDR_20' ) end [2025-02-21 16:32:21] Production.INFO: ProcessCDR(1,14526321,1,1,2) [2025-02-21 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526321', 'tblTempUsageDetail_20' ) start [2025-02-21 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526321', 'tblTempUsageDetail_20' ) end [2025-02-21 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:32:27] Production.INFO: ==22619== Releasing lock... [2025-02-21 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:32:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:33:05 [end_date_ymd] => 2025-02-21 16:33:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:33:05' and `end` < '2025-02-21 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-21 16:33:18] Production.INFO: count ==4978 [2025-02-21 16:33:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:33:05 - End Time 2025-02-21 16:33:05 [2025-02-21 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526326', 'tblTempUsageDetail_20' ) start [2025-02-21 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526326', 'tblTempUsageDetail_20' ) end [2025-02-21 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526326', 'tblTempVendorCDR_20' ) start [2025-02-21 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526326', 'tblTempVendorCDR_20' ) end [2025-02-21 16:33:21] Production.INFO: ProcessCDR(1,14526326,1,1,2) [2025-02-21 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526326', 'tblTempUsageDetail_20' ) start [2025-02-21 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526326', 'tblTempUsageDetail_20' ) end [2025-02-21 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:33:26] Production.INFO: ==22701== Releasing lock... [2025-02-21 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:33:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:34:06 [end_date_ymd] => 2025-02-21 16:34:06 [RateCDR] => 1 ) [2025-02-21 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-21 13:34:06' and `end` < '2025-02-21 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-21 16:34:19] Production.INFO: count ==4982 [2025-02-21 16:34:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:34:06 - End Time 2025-02-21 16:34:06 [2025-02-21 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526331', 'tblTempUsageDetail_20' ) start [2025-02-21 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526331', 'tblTempUsageDetail_20' ) end [2025-02-21 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526331', 'tblTempVendorCDR_20' ) start [2025-02-21 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526331', 'tblTempVendorCDR_20' ) end [2025-02-21 16:34:21] Production.INFO: ProcessCDR(1,14526331,1,1,2) [2025-02-21 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526331', 'tblTempUsageDetail_20' ) start [2025-02-21 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526331', 'tblTempUsageDetail_20' ) end [2025-02-21 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:34:26] Production.INFO: ==22782== Releasing lock... [2025-02-21 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:34:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:35:05 [end_date_ymd] => 2025-02-21 16:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:35:05' and `end` < '2025-02-21 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-21 16:35:18] Production.INFO: count ==4978 [2025-02-21 16:35:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:35:05 - End Time 2025-02-21 16:35:05 [2025-02-21 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526336', 'tblTempUsageDetail_20' ) start [2025-02-21 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526336', 'tblTempUsageDetail_20' ) end [2025-02-21 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526336', 'tblTempVendorCDR_20' ) start [2025-02-21 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526336', 'tblTempVendorCDR_20' ) end [2025-02-21 16:35:21] Production.INFO: ProcessCDR(1,14526336,1,1,2) [2025-02-21 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526336', 'tblTempUsageDetail_20' ) start [2025-02-21 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526336', 'tblTempUsageDetail_20' ) end [2025-02-21 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:35:26] Production.INFO: ==22858== Releasing lock... [2025-02-21 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:35:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:36:06 [end_date_ymd] => 2025-02-21 16:36:06 [RateCDR] => 1 ) [2025-02-21 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:36:06' and `end` < '2025-02-21 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:36:19] Production.INFO: count ==4956 [2025-02-21 16:36:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:36:06 - End Time 2025-02-21 16:36:06 [2025-02-21 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526341', 'tblTempUsageDetail_20' ) start [2025-02-21 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526341', 'tblTempUsageDetail_20' ) end [2025-02-21 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526341', 'tblTempVendorCDR_20' ) start [2025-02-21 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526341', 'tblTempVendorCDR_20' ) end [2025-02-21 16:36:21] Production.INFO: ProcessCDR(1,14526341,1,1,2) [2025-02-21 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526341', 'tblTempUsageDetail_20' ) start [2025-02-21 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526341', 'tblTempUsageDetail_20' ) end [2025-02-21 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:36:27] Production.INFO: ==22975== Releasing lock... [2025-02-21 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:36:27] Production.INFO: 65 MB #Memory Used# [2025-02-21 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:37:05 [end_date_ymd] => 2025-02-21 16:37:05 [RateCDR] => 1 ) [2025-02-21 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:37:05' and `end` < '2025-02-21 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:37:18] Production.INFO: count ==4977 [2025-02-21 16:37:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:37:05 - End Time 2025-02-21 16:37:05 [2025-02-21 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526346', 'tblTempUsageDetail_20' ) start [2025-02-21 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526346', 'tblTempUsageDetail_20' ) end [2025-02-21 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526346', 'tblTempVendorCDR_20' ) start [2025-02-21 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526346', 'tblTempVendorCDR_20' ) end [2025-02-21 16:37:21] Production.INFO: ProcessCDR(1,14526346,1,1,2) [2025-02-21 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526346', 'tblTempUsageDetail_20' ) start [2025-02-21 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526346', 'tblTempUsageDetail_20' ) end [2025-02-21 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:37:27] Production.INFO: ==23052== Releasing lock... [2025-02-21 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:37:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:38:06 [end_date_ymd] => 2025-02-21 16:38:06 [RateCDR] => 1 ) [2025-02-21 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:38:06' and `end` < '2025-02-21 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:38:19] Production.INFO: count ==4995 [2025-02-21 16:38:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:38:06 - End Time 2025-02-21 16:38:06 [2025-02-21 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526351', 'tblTempUsageDetail_20' ) start [2025-02-21 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526351', 'tblTempUsageDetail_20' ) end [2025-02-21 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526351', 'tblTempVendorCDR_20' ) start [2025-02-21 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526351', 'tblTempVendorCDR_20' ) end [2025-02-21 16:38:21] Production.INFO: ProcessCDR(1,14526351,1,1,2) [2025-02-21 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526351', 'tblTempUsageDetail_20' ) start [2025-02-21 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526351', 'tblTempUsageDetail_20' ) end [2025-02-21 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:38:26] Production.INFO: ==23129== Releasing lock... [2025-02-21 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:38:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:39:05 [end_date_ymd] => 2025-02-21 16:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:39:05' and `end` < '2025-02-21 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-21 16:39:18] Production.INFO: count ==5005 [2025-02-21 16:39:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:39:05 - End Time 2025-02-21 16:39:05 [2025-02-21 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526356', 'tblTempUsageDetail_20' ) start [2025-02-21 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526356', 'tblTempUsageDetail_20' ) end [2025-02-21 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526356', 'tblTempVendorCDR_20' ) start [2025-02-21 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526356', 'tblTempVendorCDR_20' ) end [2025-02-21 16:39:21] Production.INFO: ProcessCDR(1,14526356,1,1,2) [2025-02-21 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526356', 'tblTempUsageDetail_20' ) start [2025-02-21 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526356', 'tblTempUsageDetail_20' ) end [2025-02-21 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:39:27] Production.INFO: ==23207== Releasing lock... [2025-02-21 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:39:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-21 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:40:06 [end_date_ymd] => 2025-02-21 16:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 13:40:06' and `end` < '2025-02-21 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-21 16:40:19] Production.INFO: count ==4999 [2025-02-21 16:40:22] Production.ERROR: pbx CDR StartTime 2025-02-21 13:40:06 - End Time 2025-02-21 16:40:06 [2025-02-21 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526362', 'tblTempUsageDetail_20' ) start [2025-02-21 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526362', 'tblTempUsageDetail_20' ) end [2025-02-21 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526362', 'tblTempVendorCDR_20' ) start [2025-02-21 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526362', 'tblTempVendorCDR_20' ) end [2025-02-21 16:40:22] Production.INFO: ProcessCDR(1,14526362,1,1,2) [2025-02-21 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526362', 'tblTempUsageDetail_20' ) start [2025-02-21 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526362', 'tblTempUsageDetail_20' ) end [2025-02-21 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:40:27] Production.INFO: ==23287== Releasing lock... [2025-02-21 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:40:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-21 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:41:05 [end_date_ymd] => 2025-02-21 16:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:41:05' and `end` < '2025-02-21 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-21 16:41:18] Production.INFO: count ==5065 [2025-02-21 16:41:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:41:05 - End Time 2025-02-21 16:41:05 [2025-02-21 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526367', 'tblTempUsageDetail_20' ) start [2025-02-21 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526367', 'tblTempUsageDetail_20' ) end [2025-02-21 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526367', 'tblTempVendorCDR_20' ) start [2025-02-21 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526367', 'tblTempVendorCDR_20' ) end [2025-02-21 16:41:20] Production.INFO: ProcessCDR(1,14526367,1,1,2) [2025-02-21 16:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526367', 'tblTempUsageDetail_20' ) start [2025-02-21 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526367', 'tblTempUsageDetail_20' ) end [2025-02-21 16:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:41:26] Production.INFO: ==23366== Releasing lock... [2025-02-21 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:41:26] Production.INFO: 66 MB #Memory Used# [2025-02-21 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:42:06 [end_date_ymd] => 2025-02-21 16:42:06 [RateCDR] => 1 ) [2025-02-21 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:42:06' and `end` < '2025-02-21 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:42:19] Production.INFO: count ==5066 [2025-02-21 16:42:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:42:06 - End Time 2025-02-21 16:42:06 [2025-02-21 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526372', 'tblTempUsageDetail_20' ) start [2025-02-21 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526372', 'tblTempUsageDetail_20' ) end [2025-02-21 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526372', 'tblTempVendorCDR_20' ) start [2025-02-21 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526372', 'tblTempVendorCDR_20' ) end [2025-02-21 16:42:21] Production.INFO: ProcessCDR(1,14526372,1,1,2) [2025-02-21 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526372', 'tblTempUsageDetail_20' ) start [2025-02-21 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526372', 'tblTempUsageDetail_20' ) end [2025-02-21 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:42:27] Production.INFO: ==23441== Releasing lock... [2025-02-21 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:42:27] Production.INFO: 66 MB #Memory Used# [2025-02-21 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:43:05 [end_date_ymd] => 2025-02-21 16:43:05 [RateCDR] => 1 ) [2025-02-21 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:43:05' and `end` < '2025-02-21 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:43:18] Production.INFO: count ==5049 [2025-02-21 16:43:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:43:05 - End Time 2025-02-21 16:43:05 [2025-02-21 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526377', 'tblTempUsageDetail_20' ) start [2025-02-21 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526377', 'tblTempUsageDetail_20' ) end [2025-02-21 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526377', 'tblTempVendorCDR_20' ) start [2025-02-21 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526377', 'tblTempVendorCDR_20' ) end [2025-02-21 16:43:20] Production.INFO: ProcessCDR(1,14526377,1,1,2) [2025-02-21 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526377', 'tblTempUsageDetail_20' ) start [2025-02-21 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526377', 'tblTempUsageDetail_20' ) end [2025-02-21 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:43:26] Production.INFO: ==23520== Releasing lock... [2025-02-21 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:43:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:44:05 [end_date_ymd] => 2025-02-21 16:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:44:05' and `end` < '2025-02-21 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-21 16:44:18] Production.INFO: count ==5049 [2025-02-21 16:44:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:44:05 - End Time 2025-02-21 16:44:05 [2025-02-21 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526382', 'tblTempUsageDetail_20' ) start [2025-02-21 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526382', 'tblTempUsageDetail_20' ) end [2025-02-21 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526382', 'tblTempVendorCDR_20' ) start [2025-02-21 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526382', 'tblTempVendorCDR_20' ) end [2025-02-21 16:44:21] Production.INFO: ProcessCDR(1,14526382,1,1,2) [2025-02-21 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526382', 'tblTempUsageDetail_20' ) start [2025-02-21 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526382', 'tblTempUsageDetail_20' ) end [2025-02-21 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:44:26] Production.INFO: ==23597== Releasing lock... [2025-02-21 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:44:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-21 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:45:05 [end_date_ymd] => 2025-02-21 16:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:45:05' and `end` < '2025-02-21 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-21 16:45:18] Production.INFO: count ==5017 [2025-02-21 16:45:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:45:05 - End Time 2025-02-21 16:45:05 [2025-02-21 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526387', 'tblTempUsageDetail_20' ) start [2025-02-21 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526387', 'tblTempUsageDetail_20' ) end [2025-02-21 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526387', 'tblTempVendorCDR_20' ) start [2025-02-21 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526387', 'tblTempVendorCDR_20' ) end [2025-02-21 16:45:20] Production.INFO: ProcessCDR(1,14526387,1,1,2) [2025-02-21 16:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526387', 'tblTempUsageDetail_20' ) start [2025-02-21 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526387', 'tblTempUsageDetail_20' ) end [2025-02-21 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:45:26] Production.INFO: ==23680== Releasing lock... [2025-02-21 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:45:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-21 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:46:06 [end_date_ymd] => 2025-02-21 16:46:06 [RateCDR] => 1 ) [2025-02-21 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:46:06' and `end` < '2025-02-21 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:46:19] Production.INFO: count ==4972 [2025-02-21 16:46:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:46:06 - End Time 2025-02-21 16:46:06 [2025-02-21 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526392', 'tblTempUsageDetail_20' ) start [2025-02-21 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526392', 'tblTempUsageDetail_20' ) end [2025-02-21 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526392', 'tblTempVendorCDR_20' ) start [2025-02-21 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526392', 'tblTempVendorCDR_20' ) end [2025-02-21 16:46:21] Production.INFO: ProcessCDR(1,14526392,1,1,2) [2025-02-21 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526392', 'tblTempUsageDetail_20' ) start [2025-02-21 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526392', 'tblTempUsageDetail_20' ) end [2025-02-21 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:46:27] Production.INFO: ==23755== Releasing lock... [2025-02-21 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:46:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:47:05 [end_date_ymd] => 2025-02-21 16:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:47:05' and `end` < '2025-02-21 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-21 16:47:18] Production.INFO: count ==4958 [2025-02-21 16:47:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:47:05 - End Time 2025-02-21 16:47:05 [2025-02-21 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526397', 'tblTempUsageDetail_20' ) start [2025-02-21 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526397', 'tblTempUsageDetail_20' ) end [2025-02-21 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526397', 'tblTempVendorCDR_20' ) start [2025-02-21 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526397', 'tblTempVendorCDR_20' ) end [2025-02-21 16:47:21] Production.INFO: ProcessCDR(1,14526397,1,1,2) [2025-02-21 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526397', 'tblTempUsageDetail_20' ) start [2025-02-21 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526397', 'tblTempUsageDetail_20' ) end [2025-02-21 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:47:26] Production.INFO: ==23831== Releasing lock... [2025-02-21 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:47:26] Production.INFO: 65 MB #Memory Used# [2025-02-21 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:48:05 [end_date_ymd] => 2025-02-21 16:48:05 [RateCDR] => 1 ) [2025-02-21 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:48:05' and `end` < '2025-02-21 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:48:18] Production.INFO: count ==4968 [2025-02-21 16:48:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:48:05 - End Time 2025-02-21 16:48:05 [2025-02-21 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526402', 'tblTempUsageDetail_20' ) start [2025-02-21 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526402', 'tblTempUsageDetail_20' ) end [2025-02-21 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526402', 'tblTempVendorCDR_20' ) start [2025-02-21 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526402', 'tblTempVendorCDR_20' ) end [2025-02-21 16:48:21] Production.INFO: ProcessCDR(1,14526402,1,1,2) [2025-02-21 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526402', 'tblTempUsageDetail_20' ) start [2025-02-21 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526402', 'tblTempUsageDetail_20' ) end [2025-02-21 16:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:48:26] Production.INFO: ==23908== Releasing lock... [2025-02-21 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:48:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:49:05 [end_date_ymd] => 2025-02-21 16:49:05 [RateCDR] => 1 ) [2025-02-21 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:49:05' and `end` < '2025-02-21 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:49:18] Production.INFO: count ==4962 [2025-02-21 16:49:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:49:05 - End Time 2025-02-21 16:49:05 [2025-02-21 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526407', 'tblTempUsageDetail_20' ) start [2025-02-21 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526407', 'tblTempUsageDetail_20' ) end [2025-02-21 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526407', 'tblTempVendorCDR_20' ) start [2025-02-21 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526407', 'tblTempVendorCDR_20' ) end [2025-02-21 16:49:21] Production.INFO: ProcessCDR(1,14526407,1,1,2) [2025-02-21 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526407', 'tblTempUsageDetail_20' ) start [2025-02-21 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526407', 'tblTempUsageDetail_20' ) end [2025-02-21 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:49:26] Production.INFO: ==23985== Releasing lock... [2025-02-21 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:49:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-21 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:50:06 [end_date_ymd] => 2025-02-21 16:50:06 [RateCDR] => 1 ) [2025-02-21 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-21 13:50:06' and `end` < '2025-02-21 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-21 16:50:19] Production.INFO: count ==4953 [2025-02-21 16:50:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:50:06 - End Time 2025-02-21 16:50:06 [2025-02-21 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526412', 'tblTempUsageDetail_20' ) start [2025-02-21 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526412', 'tblTempUsageDetail_20' ) end [2025-02-21 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526412', 'tblTempVendorCDR_20' ) start [2025-02-21 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526412', 'tblTempVendorCDR_20' ) end [2025-02-21 16:50:21] Production.INFO: ProcessCDR(1,14526412,1,1,2) [2025-02-21 16:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526412', 'tblTempUsageDetail_20' ) start [2025-02-21 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526412', 'tblTempUsageDetail_20' ) end [2025-02-21 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:50:27] Production.INFO: ==24062== Releasing lock... [2025-02-21 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:50:27] Production.INFO: 65 MB #Memory Used# [2025-02-21 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:51:06 [end_date_ymd] => 2025-02-21 16:51:06 [RateCDR] => 1 ) [2025-02-21 16: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-21 13:51:06' and `end` < '2025-02-21 16: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-21 16:51:19] Production.INFO: count ==4927 [2025-02-21 16:51:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:51:06 - End Time 2025-02-21 16:51:06 [2025-02-21 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526418', 'tblTempUsageDetail_20' ) start [2025-02-21 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526418', 'tblTempUsageDetail_20' ) end [2025-02-21 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526418', 'tblTempVendorCDR_20' ) start [2025-02-21 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526418', 'tblTempVendorCDR_20' ) end [2025-02-21 16:51:21] Production.INFO: ProcessCDR(1,14526418,1,1,2) [2025-02-21 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526418', 'tblTempUsageDetail_20' ) start [2025-02-21 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526418', 'tblTempUsageDetail_20' ) end [2025-02-21 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:51:27] Production.INFO: ==24140== Releasing lock... [2025-02-21 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:51:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-21 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:52:05 [end_date_ymd] => 2025-02-21 16:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:52:05' and `end` < '2025-02-21 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-21 16:52:19] Production.INFO: count ==4915 [2025-02-21 16:52:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:52:05 - End Time 2025-02-21 16:52:05 [2025-02-21 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526423', 'tblTempUsageDetail_20' ) start [2025-02-21 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526423', 'tblTempUsageDetail_20' ) end [2025-02-21 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526423', 'tblTempVendorCDR_20' ) start [2025-02-21 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526423', 'tblTempVendorCDR_20' ) end [2025-02-21 16:52:21] Production.INFO: ProcessCDR(1,14526423,1,1,2) [2025-02-21 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526423', 'tblTempUsageDetail_20' ) start [2025-02-21 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526423', 'tblTempUsageDetail_20' ) end [2025-02-21 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:52:27] Production.INFO: ==24257== Releasing lock... [2025-02-21 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:52:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-21 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:53:06 [end_date_ymd] => 2025-02-21 16:53:06 [RateCDR] => 1 ) [2025-02-21 16:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:53:06' and `end` < '2025-02-21 16:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:53:19] Production.INFO: count ==4917 [2025-02-21 16:53:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:53:06 - End Time 2025-02-21 16:53:06 [2025-02-21 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526428', 'tblTempUsageDetail_20' ) start [2025-02-21 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526428', 'tblTempUsageDetail_20' ) end [2025-02-21 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526428', 'tblTempVendorCDR_20' ) start [2025-02-21 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526428', 'tblTempVendorCDR_20' ) end [2025-02-21 16:53:21] Production.INFO: ProcessCDR(1,14526428,1,1,2) [2025-02-21 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526428', 'tblTempUsageDetail_20' ) start [2025-02-21 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526428', 'tblTempUsageDetail_20' ) end [2025-02-21 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:53:27] Production.INFO: ==24334== Releasing lock... [2025-02-21 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:53:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-21 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:54:05 [end_date_ymd] => 2025-02-21 16:54:05 [RateCDR] => 1 ) [2025-02-21 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:54:05' and `end` < '2025-02-21 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:54:18] Production.INFO: count ==4911 [2025-02-21 16:54:20] Production.ERROR: pbx CDR StartTime 2025-02-21 13:54:05 - End Time 2025-02-21 16:54:05 [2025-02-21 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526433', 'tblTempUsageDetail_20' ) start [2025-02-21 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526433', 'tblTempUsageDetail_20' ) end [2025-02-21 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526433', 'tblTempVendorCDR_20' ) start [2025-02-21 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526433', 'tblTempVendorCDR_20' ) end [2025-02-21 16:54:20] Production.INFO: ProcessCDR(1,14526433,1,1,2) [2025-02-21 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526433', 'tblTempUsageDetail_20' ) start [2025-02-21 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526433', 'tblTempUsageDetail_20' ) end [2025-02-21 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:54:26] Production.INFO: ==24412== Releasing lock... [2025-02-21 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:54:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-21 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:55:06 [end_date_ymd] => 2025-02-21 16:55:06 [RateCDR] => 1 ) [2025-02-21 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:55:06' and `end` < '2025-02-21 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:55:19] Production.INFO: count ==4892 [2025-02-21 16:55:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:55:06 - End Time 2025-02-21 16:55:06 [2025-02-21 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526438', 'tblTempUsageDetail_20' ) start [2025-02-21 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526438', 'tblTempUsageDetail_20' ) end [2025-02-21 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526438', 'tblTempVendorCDR_20' ) start [2025-02-21 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526438', 'tblTempVendorCDR_20' ) end [2025-02-21 16:55:21] Production.INFO: ProcessCDR(1,14526438,1,1,2) [2025-02-21 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526438', 'tblTempUsageDetail_20' ) start [2025-02-21 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526438', 'tblTempUsageDetail_20' ) end [2025-02-21 16:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:55:25] Production.INFO: ==24488== Releasing lock... [2025-02-21 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:55:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-21 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:56:06 [end_date_ymd] => 2025-02-21 16:56:06 [RateCDR] => 1 ) [2025-02-21 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:56:06' and `end` < '2025-02-21 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:56:19] Production.INFO: count ==4876 [2025-02-21 16:56:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:56:06 - End Time 2025-02-21 16:56:06 [2025-02-21 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526443', 'tblTempUsageDetail_20' ) start [2025-02-21 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526443', 'tblTempUsageDetail_20' ) end [2025-02-21 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526443', 'tblTempVendorCDR_20' ) start [2025-02-21 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526443', 'tblTempVendorCDR_20' ) end [2025-02-21 16:56:21] Production.INFO: ProcessCDR(1,14526443,1,1,2) [2025-02-21 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526443', 'tblTempUsageDetail_20' ) start [2025-02-21 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526443', 'tblTempUsageDetail_20' ) end [2025-02-21 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:56:27] Production.INFO: ==24561== Releasing lock... [2025-02-21 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:56:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-21 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:57:06 [end_date_ymd] => 2025-02-21 16:57:06 [RateCDR] => 1 ) [2025-02-21 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-21 13:57:06' and `end` < '2025-02-21 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-21 16:57:19] Production.INFO: count ==4894 [2025-02-21 16:57:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:57:06 - End Time 2025-02-21 16:57:06 [2025-02-21 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526448', 'tblTempUsageDetail_20' ) start [2025-02-21 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526448', 'tblTempUsageDetail_20' ) end [2025-02-21 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526448', 'tblTempVendorCDR_20' ) start [2025-02-21 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526448', 'tblTempVendorCDR_20' ) end [2025-02-21 16:57:22] Production.INFO: ProcessCDR(1,14526448,1,1,2) [2025-02-21 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526448', 'tblTempUsageDetail_20' ) start [2025-02-21 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526448', 'tblTempUsageDetail_20' ) end [2025-02-21 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:57:27] Production.INFO: ==24638== Releasing lock... [2025-02-21 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:57:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-21 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:58:05 [end_date_ymd] => 2025-02-21 16:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 13:58:05' and `end` < '2025-02-21 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-21 16:58:18] Production.INFO: count ==4889 [2025-02-21 16:58:21] Production.ERROR: pbx CDR StartTime 2025-02-21 13:58:05 - End Time 2025-02-21 16:58:05 [2025-02-21 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526453', 'tblTempUsageDetail_20' ) start [2025-02-21 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526453', 'tblTempUsageDetail_20' ) end [2025-02-21 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526453', 'tblTempVendorCDR_20' ) start [2025-02-21 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526453', 'tblTempVendorCDR_20' ) end [2025-02-21 16:58:21] Production.INFO: ProcessCDR(1,14526453,1,1,2) [2025-02-21 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526453', 'tblTempUsageDetail_20' ) start [2025-02-21 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526453', 'tblTempUsageDetail_20' ) end [2025-02-21 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:58:27] Production.INFO: ==24714== Releasing lock... [2025-02-21 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:58:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-21 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 13:59:06 [end_date_ymd] => 2025-02-21 16:59:06 [RateCDR] => 1 ) [2025-02-21 16:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 13:59:06' and `end` < '2025-02-21 16:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 16:59:19] Production.INFO: count ==4888 [2025-02-21 16:59:22] Production.ERROR: pbx CDR StartTime 2025-02-21 13:59:06 - End Time 2025-02-21 16:59:06 [2025-02-21 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526458', 'tblTempUsageDetail_20' ) start [2025-02-21 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526458', 'tblTempUsageDetail_20' ) end [2025-02-21 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526458', 'tblTempVendorCDR_20' ) start [2025-02-21 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526458', 'tblTempVendorCDR_20' ) end [2025-02-21 16:59:22] Production.INFO: ProcessCDR(1,14526458,1,1,2) [2025-02-21 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526458', 'tblTempUsageDetail_20' ) start [2025-02-21 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526458', 'tblTempUsageDetail_20' ) end [2025-02-21 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 16:59:27] Production.INFO: ==24793== Releasing lock... [2025-02-21 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 16:59:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-21 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:00:06 [end_date_ymd] => 2025-02-21 17:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 14:00:06' and `end` < '2025-02-21 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-21 17:00:20] Production.INFO: count ==4883 [2025-02-21 17:00:22] Production.ERROR: pbx CDR StartTime 2025-02-21 14:00:06 - End Time 2025-02-21 17:00:06 [2025-02-21 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526463', 'tblTempUsageDetail_20' ) start [2025-02-21 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526463', 'tblTempUsageDetail_20' ) end [2025-02-21 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526463', 'tblTempVendorCDR_20' ) start [2025-02-21 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526463', 'tblTempVendorCDR_20' ) end [2025-02-21 17:00:22] Production.INFO: ProcessCDR(1,14526463,1,1,2) [2025-02-21 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526463', 'tblTempUsageDetail_20' ) start [2025-02-21 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526463', 'tblTempUsageDetail_20' ) end [2025-02-21 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:00:28] Production.INFO: ==24873== Releasing lock... [2025-02-21 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:00:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-21 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:01:05 [end_date_ymd] => 2025-02-21 17:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:01:05' and `end` < '2025-02-21 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-21 17:01:18] Production.INFO: count ==4897 [2025-02-21 17:01:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:01:05 - End Time 2025-02-21 17:01:05 [2025-02-21 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526469', 'tblTempUsageDetail_20' ) start [2025-02-21 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526469', 'tblTempUsageDetail_20' ) end [2025-02-21 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526469', 'tblTempVendorCDR_20' ) start [2025-02-21 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526469', 'tblTempVendorCDR_20' ) end [2025-02-21 17:01:20] Production.INFO: ProcessCDR(1,14526469,1,1,2) [2025-02-21 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526469', 'tblTempUsageDetail_20' ) start [2025-02-21 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526469', 'tblTempUsageDetail_20' ) end [2025-02-21 17:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:01:26] Production.INFO: ==24964== Releasing lock... [2025-02-21 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:01:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-21 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:02:05 [end_date_ymd] => 2025-02-21 17:02:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:02:05' and `end` < '2025-02-21 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-21 17:02:18] Production.INFO: count ==4871 [2025-02-21 17:02:21] Production.ERROR: pbx CDR StartTime 2025-02-21 14:02:05 - End Time 2025-02-21 17:02:05 [2025-02-21 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526474', 'tblTempUsageDetail_20' ) start [2025-02-21 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526474', 'tblTempUsageDetail_20' ) end [2025-02-21 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526474', 'tblTempVendorCDR_20' ) start [2025-02-21 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526474', 'tblTempVendorCDR_20' ) end [2025-02-21 17:02:21] Production.INFO: ProcessCDR(1,14526474,1,1,2) [2025-02-21 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526474', 'tblTempUsageDetail_20' ) start [2025-02-21 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526474', 'tblTempUsageDetail_20' ) end [2025-02-21 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:02:27] Production.INFO: ==25049== Releasing lock... [2025-02-21 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:02:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-21 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:03:05 [end_date_ymd] => 2025-02-21 17:03:05 [RateCDR] => 1 ) [2025-02-21 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:03:05' and `end` < '2025-02-21 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:03:18] Production.INFO: count ==4858 [2025-02-21 17:03:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:03:05 - End Time 2025-02-21 17:03:05 [2025-02-21 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526479', 'tblTempUsageDetail_20' ) start [2025-02-21 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526479', 'tblTempUsageDetail_20' ) end [2025-02-21 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526479', 'tblTempVendorCDR_20' ) start [2025-02-21 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526479', 'tblTempVendorCDR_20' ) end [2025-02-21 17:03:21] Production.INFO: ProcessCDR(1,14526479,1,1,2) [2025-02-21 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526479', 'tblTempUsageDetail_20' ) start [2025-02-21 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526479', 'tblTempUsageDetail_20' ) end [2025-02-21 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:03:26] Production.INFO: ==25126== Releasing lock... [2025-02-21 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:03:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-21 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:04:06 [end_date_ymd] => 2025-02-21 17:04:06 [RateCDR] => 1 ) [2025-02-21 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-21 14:04:06' and `end` < '2025-02-21 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-21 17:04:18] Production.INFO: count ==4857 [2025-02-21 17:04:21] Production.ERROR: pbx CDR StartTime 2025-02-21 14:04:06 - End Time 2025-02-21 17:04:06 [2025-02-21 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526484', 'tblTempUsageDetail_20' ) start [2025-02-21 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526484', 'tblTempUsageDetail_20' ) end [2025-02-21 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526484', 'tblTempVendorCDR_20' ) start [2025-02-21 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526484', 'tblTempVendorCDR_20' ) end [2025-02-21 17:04:21] Production.INFO: ProcessCDR(1,14526484,1,1,2) [2025-02-21 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526484', 'tblTempUsageDetail_20' ) start [2025-02-21 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526484', 'tblTempUsageDetail_20' ) end [2025-02-21 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:04:26] Production.INFO: ==25203== Releasing lock... [2025-02-21 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:04:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-21 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:05:05 [end_date_ymd] => 2025-02-21 17:05:05 [RateCDR] => 1 ) [2025-02-21 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:05:05' and `end` < '2025-02-21 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:05:18] Production.INFO: count ==4857 [2025-02-21 17:05:21] Production.ERROR: pbx CDR StartTime 2025-02-21 14:05:05 - End Time 2025-02-21 17:05:05 [2025-02-21 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526489', 'tblTempUsageDetail_20' ) start [2025-02-21 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526489', 'tblTempUsageDetail_20' ) end [2025-02-21 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526489', 'tblTempVendorCDR_20' ) start [2025-02-21 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526489', 'tblTempVendorCDR_20' ) end [2025-02-21 17:05:21] Production.INFO: ProcessCDR(1,14526489,1,1,2) [2025-02-21 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526489', 'tblTempUsageDetail_20' ) start [2025-02-21 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526489', 'tblTempUsageDetail_20' ) end [2025-02-21 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:05:26] Production.INFO: ==25275== Releasing lock... [2025-02-21 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:05:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-21 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:06:06 [end_date_ymd] => 2025-02-21 17:06:06 [RateCDR] => 1 ) [2025-02-21 17:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:06:06' and `end` < '2025-02-21 17:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:06:19] Production.INFO: count ==4853 [2025-02-21 17:06:21] Production.ERROR: pbx CDR StartTime 2025-02-21 14:06:06 - End Time 2025-02-21 17:06:06 [2025-02-21 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526494', 'tblTempUsageDetail_20' ) start [2025-02-21 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526494', 'tblTempUsageDetail_20' ) end [2025-02-21 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526494', 'tblTempVendorCDR_20' ) start [2025-02-21 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526494', 'tblTempVendorCDR_20' ) end [2025-02-21 17:06:21] Production.INFO: ProcessCDR(1,14526494,1,1,2) [2025-02-21 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526494', 'tblTempUsageDetail_20' ) start [2025-02-21 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526494', 'tblTempUsageDetail_20' ) end [2025-02-21 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:06:25] Production.INFO: ==25353== Releasing lock... [2025-02-21 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:06:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-21 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:07:05 [end_date_ymd] => 2025-02-21 17:07:05 [RateCDR] => 1 ) [2025-02-21 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:07:05' and `end` < '2025-02-21 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:07:18] Production.INFO: count ==4839 [2025-02-21 17:07:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:07:05 - End Time 2025-02-21 17:07:05 [2025-02-21 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526499', 'tblTempUsageDetail_20' ) start [2025-02-21 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526499', 'tblTempUsageDetail_20' ) end [2025-02-21 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526499', 'tblTempVendorCDR_20' ) start [2025-02-21 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526499', 'tblTempVendorCDR_20' ) end [2025-02-21 17:07:21] Production.INFO: ProcessCDR(1,14526499,1,1,2) [2025-02-21 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526499', 'tblTempUsageDetail_20' ) start [2025-02-21 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526499', 'tblTempUsageDetail_20' ) end [2025-02-21 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:07:26] Production.INFO: ==25469== Releasing lock... [2025-02-21 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:07:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-21 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:08:06 [end_date_ymd] => 2025-02-21 17:08:06 [RateCDR] => 1 ) [2025-02-21 17:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:08:06' and `end` < '2025-02-21 17: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-21 17:08:18] Production.INFO: count ==4843 [2025-02-21 17:08:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:08:06 - End Time 2025-02-21 17:08:06 [2025-02-21 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526504', 'tblTempUsageDetail_20' ) start [2025-02-21 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526504', 'tblTempUsageDetail_20' ) end [2025-02-21 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526504', 'tblTempVendorCDR_20' ) start [2025-02-21 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526504', 'tblTempVendorCDR_20' ) end [2025-02-21 17:08:21] Production.INFO: ProcessCDR(1,14526504,1,1,2) [2025-02-21 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526504', 'tblTempUsageDetail_20' ) start [2025-02-21 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526504', 'tblTempUsageDetail_20' ) end [2025-02-21 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:08:26] Production.INFO: ==25547== Releasing lock... [2025-02-21 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:08:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-21 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:09:05 [end_date_ymd] => 2025-02-21 17:09:05 [RateCDR] => 1 ) [2025-02-21 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:09:05' and `end` < '2025-02-21 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-21 17:09:18] Production.INFO: count ==4839 [2025-02-21 17:09:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:09:05 - End Time 2025-02-21 17:09:05 [2025-02-21 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526509', 'tblTempUsageDetail_20' ) start [2025-02-21 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526509', 'tblTempUsageDetail_20' ) end [2025-02-21 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526509', 'tblTempVendorCDR_20' ) start [2025-02-21 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526509', 'tblTempVendorCDR_20' ) end [2025-02-21 17:09:20] Production.INFO: ProcessCDR(1,14526509,1,1,2) [2025-02-21 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526509', 'tblTempUsageDetail_20' ) start [2025-02-21 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526509', 'tblTempUsageDetail_20' ) end [2025-02-21 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:09:25] Production.INFO: ==25621== Releasing lock... [2025-02-21 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:09:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-21 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:10:06 [end_date_ymd] => 2025-02-21 17:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 14:10:06' and `end` < '2025-02-21 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-21 17:10:19] Production.INFO: count ==4840 [2025-02-21 17:10:22] Production.ERROR: pbx CDR StartTime 2025-02-21 14:10:06 - End Time 2025-02-21 17:10:06 [2025-02-21 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526515', 'tblTempUsageDetail_20' ) start [2025-02-21 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526515', 'tblTempUsageDetail_20' ) end [2025-02-21 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526515', 'tblTempVendorCDR_20' ) start [2025-02-21 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526515', 'tblTempVendorCDR_20' ) end [2025-02-21 17:10:22] Production.INFO: ProcessCDR(1,14526515,1,1,2) [2025-02-21 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526515', 'tblTempUsageDetail_20' ) start [2025-02-21 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526515', 'tblTempUsageDetail_20' ) end [2025-02-21 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:10:27] Production.INFO: ==25699== Releasing lock... [2025-02-21 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:10:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-21 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:11:05 [end_date_ymd] => 2025-02-21 17:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:11:05' and `end` < '2025-02-21 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-21 17:11:18] Production.INFO: count ==4821 [2025-02-21 17:11:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:11:05 - End Time 2025-02-21 17:11:05 [2025-02-21 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526520', 'tblTempUsageDetail_20' ) start [2025-02-21 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526520', 'tblTempUsageDetail_20' ) end [2025-02-21 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526520', 'tblTempVendorCDR_20' ) start [2025-02-21 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526520', 'tblTempVendorCDR_20' ) end [2025-02-21 17:11:20] Production.INFO: ProcessCDR(1,14526520,1,1,2) [2025-02-21 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526520', 'tblTempUsageDetail_20' ) start [2025-02-21 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526520', 'tblTempUsageDetail_20' ) end [2025-02-21 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:11:25] Production.INFO: ==25776== Releasing lock... [2025-02-21 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:11:25] Production.INFO: 64 MB #Memory Used# [2025-02-21 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:12:05 [end_date_ymd] => 2025-02-21 17:12:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:12:05' and `end` < '2025-02-21 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-21 17:12:18] Production.INFO: count ==4809 [2025-02-21 17:12:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:12:05 - End Time 2025-02-21 17:12:05 [2025-02-21 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526525', 'tblTempUsageDetail_20' ) start [2025-02-21 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526525', 'tblTempUsageDetail_20' ) end [2025-02-21 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526525', 'tblTempVendorCDR_20' ) start [2025-02-21 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526525', 'tblTempVendorCDR_20' ) end [2025-02-21 17:12:20] Production.INFO: ProcessCDR(1,14526525,1,1,2) [2025-02-21 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526525', 'tblTempUsageDetail_20' ) start [2025-02-21 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526525', 'tblTempUsageDetail_20' ) end [2025-02-21 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:12:24] Production.INFO: ==25852== Releasing lock... [2025-02-21 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:12:24] Production.INFO: 64 MB #Memory Used# [2025-02-21 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:13:05 [end_date_ymd] => 2025-02-21 17:13:05 [RateCDR] => 1 ) [2025-02-21 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:13:05' and `end` < '2025-02-21 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:13:18] Production.INFO: count ==4787 [2025-02-21 17:13:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:13:05 - End Time 2025-02-21 17:13:05 [2025-02-21 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526530', 'tblTempUsageDetail_20' ) start [2025-02-21 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526530', 'tblTempUsageDetail_20' ) end [2025-02-21 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526530', 'tblTempVendorCDR_20' ) start [2025-02-21 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526530', 'tblTempVendorCDR_20' ) end [2025-02-21 17:13:20] Production.INFO: ProcessCDR(1,14526530,1,1,2) [2025-02-21 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526530', 'tblTempUsageDetail_20' ) start [2025-02-21 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526530', 'tblTempUsageDetail_20' ) end [2025-02-21 17:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:13:24] Production.INFO: ==25930== Releasing lock... [2025-02-21 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:13:24] Production.INFO: 63.75 MB #Memory Used# [2025-02-21 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:14:06 [end_date_ymd] => 2025-02-21 17:14:06 [RateCDR] => 1 ) [2025-02-21 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:14:06' and `end` < '2025-02-21 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:14:19] Production.INFO: count ==4697 [2025-02-21 17:14:21] Production.ERROR: pbx CDR StartTime 2025-02-21 14:14:06 - End Time 2025-02-21 17:14:06 [2025-02-21 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526535', 'tblTempUsageDetail_20' ) start [2025-02-21 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526535', 'tblTempUsageDetail_20' ) end [2025-02-21 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526535', 'tblTempVendorCDR_20' ) start [2025-02-21 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526535', 'tblTempVendorCDR_20' ) end [2025-02-21 17:14:21] Production.INFO: ProcessCDR(1,14526535,1,1,2) [2025-02-21 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526535', 'tblTempUsageDetail_20' ) start [2025-02-21 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526535', 'tblTempUsageDetail_20' ) end [2025-02-21 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:14:25] Production.INFO: ==26003== Releasing lock... [2025-02-21 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:14:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-21 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:15:05 [end_date_ymd] => 2025-02-21 17:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:15:05' and `end` < '2025-02-21 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-21 17:15:18] Production.INFO: count ==4638 [2025-02-21 17:15:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:15:05 - End Time 2025-02-21 17:15:05 [2025-02-21 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526540', 'tblTempUsageDetail_20' ) start [2025-02-21 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526540', 'tblTempUsageDetail_20' ) end [2025-02-21 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526540', 'tblTempVendorCDR_20' ) start [2025-02-21 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526540', 'tblTempVendorCDR_20' ) end [2025-02-21 17:15:20] Production.INFO: ProcessCDR(1,14526540,1,1,2) [2025-02-21 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526540', 'tblTempUsageDetail_20' ) start [2025-02-21 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526540', 'tblTempUsageDetail_20' ) end [2025-02-21 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:15:25] Production.INFO: ==26074== Releasing lock... [2025-02-21 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:15:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-21 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:16:06 [end_date_ymd] => 2025-02-21 17:16:06 [RateCDR] => 1 ) [2025-02-21 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:16:06' and `end` < '2025-02-21 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:16:18] Production.INFO: count ==4573 [2025-02-21 17:16:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:16:06 - End Time 2025-02-21 17:16:06 [2025-02-21 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526545', 'tblTempUsageDetail_20' ) start [2025-02-21 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526545', 'tblTempUsageDetail_20' ) end [2025-02-21 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526545', 'tblTempVendorCDR_20' ) start [2025-02-21 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526545', 'tblTempVendorCDR_20' ) end [2025-02-21 17:16:21] Production.INFO: ProcessCDR(1,14526545,1,1,2) [2025-02-21 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526545', 'tblTempUsageDetail_20' ) start [2025-02-21 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526545', 'tblTempUsageDetail_20' ) end [2025-02-21 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:16:26] Production.INFO: ==26150== Releasing lock... [2025-02-21 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:16:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-21 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:17:05 [end_date_ymd] => 2025-02-21 17:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:17:05' and `end` < '2025-02-21 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-21 17:17:18] Production.INFO: count ==4489 [2025-02-21 17:17:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:17:05 - End Time 2025-02-21 17:17:05 [2025-02-21 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526550', 'tblTempUsageDetail_20' ) start [2025-02-21 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526550', 'tblTempUsageDetail_20' ) end [2025-02-21 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526550', 'tblTempVendorCDR_20' ) start [2025-02-21 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526550', 'tblTempVendorCDR_20' ) end [2025-02-21 17:17:20] Production.INFO: ProcessCDR(1,14526550,1,1,2) [2025-02-21 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526550', 'tblTempUsageDetail_20' ) start [2025-02-21 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526550', 'tblTempUsageDetail_20' ) end [2025-02-21 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:17:24] Production.INFO: ==26224== Releasing lock... [2025-02-21 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:17:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-21 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:18:05 [end_date_ymd] => 2025-02-21 17:18:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:18:05' and `end` < '2025-02-21 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-21 17:18:18] Production.INFO: count ==4481 [2025-02-21 17:18:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:18:05 - End Time 2025-02-21 17:18:05 [2025-02-21 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526555', 'tblTempUsageDetail_20' ) start [2025-02-21 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526555', 'tblTempUsageDetail_20' ) end [2025-02-21 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526555', 'tblTempVendorCDR_20' ) start [2025-02-21 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526555', 'tblTempVendorCDR_20' ) end [2025-02-21 17:18:20] Production.INFO: ProcessCDR(1,14526555,1,1,2) [2025-02-21 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526555', 'tblTempUsageDetail_20' ) start [2025-02-21 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526555', 'tblTempUsageDetail_20' ) end [2025-02-21 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:18:24] Production.INFO: ==26297== Releasing lock... [2025-02-21 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:18:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-21 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:19:05 [end_date_ymd] => 2025-02-21 17:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:19:05' and `end` < '2025-02-21 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-21 17:19:18] Production.INFO: count ==4475 [2025-02-21 17:19:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:19:05 - End Time 2025-02-21 17:19:05 [2025-02-21 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526560', 'tblTempUsageDetail_20' ) start [2025-02-21 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526560', 'tblTempUsageDetail_20' ) end [2025-02-21 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526560', 'tblTempVendorCDR_20' ) start [2025-02-21 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526560', 'tblTempVendorCDR_20' ) end [2025-02-21 17:19:20] Production.INFO: ProcessCDR(1,14526560,1,1,2) [2025-02-21 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526560', 'tblTempUsageDetail_20' ) start [2025-02-21 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526560', 'tblTempUsageDetail_20' ) end [2025-02-21 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:19:26] Production.INFO: ==26369== Releasing lock... [2025-02-21 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:19:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-21 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:20:06 [end_date_ymd] => 2025-02-21 17:20:06 [RateCDR] => 1 ) [2025-02-21 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-21 14:20:06' and `end` < '2025-02-21 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-21 17:20:19] Production.INFO: count ==4478 [2025-02-21 17:20:21] Production.ERROR: pbx CDR StartTime 2025-02-21 14:20:06 - End Time 2025-02-21 17:20:06 [2025-02-21 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526566', 'tblTempUsageDetail_20' ) start [2025-02-21 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526566', 'tblTempUsageDetail_20' ) end [2025-02-21 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526566', 'tblTempVendorCDR_20' ) start [2025-02-21 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526566', 'tblTempVendorCDR_20' ) end [2025-02-21 17:20:21] Production.INFO: ProcessCDR(1,14526566,1,1,2) [2025-02-21 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526566', 'tblTempUsageDetail_20' ) start [2025-02-21 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526566', 'tblTempUsageDetail_20' ) end [2025-02-21 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:20:26] Production.INFO: ==26443== Releasing lock... [2025-02-21 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:20:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-21 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:21:05 [end_date_ymd] => 2025-02-21 17:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:21:05' and `end` < '2025-02-21 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-21 17:21:18] Production.INFO: count ==4432 [2025-02-21 17:21:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:21:05 - End Time 2025-02-21 17:21:05 [2025-02-21 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526571', 'tblTempUsageDetail_20' ) start [2025-02-21 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526571', 'tblTempUsageDetail_20' ) end [2025-02-21 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526571', 'tblTempVendorCDR_20' ) start [2025-02-21 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526571', 'tblTempVendorCDR_20' ) end [2025-02-21 17:21:20] Production.INFO: ProcessCDR(1,14526571,1,1,2) [2025-02-21 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526571', 'tblTempUsageDetail_20' ) start [2025-02-21 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526571', 'tblTempUsageDetail_20' ) end [2025-02-21 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:21:25] Production.INFO: ==26518== Releasing lock... [2025-02-21 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:21:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-21 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:22:06 [end_date_ymd] => 2025-02-21 17:22:06 [RateCDR] => 1 ) [2025-02-21 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:22:06' and `end` < '2025-02-21 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:22:19] Production.INFO: count ==4407 [2025-02-21 17:22:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:22:06 - End Time 2025-02-21 17:22:06 [2025-02-21 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526576', 'tblTempUsageDetail_20' ) start [2025-02-21 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526576', 'tblTempUsageDetail_20' ) end [2025-02-21 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526576', 'tblTempVendorCDR_20' ) start [2025-02-21 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526576', 'tblTempVendorCDR_20' ) end [2025-02-21 17:22:21] Production.INFO: ProcessCDR(1,14526576,1,1,2) [2025-02-21 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526576', 'tblTempUsageDetail_20' ) start [2025-02-21 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526576', 'tblTempUsageDetail_20' ) end [2025-02-21 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:22:26] Production.INFO: ==26596== Releasing lock... [2025-02-21 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:22:26] Production.INFO: 61 MB #Memory Used# [2025-02-21 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:23:05 [end_date_ymd] => 2025-02-21 17:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:23:05' and `end` < '2025-02-21 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-21 17:23:18] Production.INFO: count ==4385 [2025-02-21 17:23:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:23:05 - End Time 2025-02-21 17:23:05 [2025-02-21 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526581', 'tblTempUsageDetail_20' ) start [2025-02-21 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526581', 'tblTempUsageDetail_20' ) end [2025-02-21 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526581', 'tblTempVendorCDR_20' ) start [2025-02-21 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526581', 'tblTempVendorCDR_20' ) end [2025-02-21 17:23:20] Production.INFO: ProcessCDR(1,14526581,1,1,2) [2025-02-21 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526581', 'tblTempUsageDetail_20' ) start [2025-02-21 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526581', 'tblTempUsageDetail_20' ) end [2025-02-21 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:23:25] Production.INFO: ==26711== Releasing lock... [2025-02-21 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:23:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:24:06 [end_date_ymd] => 2025-02-21 17:24:06 [RateCDR] => 1 ) [2025-02-21 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:24:06' and `end` < '2025-02-21 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:24:18] Production.INFO: count ==4378 [2025-02-21 17:24:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:24:06 - End Time 2025-02-21 17:24:06 [2025-02-21 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526586', 'tblTempUsageDetail_20' ) start [2025-02-21 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526586', 'tblTempUsageDetail_20' ) end [2025-02-21 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526586', 'tblTempVendorCDR_20' ) start [2025-02-21 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526586', 'tblTempVendorCDR_20' ) end [2025-02-21 17:24:20] Production.INFO: ProcessCDR(1,14526586,1,1,2) [2025-02-21 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526586', 'tblTempUsageDetail_20' ) start [2025-02-21 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526586', 'tblTempUsageDetail_20' ) end [2025-02-21 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:24:26] Production.INFO: ==26782== Releasing lock... [2025-02-21 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:24:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:25:06 [end_date_ymd] => 2025-02-21 17:25:06 [RateCDR] => 1 ) [2025-02-21 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:25:06' and `end` < '2025-02-21 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:25:18] Production.INFO: count ==4376 [2025-02-21 17:25:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:25:06 - End Time 2025-02-21 17:25:06 [2025-02-21 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526591', 'tblTempUsageDetail_20' ) start [2025-02-21 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526591', 'tblTempUsageDetail_20' ) end [2025-02-21 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526591', 'tblTempVendorCDR_20' ) start [2025-02-21 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526591', 'tblTempVendorCDR_20' ) end [2025-02-21 17:25:20] Production.INFO: ProcessCDR(1,14526591,1,1,2) [2025-02-21 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526591', 'tblTempUsageDetail_20' ) start [2025-02-21 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526591', 'tblTempUsageDetail_20' ) end [2025-02-21 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:25:24] Production.INFO: ==26854== Releasing lock... [2025-02-21 17:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:25:24] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 17:26:16] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:26:16 [end_date_ymd] => 2025-02-21 17:26:16 [RateCDR] => 1 ) [2025-02-21 17:26: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-21 14:26:16' and `end` < '2025-02-21 17:26: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-21 17:26:29] Production.INFO: count ==4388 [2025-02-21 17:27:23] Production.ERROR: pbx CDR StartTime 2025-02-21 14:26:16 - End Time 2025-02-21 17:26:16 [2025-02-21 17:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526596', 'tblTempUsageDetail_20' ) start [2025-02-21 17:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526596', 'tblTempUsageDetail_20' ) end [2025-02-21 17:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526596', 'tblTempVendorCDR_20' ) start [2025-02-21 17:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526596', 'tblTempVendorCDR_20' ) end [2025-02-21 17:27:30] Production.INFO: ProcessCDR(1,14526596,1,1,2) [2025-02-21 17:27:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:27:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:27:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:28:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:28:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526596', 'tblTempUsageDetail_20' ) start [2025-02-21 17:28:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526596', 'tblTempUsageDetail_20' ) end [2025-02-21 17:28:12] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:28:12] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:28:16] Production.INFO: ==26937== Releasing lock... [2025-02-21 17:28:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:28:16] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 17:29:13] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:29:13 [end_date_ymd] => 2025-02-21 17:29:13 [RateCDR] => 1 ) [2025-02-21 17:29:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:29:13' and `end` < '2025-02-21 17:29:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:29:26] Production.INFO: count ==4377 [2025-02-21 17:30:09] Production.ERROR: pbx CDR StartTime 2025-02-21 14:29:13 - End Time 2025-02-21 17:29:13 [2025-02-21 17:30:09] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:30:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526607', 'tblTempUsageDetail_20' ) start [2025-02-21 17:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526607', 'tblTempUsageDetail_20' ) end [2025-02-21 17:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526607', 'tblTempVendorCDR_20' ) start [2025-02-21 17:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526607', 'tblTempVendorCDR_20' ) end [2025-02-21 17:30:28] Production.INFO: ProcessCDR(1,14526607,1,1,2) [2025-02-21 17:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:30:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:30:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:31:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:31:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526607', 'tblTempUsageDetail_20' ) start [2025-02-21 17:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526607', 'tblTempUsageDetail_20' ) end [2025-02-21 17:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:31:21] Production.INFO: ==27140== Releasing lock... [2025-02-21 17:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:31:21] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:32:05 [end_date_ymd] => 2025-02-21 17:32:05 [RateCDR] => 1 ) [2025-02-21 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:32:05' and `end` < '2025-02-21 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:32:17] Production.INFO: count ==4355 [2025-02-21 17:32:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:32:05 - End Time 2025-02-21 17:32:05 [2025-02-21 17:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526620', 'tblTempUsageDetail_20' ) start [2025-02-21 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526620', 'tblTempUsageDetail_20' ) end [2025-02-21 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526620', 'tblTempVendorCDR_20' ) start [2025-02-21 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526620', 'tblTempVendorCDR_20' ) end [2025-02-21 17:32:20] Production.INFO: ProcessCDR(1,14526620,1,1,2) [2025-02-21 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526620', 'tblTempUsageDetail_20' ) start [2025-02-21 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526620', 'tblTempUsageDetail_20' ) end [2025-02-21 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:32:25] Production.INFO: ==27353== Releasing lock... [2025-02-21 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:32:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:33:06 [end_date_ymd] => 2025-02-21 17:33:06 [RateCDR] => 1 ) [2025-02-21 17: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-21 14:33:06' and `end` < '2025-02-21 17: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-21 17:33:18] Production.INFO: count ==4364 [2025-02-21 17:33:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:33:06 - End Time 2025-02-21 17:33:06 [2025-02-21 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526625', 'tblTempUsageDetail_20' ) start [2025-02-21 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526625', 'tblTempUsageDetail_20' ) end [2025-02-21 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526625', 'tblTempVendorCDR_20' ) start [2025-02-21 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526625', 'tblTempVendorCDR_20' ) end [2025-02-21 17:33:20] Production.INFO: ProcessCDR(1,14526625,1,1,2) [2025-02-21 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526625', 'tblTempUsageDetail_20' ) start [2025-02-21 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526625', 'tblTempUsageDetail_20' ) end [2025-02-21 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:33:26] Production.INFO: ==27426== Releasing lock... [2025-02-21 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:33:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-21 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:34:06 [end_date_ymd] => 2025-02-21 17:34:06 [RateCDR] => 1 ) [2025-02-21 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:34:06' and `end` < '2025-02-21 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:34:18] Production.INFO: count ==4357 [2025-02-21 17:34:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:34:06 - End Time 2025-02-21 17:34:06 [2025-02-21 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526630', 'tblTempUsageDetail_20' ) start [2025-02-21 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526630', 'tblTempUsageDetail_20' ) end [2025-02-21 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526630', 'tblTempVendorCDR_20' ) start [2025-02-21 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526630', 'tblTempVendorCDR_20' ) end [2025-02-21 17:34:20] Production.INFO: ProcessCDR(1,14526630,1,1,2) [2025-02-21 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526630', 'tblTempUsageDetail_20' ) start [2025-02-21 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526630', 'tblTempUsageDetail_20' ) end [2025-02-21 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:34:26] Production.INFO: ==27496== Releasing lock... [2025-02-21 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:34:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:35:05 [end_date_ymd] => 2025-02-21 17:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:35:05' and `end` < '2025-02-21 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-21 17:35:18] Production.INFO: count ==4348 [2025-02-21 17:35:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:35:05 - End Time 2025-02-21 17:35:05 [2025-02-21 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526635', 'tblTempUsageDetail_20' ) start [2025-02-21 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526635', 'tblTempUsageDetail_20' ) end [2025-02-21 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526635', 'tblTempVendorCDR_20' ) start [2025-02-21 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526635', 'tblTempVendorCDR_20' ) end [2025-02-21 17:35:20] Production.INFO: ProcessCDR(1,14526635,1,1,2) [2025-02-21 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526635', 'tblTempUsageDetail_20' ) start [2025-02-21 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526635', 'tblTempUsageDetail_20' ) end [2025-02-21 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:35:25] Production.INFO: ==27573== Releasing lock... [2025-02-21 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:35:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:36:05 [end_date_ymd] => 2025-02-21 17:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:36:05' and `end` < '2025-02-21 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-21 17:36:17] Production.INFO: count ==4345 [2025-02-21 17:36:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:36:05 - End Time 2025-02-21 17:36:05 [2025-02-21 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526640', 'tblTempUsageDetail_20' ) start [2025-02-21 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526640', 'tblTempUsageDetail_20' ) end [2025-02-21 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526640', 'tblTempVendorCDR_20' ) start [2025-02-21 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526640', 'tblTempVendorCDR_20' ) end [2025-02-21 17:36:19] Production.INFO: ProcessCDR(1,14526640,1,1,2) [2025-02-21 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526640', 'tblTempUsageDetail_20' ) start [2025-02-21 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526640', 'tblTempUsageDetail_20' ) end [2025-02-21 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:36:24] Production.INFO: ==27646== Releasing lock... [2025-02-21 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:36:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:37:05 [end_date_ymd] => 2025-02-21 17:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:37:05' and `end` < '2025-02-21 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-21 17:37:18] Production.INFO: count ==4345 [2025-02-21 17:37:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:37:05 - End Time 2025-02-21 17:37:05 [2025-02-21 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526645', 'tblTempUsageDetail_20' ) start [2025-02-21 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526645', 'tblTempUsageDetail_20' ) end [2025-02-21 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526645', 'tblTempVendorCDR_20' ) start [2025-02-21 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526645', 'tblTempVendorCDR_20' ) end [2025-02-21 17:37:19] Production.INFO: ProcessCDR(1,14526645,1,1,2) [2025-02-21 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526645', 'tblTempUsageDetail_20' ) start [2025-02-21 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526645', 'tblTempUsageDetail_20' ) end [2025-02-21 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:37:24] Production.INFO: ==27721== Releasing lock... [2025-02-21 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:37:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:38:06 [end_date_ymd] => 2025-02-21 17:38:06 [RateCDR] => 1 ) [2025-02-21 17:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:38:06' and `end` < '2025-02-21 17:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:38:18] Production.INFO: count ==4344 [2025-02-21 17:38:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:38:06 - End Time 2025-02-21 17:38:06 [2025-02-21 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526650', 'tblTempUsageDetail_20' ) start [2025-02-21 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526650', 'tblTempUsageDetail_20' ) end [2025-02-21 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526650', 'tblTempVendorCDR_20' ) start [2025-02-21 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526650', 'tblTempVendorCDR_20' ) end [2025-02-21 17:38:20] Production.INFO: ProcessCDR(1,14526650,1,1,2) [2025-02-21 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526650', 'tblTempUsageDetail_20' ) start [2025-02-21 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526650', 'tblTempUsageDetail_20' ) end [2025-02-21 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:38:25] Production.INFO: ==27834== Releasing lock... [2025-02-21 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:38:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:39:05 [end_date_ymd] => 2025-02-21 17:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:39:05' and `end` < '2025-02-21 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-21 17:39:18] Production.INFO: count ==4336 [2025-02-21 17:39:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:39:05 - End Time 2025-02-21 17:39:05 [2025-02-21 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526655', 'tblTempUsageDetail_20' ) start [2025-02-21 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526655', 'tblTempUsageDetail_20' ) end [2025-02-21 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526655', 'tblTempVendorCDR_20' ) start [2025-02-21 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526655', 'tblTempVendorCDR_20' ) end [2025-02-21 17:39:19] Production.INFO: ProcessCDR(1,14526655,1,1,2) [2025-02-21 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526655', 'tblTempUsageDetail_20' ) start [2025-02-21 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526655', 'tblTempUsageDetail_20' ) end [2025-02-21 17:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:39:24] Production.INFO: ==27905== Releasing lock... [2025-02-21 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:39:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:40:07 [end_date_ymd] => 2025-02-21 17:40:07 [RateCDR] => 1 ) [2025-02-21 17: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-21 14:40:07' and `end` < '2025-02-21 17: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-21 17:40:19] Production.INFO: count ==4309 [2025-02-21 17:40:21] Production.ERROR: pbx CDR StartTime 2025-02-21 14:40:07 - End Time 2025-02-21 17:40:07 [2025-02-21 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526661', 'tblTempUsageDetail_20' ) start [2025-02-21 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526661', 'tblTempUsageDetail_20' ) end [2025-02-21 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526661', 'tblTempVendorCDR_20' ) start [2025-02-21 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526661', 'tblTempVendorCDR_20' ) end [2025-02-21 17:40:21] Production.INFO: ProcessCDR(1,14526661,1,1,2) [2025-02-21 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526661', 'tblTempUsageDetail_20' ) start [2025-02-21 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526661', 'tblTempUsageDetail_20' ) end [2025-02-21 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:40:26] Production.INFO: ==27984== Releasing lock... [2025-02-21 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:40:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-21 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:41:05 [end_date_ymd] => 2025-02-21 17:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:41:05' and `end` < '2025-02-21 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-21 17:41:17] Production.INFO: count ==4306 [2025-02-21 17:41:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:41:05 - End Time 2025-02-21 17:41:05 [2025-02-21 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526666', 'tblTempUsageDetail_20' ) start [2025-02-21 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526666', 'tblTempUsageDetail_20' ) end [2025-02-21 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526666', 'tblTempVendorCDR_20' ) start [2025-02-21 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526666', 'tblTempVendorCDR_20' ) end [2025-02-21 17:41:19] Production.INFO: ProcessCDR(1,14526666,1,1,2) [2025-02-21 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526666', 'tblTempUsageDetail_20' ) start [2025-02-21 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526666', 'tblTempUsageDetail_20' ) end [2025-02-21 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:41:24] Production.INFO: ==28063== Releasing lock... [2025-02-21 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:41:24] Production.INFO: 60.25 MB #Memory Used# [2025-02-21 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:42:05 [end_date_ymd] => 2025-02-21 17:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:42:05' and `end` < '2025-02-21 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-21 17:42:18] Production.INFO: count ==4327 [2025-02-21 17:42:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:42:05 - End Time 2025-02-21 17:42:05 [2025-02-21 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526671', 'tblTempUsageDetail_20' ) start [2025-02-21 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526671', 'tblTempUsageDetail_20' ) end [2025-02-21 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526671', 'tblTempVendorCDR_20' ) start [2025-02-21 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526671', 'tblTempVendorCDR_20' ) end [2025-02-21 17:42:20] Production.INFO: ProcessCDR(1,14526671,1,1,2) [2025-02-21 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526671', 'tblTempUsageDetail_20' ) start [2025-02-21 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526671', 'tblTempUsageDetail_20' ) end [2025-02-21 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:42:24] Production.INFO: ==28136== Releasing lock... [2025-02-21 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:42:24] Production.INFO: 60.25 MB #Memory Used# [2025-02-21 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:43:05 [end_date_ymd] => 2025-02-21 17:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:43:05' and `end` < '2025-02-21 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-21 17:43:18] Production.INFO: count ==4338 [2025-02-21 17:43:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:43:05 - End Time 2025-02-21 17:43:05 [2025-02-21 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526676', 'tblTempUsageDetail_20' ) start [2025-02-21 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526676', 'tblTempUsageDetail_20' ) end [2025-02-21 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526676', 'tblTempVendorCDR_20' ) start [2025-02-21 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526676', 'tblTempVendorCDR_20' ) end [2025-02-21 17:43:20] Production.INFO: ProcessCDR(1,14526676,1,1,2) [2025-02-21 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526676', 'tblTempUsageDetail_20' ) start [2025-02-21 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526676', 'tblTempUsageDetail_20' ) end [2025-02-21 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:43:25] Production.INFO: ==28259== Releasing lock... [2025-02-21 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:43:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-21 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:44:05 [end_date_ymd] => 2025-02-21 17:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:44:05' and `end` < '2025-02-21 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-21 17:44:18] Production.INFO: count ==4315 [2025-02-21 17:44:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:44:05 - End Time 2025-02-21 17:44:05 [2025-02-21 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526681', 'tblTempUsageDetail_20' ) start [2025-02-21 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526681', 'tblTempUsageDetail_20' ) end [2025-02-21 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526681', 'tblTempVendorCDR_20' ) start [2025-02-21 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526681', 'tblTempVendorCDR_20' ) end [2025-02-21 17:44:19] Production.INFO: ProcessCDR(1,14526681,1,1,2) [2025-02-21 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526681', 'tblTempUsageDetail_20' ) start [2025-02-21 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526681', 'tblTempUsageDetail_20' ) end [2025-02-21 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:44:24] Production.INFO: ==28329== Releasing lock... [2025-02-21 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:44:24] Production.INFO: 60.25 MB #Memory Used# [2025-02-21 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:45:05 [end_date_ymd] => 2025-02-21 17:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:45:05' and `end` < '2025-02-21 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-21 17:45:17] Production.INFO: count ==4319 [2025-02-21 17:45:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:45:05 - End Time 2025-02-21 17:45:05 [2025-02-21 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526686', 'tblTempUsageDetail_20' ) start [2025-02-21 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526686', 'tblTempUsageDetail_20' ) end [2025-02-21 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526686', 'tblTempVendorCDR_20' ) start [2025-02-21 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526686', 'tblTempVendorCDR_20' ) end [2025-02-21 17:45:19] Production.INFO: ProcessCDR(1,14526686,1,1,2) [2025-02-21 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526686', 'tblTempUsageDetail_20' ) start [2025-02-21 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526686', 'tblTempUsageDetail_20' ) end [2025-02-21 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:45:23] Production.INFO: ==28401== Releasing lock... [2025-02-21 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:45:23] Production.INFO: 60.25 MB #Memory Used# [2025-02-21 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:46:06 [end_date_ymd] => 2025-02-21 17:46:06 [RateCDR] => 1 ) [2025-02-21 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:46:06' and `end` < '2025-02-21 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:46:18] Production.INFO: count ==4308 [2025-02-21 17:46:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:46:06 - End Time 2025-02-21 17:46:06 [2025-02-21 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526691', 'tblTempUsageDetail_20' ) start [2025-02-21 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526691', 'tblTempUsageDetail_20' ) end [2025-02-21 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526691', 'tblTempVendorCDR_20' ) start [2025-02-21 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526691', 'tblTempVendorCDR_20' ) end [2025-02-21 17:46:20] Production.INFO: ProcessCDR(1,14526691,1,1,2) [2025-02-21 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526691', 'tblTempUsageDetail_20' ) start [2025-02-21 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526691', 'tblTempUsageDetail_20' ) end [2025-02-21 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:46:25] Production.INFO: ==28472== Releasing lock... [2025-02-21 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:46:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-21 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:47:05 [end_date_ymd] => 2025-02-21 17:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:47:05' and `end` < '2025-02-21 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-21 17:47:18] Production.INFO: count ==4300 [2025-02-21 17:47:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:47:05 - End Time 2025-02-21 17:47:05 [2025-02-21 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526696', 'tblTempUsageDetail_20' ) start [2025-02-21 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526696', 'tblTempUsageDetail_20' ) end [2025-02-21 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526696', 'tblTempVendorCDR_20' ) start [2025-02-21 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526696', 'tblTempVendorCDR_20' ) end [2025-02-21 17:47:20] Production.INFO: ProcessCDR(1,14526696,1,1,2) [2025-02-21 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526696', 'tblTempUsageDetail_20' ) start [2025-02-21 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526696', 'tblTempUsageDetail_20' ) end [2025-02-21 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:47:25] Production.INFO: ==28542== Releasing lock... [2025-02-21 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:47:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-21 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:48:06 [end_date_ymd] => 2025-02-21 17:48:06 [RateCDR] => 1 ) [2025-02-21 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:48:06' and `end` < '2025-02-21 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:48:18] Production.INFO: count ==4273 [2025-02-21 17:48:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:48:06 - End Time 2025-02-21 17:48:06 [2025-02-21 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526701', 'tblTempUsageDetail_20' ) start [2025-02-21 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526701', 'tblTempUsageDetail_20' ) end [2025-02-21 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526701', 'tblTempVendorCDR_20' ) start [2025-02-21 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526701', 'tblTempVendorCDR_20' ) end [2025-02-21 17:48:20] Production.INFO: ProcessCDR(1,14526701,1,1,2) [2025-02-21 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526701', 'tblTempUsageDetail_20' ) start [2025-02-21 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526701', 'tblTempUsageDetail_20' ) end [2025-02-21 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:48:25] Production.INFO: ==28615== Releasing lock... [2025-02-21 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:48:25] Production.INFO: 60 MB #Memory Used# [2025-02-21 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:49:06 [end_date_ymd] => 2025-02-21 17:49:06 [RateCDR] => 1 ) [2025-02-21 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-21 14:49:06' and `end` < '2025-02-21 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-21 17:49:19] Production.INFO: count ==4244 [2025-02-21 17:49:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:49:06 - End Time 2025-02-21 17:49:06 [2025-02-21 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526706', 'tblTempUsageDetail_20' ) start [2025-02-21 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526706', 'tblTempUsageDetail_20' ) end [2025-02-21 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526706', 'tblTempVendorCDR_20' ) start [2025-02-21 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526706', 'tblTempVendorCDR_20' ) end [2025-02-21 17:49:20] Production.INFO: ProcessCDR(1,14526706,1,1,2) [2025-02-21 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526706', 'tblTempUsageDetail_20' ) start [2025-02-21 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526706', 'tblTempUsageDetail_20' ) end [2025-02-21 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:49:24] Production.INFO: ==28686== Releasing lock... [2025-02-21 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:49:24] Production.INFO: 59.75 MB #Memory Used# [2025-02-21 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:50:06 [end_date_ymd] => 2025-02-21 17:50:06 [RateCDR] => 1 ) [2025-02-21 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-21 14:50:06' and `end` < '2025-02-21 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-21 17:50:18] Production.INFO: count ==4245 [2025-02-21 17:50:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:50:06 - End Time 2025-02-21 17:50:06 [2025-02-21 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526712', 'tblTempUsageDetail_20' ) start [2025-02-21 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526712', 'tblTempUsageDetail_20' ) end [2025-02-21 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526712', 'tblTempVendorCDR_20' ) start [2025-02-21 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526712', 'tblTempVendorCDR_20' ) end [2025-02-21 17:50:20] Production.INFO: ProcessCDR(1,14526712,1,1,2) [2025-02-21 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526712', 'tblTempUsageDetail_20' ) start [2025-02-21 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526712', 'tblTempUsageDetail_20' ) end [2025-02-21 17:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:50:23] Production.INFO: ==28757== Releasing lock... [2025-02-21 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:50:23] Production.INFO: 59.75 MB #Memory Used# [2025-02-21 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:51:05 [end_date_ymd] => 2025-02-21 17:51:05 [RateCDR] => 1 ) [2025-02-21 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:51:05' and `end` < '2025-02-21 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:51:18] Production.INFO: count ==4220 [2025-02-21 17:51:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:51:05 - End Time 2025-02-21 17:51:05 [2025-02-21 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526717', 'tblTempUsageDetail_20' ) start [2025-02-21 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526717', 'tblTempUsageDetail_20' ) end [2025-02-21 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526717', 'tblTempVendorCDR_20' ) start [2025-02-21 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526717', 'tblTempVendorCDR_20' ) end [2025-02-21 17:51:20] Production.INFO: ProcessCDR(1,14526717,1,1,2) [2025-02-21 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526717', 'tblTempUsageDetail_20' ) start [2025-02-21 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526717', 'tblTempUsageDetail_20' ) end [2025-02-21 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:51:25] Production.INFO: ==28831== Releasing lock... [2025-02-21 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:51:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-21 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:52:05 [end_date_ymd] => 2025-02-21 17:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:52:05' and `end` < '2025-02-21 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-21 17:52:18] Production.INFO: count ==4184 [2025-02-21 17:52:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:52:05 - End Time 2025-02-21 17:52:05 [2025-02-21 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526722', 'tblTempUsageDetail_20' ) start [2025-02-21 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526722', 'tblTempUsageDetail_20' ) end [2025-02-21 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526722', 'tblTempVendorCDR_20' ) start [2025-02-21 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526722', 'tblTempVendorCDR_20' ) end [2025-02-21 17:52:19] Production.INFO: ProcessCDR(1,14526722,1,1,2) [2025-02-21 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526722', 'tblTempUsageDetail_20' ) start [2025-02-21 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526722', 'tblTempUsageDetail_20' ) end [2025-02-21 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:52:24] Production.INFO: ==28901== Releasing lock... [2025-02-21 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:52:24] Production.INFO: 59.25 MB #Memory Used# [2025-02-21 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:53:05 [end_date_ymd] => 2025-02-21 17:53:05 [RateCDR] => 1 ) [2025-02-21 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:53:05' and `end` < '2025-02-21 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:53:18] Production.INFO: count ==4173 [2025-02-21 17:53:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:53:05 - End Time 2025-02-21 17:53:05 [2025-02-21 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526727', 'tblTempUsageDetail_20' ) start [2025-02-21 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526727', 'tblTempUsageDetail_20' ) end [2025-02-21 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526727', 'tblTempVendorCDR_20' ) start [2025-02-21 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526727', 'tblTempVendorCDR_20' ) end [2025-02-21 17:53:20] Production.INFO: ProcessCDR(1,14526727,1,1,2) [2025-02-21 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526727', 'tblTempUsageDetail_20' ) start [2025-02-21 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526727', 'tblTempUsageDetail_20' ) end [2025-02-21 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:53:25] Production.INFO: ==29012== Releasing lock... [2025-02-21 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:53:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-21 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:54:05 [end_date_ymd] => 2025-02-21 17:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:54:05' and `end` < '2025-02-21 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-21 17:54:18] Production.INFO: count ==4128 [2025-02-21 17:54:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:54:05 - End Time 2025-02-21 17:54:05 [2025-02-21 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526732', 'tblTempUsageDetail_20' ) start [2025-02-21 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526732', 'tblTempUsageDetail_20' ) end [2025-02-21 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526732', 'tblTempVendorCDR_20' ) start [2025-02-21 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526732', 'tblTempVendorCDR_20' ) end [2025-02-21 17:54:19] Production.INFO: ProcessCDR(1,14526732,1,1,2) [2025-02-21 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526732', 'tblTempUsageDetail_20' ) start [2025-02-21 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526732', 'tblTempUsageDetail_20' ) end [2025-02-21 17:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:54:23] Production.INFO: ==29085== Releasing lock... [2025-02-21 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:54:23] Production.INFO: 59 MB #Memory Used# [2025-02-21 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:55:06 [end_date_ymd] => 2025-02-21 17:55:06 [RateCDR] => 1 ) [2025-02-21 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:55:06' and `end` < '2025-02-21 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:55:18] Production.INFO: count ==4082 [2025-02-21 17:55:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:55:06 - End Time 2025-02-21 17:55:06 [2025-02-21 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526737', 'tblTempUsageDetail_20' ) start [2025-02-21 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526737', 'tblTempUsageDetail_20' ) end [2025-02-21 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526737', 'tblTempVendorCDR_20' ) start [2025-02-21 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526737', 'tblTempVendorCDR_20' ) end [2025-02-21 17:55:20] Production.INFO: ProcessCDR(1,14526737,1,1,2) [2025-02-21 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526737', 'tblTempUsageDetail_20' ) start [2025-02-21 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526737', 'tblTempUsageDetail_20' ) end [2025-02-21 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:55:25] Production.INFO: ==29156== Releasing lock... [2025-02-21 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:55:25] Production.INFO: 58.5 MB #Memory Used# [2025-02-21 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:56:05 [end_date_ymd] => 2025-02-21 17:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:56:05' and `end` < '2025-02-21 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-21 17:56:17] Production.INFO: count ==4065 [2025-02-21 17:56:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:56:05 - End Time 2025-02-21 17:56:05 [2025-02-21 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526742', 'tblTempUsageDetail_20' ) start [2025-02-21 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526742', 'tblTempUsageDetail_20' ) end [2025-02-21 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526742', 'tblTempVendorCDR_20' ) start [2025-02-21 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526742', 'tblTempVendorCDR_20' ) end [2025-02-21 17:56:19] Production.INFO: ProcessCDR(1,14526742,1,1,2) [2025-02-21 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526742', 'tblTempUsageDetail_20' ) start [2025-02-21 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526742', 'tblTempUsageDetail_20' ) end [2025-02-21 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:56:24] Production.INFO: ==29228== Releasing lock... [2025-02-21 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:56:24] Production.INFO: 58.5 MB #Memory Used# [2025-02-21 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:57:06 [end_date_ymd] => 2025-02-21 17:57:06 [RateCDR] => 1 ) [2025-02-21 17:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:57:06' and `end` < '2025-02-21 17:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:57:18] Production.INFO: count ==4064 [2025-02-21 17:57:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:57:06 - End Time 2025-02-21 17:57:06 [2025-02-21 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526747', 'tblTempUsageDetail_20' ) start [2025-02-21 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526747', 'tblTempUsageDetail_20' ) end [2025-02-21 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526747', 'tblTempVendorCDR_20' ) start [2025-02-21 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526747', 'tblTempVendorCDR_20' ) end [2025-02-21 17:57:20] Production.INFO: ProcessCDR(1,14526747,1,1,2) [2025-02-21 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526747', 'tblTempUsageDetail_20' ) start [2025-02-21 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526747', 'tblTempUsageDetail_20' ) end [2025-02-21 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:57:23] Production.INFO: ==29298== Releasing lock... [2025-02-21 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:57:23] Production.INFO: 58.25 MB #Memory Used# [2025-02-21 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:58:05 [end_date_ymd] => 2025-02-21 17:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 14:58:05' and `end` < '2025-02-21 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-21 17:58:18] Production.INFO: count ==4058 [2025-02-21 17:58:19] Production.ERROR: pbx CDR StartTime 2025-02-21 14:58:05 - End Time 2025-02-21 17:58:05 [2025-02-21 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526752', 'tblTempUsageDetail_20' ) start [2025-02-21 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526752', 'tblTempUsageDetail_20' ) end [2025-02-21 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526752', 'tblTempVendorCDR_20' ) start [2025-02-21 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526752', 'tblTempVendorCDR_20' ) end [2025-02-21 17:58:19] Production.INFO: ProcessCDR(1,14526752,1,1,2) [2025-02-21 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526752', 'tblTempUsageDetail_20' ) start [2025-02-21 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526752', 'tblTempUsageDetail_20' ) end [2025-02-21 17:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:58:23] Production.INFO: ==29367== Releasing lock... [2025-02-21 17:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:58:23] Production.INFO: 58.25 MB #Memory Used# [2025-02-21 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 14:59:06 [end_date_ymd] => 2025-02-21 17:59:06 [RateCDR] => 1 ) [2025-02-21 17:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 14:59:06' and `end` < '2025-02-21 17:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 17:59:18] Production.INFO: count ==4030 [2025-02-21 17:59:20] Production.ERROR: pbx CDR StartTime 2025-02-21 14:59:06 - End Time 2025-02-21 17:59:06 [2025-02-21 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526757', 'tblTempUsageDetail_20' ) start [2025-02-21 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526757', 'tblTempUsageDetail_20' ) end [2025-02-21 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526757', 'tblTempVendorCDR_20' ) start [2025-02-21 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526757', 'tblTempVendorCDR_20' ) end [2025-02-21 17:59:20] Production.INFO: ProcessCDR(1,14526757,1,1,2) [2025-02-21 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526757', 'tblTempUsageDetail_20' ) start [2025-02-21 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526757', 'tblTempUsageDetail_20' ) end [2025-02-21 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 17:59:25] Production.INFO: ==29437== Releasing lock... [2025-02-21 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 17:59:25] Production.INFO: 58 MB #Memory Used# [2025-02-21 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:00:06 [end_date_ymd] => 2025-02-21 18:00:06 [RateCDR] => 1 ) [2025-02-21 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:00:06' and `end` < '2025-02-21 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:00:19] Production.INFO: count ==4017 [2025-02-21 18:00:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:00:06 - End Time 2025-02-21 18:00:06 [2025-02-21 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526763', 'tblTempUsageDetail_20' ) start [2025-02-21 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526763', 'tblTempUsageDetail_20' ) end [2025-02-21 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526763', 'tblTempVendorCDR_20' ) start [2025-02-21 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526763', 'tblTempVendorCDR_20' ) end [2025-02-21 18:00:21] Production.INFO: ProcessCDR(1,14526763,1,1,2) [2025-02-21 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526763', 'tblTempUsageDetail_20' ) start [2025-02-21 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526763', 'tblTempUsageDetail_20' ) end [2025-02-21 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:00:24] Production.INFO: ==29517== Releasing lock... [2025-02-21 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:00:24] Production.INFO: 58 MB #Memory Used# [2025-02-21 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:01:06 [end_date_ymd] => 2025-02-21 18:01:06 [RateCDR] => 1 ) [2025-02-21 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:01:06' and `end` < '2025-02-21 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:01:18] Production.INFO: count ==3961 [2025-02-21 18:01:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:01:06 - End Time 2025-02-21 18:01:06 [2025-02-21 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526768', 'tblTempUsageDetail_20' ) start [2025-02-21 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526768', 'tblTempUsageDetail_20' ) end [2025-02-21 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526768', 'tblTempVendorCDR_20' ) start [2025-02-21 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526768', 'tblTempVendorCDR_20' ) end [2025-02-21 18:01:20] Production.INFO: ProcessCDR(1,14526768,1,1,2) [2025-02-21 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526768', 'tblTempUsageDetail_20' ) start [2025-02-21 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526768', 'tblTempUsageDetail_20' ) end [2025-02-21 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:01:23] Production.INFO: ==29602== Releasing lock... [2025-02-21 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:01:23] Production.INFO: 57.5 MB #Memory Used# [2025-02-21 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:02:05 [end_date_ymd] => 2025-02-21 18:02:05 [RateCDR] => 1 ) [2025-02-21 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:02:05' and `end` < '2025-02-21 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:02:18] Production.INFO: count ==3936 [2025-02-21 18:02:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:02:05 - End Time 2025-02-21 18:02:05 [2025-02-21 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526773', 'tblTempUsageDetail_20' ) start [2025-02-21 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526773', 'tblTempUsageDetail_20' ) end [2025-02-21 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526773', 'tblTempVendorCDR_20' ) start [2025-02-21 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526773', 'tblTempVendorCDR_20' ) end [2025-02-21 18:02:19] Production.INFO: ProcessCDR(1,14526773,1,1,2) [2025-02-21 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526773', 'tblTempUsageDetail_20' ) start [2025-02-21 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526773', 'tblTempUsageDetail_20' ) end [2025-02-21 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:02:23] Production.INFO: ==29674== Releasing lock... [2025-02-21 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:02:23] Production.INFO: 57.5 MB #Memory Used# [2025-02-21 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:03:05 [end_date_ymd] => 2025-02-21 18:03:05 [RateCDR] => 1 ) [2025-02-21 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:03:05' and `end` < '2025-02-21 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:03:18] Production.INFO: count ==3924 [2025-02-21 18:03:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:03:05 - End Time 2025-02-21 18:03:05 [2025-02-21 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526778', 'tblTempUsageDetail_20' ) start [2025-02-21 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526778', 'tblTempUsageDetail_20' ) end [2025-02-21 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526778', 'tblTempVendorCDR_20' ) start [2025-02-21 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526778', 'tblTempVendorCDR_20' ) end [2025-02-21 18:03:20] Production.INFO: ProcessCDR(1,14526778,1,1,2) [2025-02-21 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526778', 'tblTempUsageDetail_20' ) start [2025-02-21 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526778', 'tblTempUsageDetail_20' ) end [2025-02-21 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:03:24] Production.INFO: ==29746== Releasing lock... [2025-02-21 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:03:24] Production.INFO: 57.25 MB #Memory Used# [2025-02-21 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:04:05 [end_date_ymd] => 2025-02-21 18:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:04:05' and `end` < '2025-02-21 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-21 18:04:18] Production.INFO: count ==3906 [2025-02-21 18:04:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:04:05 - End Time 2025-02-21 18:04:05 [2025-02-21 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526783', 'tblTempUsageDetail_20' ) start [2025-02-21 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526783', 'tblTempUsageDetail_20' ) end [2025-02-21 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526783', 'tblTempVendorCDR_20' ) start [2025-02-21 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526783', 'tblTempVendorCDR_20' ) end [2025-02-21 18:04:19] Production.INFO: ProcessCDR(1,14526783,1,1,2) [2025-02-21 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526783', 'tblTempUsageDetail_20' ) start [2025-02-21 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526783', 'tblTempUsageDetail_20' ) end [2025-02-21 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:04:22] Production.INFO: ==29818== Releasing lock... [2025-02-21 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:04:22] Production.INFO: 57.25 MB #Memory Used# [2025-02-21 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:05:05 [end_date_ymd] => 2025-02-21 18:05:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:05:05' and `end` < '2025-02-21 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-21 18:05:18] Production.INFO: count ==3907 [2025-02-21 18:05:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:05:05 - End Time 2025-02-21 18:05:05 [2025-02-21 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526788', 'tblTempUsageDetail_20' ) start [2025-02-21 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526788', 'tblTempUsageDetail_20' ) end [2025-02-21 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526788', 'tblTempVendorCDR_20' ) start [2025-02-21 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526788', 'tblTempVendorCDR_20' ) end [2025-02-21 18:05:20] Production.INFO: ProcessCDR(1,14526788,1,1,2) [2025-02-21 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526788', 'tblTempUsageDetail_20' ) start [2025-02-21 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526788', 'tblTempUsageDetail_20' ) end [2025-02-21 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:05:25] Production.INFO: ==29889== Releasing lock... [2025-02-21 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:05:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-21 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:06:05 [end_date_ymd] => 2025-02-21 18:06:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:06:05' and `end` < '2025-02-21 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-21 18:06:18] Production.INFO: count ==3899 [2025-02-21 18:06:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:06:05 - End Time 2025-02-21 18:06:05 [2025-02-21 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526793', 'tblTempUsageDetail_20' ) start [2025-02-21 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526793', 'tblTempUsageDetail_20' ) end [2025-02-21 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526793', 'tblTempVendorCDR_20' ) start [2025-02-21 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526793', 'tblTempVendorCDR_20' ) end [2025-02-21 18:06:19] Production.INFO: ProcessCDR(1,14526793,1,1,2) [2025-02-21 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526793', 'tblTempUsageDetail_20' ) start [2025-02-21 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526793', 'tblTempUsageDetail_20' ) end [2025-02-21 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:06:24] Production.INFO: ==29959== Releasing lock... [2025-02-21 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:06:24] Production.INFO: 57 MB #Memory Used# [2025-02-21 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:07:05 [end_date_ymd] => 2025-02-21 18:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:07:05' and `end` < '2025-02-21 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-21 18:07:18] Production.INFO: count ==3919 [2025-02-21 18:07:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:07:05 - End Time 2025-02-21 18:07:05 [2025-02-21 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526798', 'tblTempUsageDetail_20' ) start [2025-02-21 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526798', 'tblTempUsageDetail_20' ) end [2025-02-21 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526798', 'tblTempVendorCDR_20' ) start [2025-02-21 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526798', 'tblTempVendorCDR_20' ) end [2025-02-21 18:07:20] Production.INFO: ProcessCDR(1,14526798,1,1,2) [2025-02-21 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526798', 'tblTempUsageDetail_20' ) start [2025-02-21 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526798', 'tblTempUsageDetail_20' ) end [2025-02-21 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:07:23] Production.INFO: ==30035== Releasing lock... [2025-02-21 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:07:23] Production.INFO: 57.25 MB #Memory Used# [2025-02-21 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:08:05 [end_date_ymd] => 2025-02-21 18:08:05 [RateCDR] => 1 ) [2025-02-21 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:08:05' and `end` < '2025-02-21 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:08:18] Production.INFO: count ==3920 [2025-02-21 18:08:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:08:05 - End Time 2025-02-21 18:08:05 [2025-02-21 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526803', 'tblTempUsageDetail_20' ) start [2025-02-21 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526803', 'tblTempUsageDetail_20' ) end [2025-02-21 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526803', 'tblTempVendorCDR_20' ) start [2025-02-21 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526803', 'tblTempVendorCDR_20' ) end [2025-02-21 18:08:19] Production.INFO: ProcessCDR(1,14526803,1,1,2) [2025-02-21 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526803', 'tblTempUsageDetail_20' ) start [2025-02-21 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526803', 'tblTempUsageDetail_20' ) end [2025-02-21 18:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:08:22] Production.INFO: ==30109== Releasing lock... [2025-02-21 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:08:22] Production.INFO: 57.25 MB #Memory Used# [2025-02-21 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:09:06 [end_date_ymd] => 2025-02-21 18:09:06 [RateCDR] => 1 ) [2025-02-21 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:09:06' and `end` < '2025-02-21 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:09:18] Production.INFO: count ==3914 [2025-02-21 18:09:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:09:06 - End Time 2025-02-21 18:09:06 [2025-02-21 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526808', 'tblTempUsageDetail_20' ) start [2025-02-21 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526808', 'tblTempUsageDetail_20' ) end [2025-02-21 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526808', 'tblTempVendorCDR_20' ) start [2025-02-21 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526808', 'tblTempVendorCDR_20' ) end [2025-02-21 18:09:20] Production.INFO: ProcessCDR(1,14526808,1,1,2) [2025-02-21 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526808', 'tblTempUsageDetail_20' ) start [2025-02-21 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526808', 'tblTempUsageDetail_20' ) end [2025-02-21 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:09:25] Production.INFO: ==30219== Releasing lock... [2025-02-21 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:09:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-21 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:10:06 [end_date_ymd] => 2025-02-21 18:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 15:10:06' and `end` < '2025-02-21 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-21 18:10:18] Production.INFO: count ==3899 [2025-02-21 18:10:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:10:06 - End Time 2025-02-21 18:10:06 [2025-02-21 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526814', 'tblTempUsageDetail_20' ) start [2025-02-21 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526814', 'tblTempUsageDetail_20' ) end [2025-02-21 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526814', 'tblTempVendorCDR_20' ) start [2025-02-21 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526814', 'tblTempVendorCDR_20' ) end [2025-02-21 18:10:20] Production.INFO: ProcessCDR(1,14526814,1,1,2) [2025-02-21 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526814', 'tblTempUsageDetail_20' ) start [2025-02-21 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526814', 'tblTempUsageDetail_20' ) end [2025-02-21 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:10:23] Production.INFO: ==30291== Releasing lock... [2025-02-21 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:10:23] Production.INFO: 57 MB #Memory Used# [2025-02-21 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:11:05 [end_date_ymd] => 2025-02-21 18:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:11:05' and `end` < '2025-02-21 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-21 18:11:17] Production.INFO: count ==3898 [2025-02-21 18:11:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:11:05 - End Time 2025-02-21 18:11:05 [2025-02-21 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526819', 'tblTempUsageDetail_20' ) start [2025-02-21 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526819', 'tblTempUsageDetail_20' ) end [2025-02-21 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526819', 'tblTempVendorCDR_20' ) start [2025-02-21 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526819', 'tblTempVendorCDR_20' ) end [2025-02-21 18:11:19] Production.INFO: ProcessCDR(1,14526819,1,1,2) [2025-02-21 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526819', 'tblTempUsageDetail_20' ) start [2025-02-21 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526819', 'tblTempUsageDetail_20' ) end [2025-02-21 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:11:22] Production.INFO: ==30364== Releasing lock... [2025-02-21 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:11:22] Production.INFO: 57 MB #Memory Used# [2025-02-21 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:12:06 [end_date_ymd] => 2025-02-21 18:12:06 [RateCDR] => 1 ) [2025-02-21 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:12:06' and `end` < '2025-02-21 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:12:18] Production.INFO: count ==3845 [2025-02-21 18:12:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:12:06 - End Time 2025-02-21 18:12:06 [2025-02-21 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526824', 'tblTempUsageDetail_20' ) start [2025-02-21 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526824', 'tblTempUsageDetail_20' ) end [2025-02-21 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526824', 'tblTempVendorCDR_20' ) start [2025-02-21 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526824', 'tblTempVendorCDR_20' ) end [2025-02-21 18:12:20] Production.INFO: ProcessCDR(1,14526824,1,1,2) [2025-02-21 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526824', 'tblTempUsageDetail_20' ) start [2025-02-21 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526824', 'tblTempUsageDetail_20' ) end [2025-02-21 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:12:25] Production.INFO: ==30435== Releasing lock... [2025-02-21 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:12:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-21 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:13:05 [end_date_ymd] => 2025-02-21 18:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:13:05' and `end` < '2025-02-21 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-21 18:13:18] Production.INFO: count ==3827 [2025-02-21 18:13:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:13:05 - End Time 2025-02-21 18:13:05 [2025-02-21 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526829', 'tblTempUsageDetail_20' ) start [2025-02-21 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526829', 'tblTempUsageDetail_20' ) end [2025-02-21 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526829', 'tblTempVendorCDR_20' ) start [2025-02-21 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526829', 'tblTempVendorCDR_20' ) end [2025-02-21 18:13:19] Production.INFO: ProcessCDR(1,14526829,1,1,2) [2025-02-21 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526829', 'tblTempUsageDetail_20' ) start [2025-02-21 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526829', 'tblTempUsageDetail_20' ) end [2025-02-21 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:13:23] Production.INFO: ==30506== Releasing lock... [2025-02-21 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:13:23] Production.INFO: 57.25 MB #Memory Used# [2025-02-21 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:14:06 [end_date_ymd] => 2025-02-21 18:14:06 [RateCDR] => 1 ) [2025-02-21 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-21 15:14:06' and `end` < '2025-02-21 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-21 18:14:18] Production.INFO: count ==3824 [2025-02-21 18:14:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:14:06 - End Time 2025-02-21 18:14:06 [2025-02-21 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526834', 'tblTempUsageDetail_20' ) start [2025-02-21 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526834', 'tblTempUsageDetail_20' ) end [2025-02-21 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526834', 'tblTempVendorCDR_20' ) start [2025-02-21 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526834', 'tblTempVendorCDR_20' ) end [2025-02-21 18:14:20] Production.INFO: ProcessCDR(1,14526834,1,1,2) [2025-02-21 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526834', 'tblTempUsageDetail_20' ) start [2025-02-21 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526834', 'tblTempUsageDetail_20' ) end [2025-02-21 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:14:25] Production.INFO: ==30578== Releasing lock... [2025-02-21 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:14:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-21 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:15:05 [end_date_ymd] => 2025-02-21 18:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:15:05' and `end` < '2025-02-21 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-21 18:15:18] Production.INFO: count ==3811 [2025-02-21 18:15:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:15:05 - End Time 2025-02-21 18:15:05 [2025-02-21 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526839', 'tblTempUsageDetail_20' ) start [2025-02-21 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526839', 'tblTempUsageDetail_20' ) end [2025-02-21 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526839', 'tblTempVendorCDR_20' ) start [2025-02-21 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526839', 'tblTempVendorCDR_20' ) end [2025-02-21 18:15:19] Production.INFO: ProcessCDR(1,14526839,1,1,2) [2025-02-21 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526839', 'tblTempUsageDetail_20' ) start [2025-02-21 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526839', 'tblTempUsageDetail_20' ) end [2025-02-21 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:15:24] Production.INFO: ==30670== Releasing lock... [2025-02-21 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:15:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-21 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:16:06 [end_date_ymd] => 2025-02-21 18:16:06 [RateCDR] => 1 ) [2025-02-21 18:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:16:06' and `end` < '2025-02-21 18:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:16:19] Production.INFO: count ==3833 [2025-02-21 18:16:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:16:06 - End Time 2025-02-21 18:16:06 [2025-02-21 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526844', 'tblTempUsageDetail_20' ) start [2025-02-21 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526844', 'tblTempUsageDetail_20' ) end [2025-02-21 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526844', 'tblTempVendorCDR_20' ) start [2025-02-21 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526844', 'tblTempVendorCDR_20' ) end [2025-02-21 18:16:20] Production.INFO: ProcessCDR(1,14526844,1,1,2) [2025-02-21 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526844', 'tblTempUsageDetail_20' ) start [2025-02-21 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526844', 'tblTempUsageDetail_20' ) end [2025-02-21 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:16:24] Production.INFO: ==30743== Releasing lock... [2025-02-21 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:16:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-21 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:17:05 [end_date_ymd] => 2025-02-21 18:17:05 [RateCDR] => 1 ) [2025-02-21 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:17:05' and `end` < '2025-02-21 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:17:18] Production.INFO: count ==3829 [2025-02-21 18:17:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:17:05 - End Time 2025-02-21 18:17:05 [2025-02-21 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526849', 'tblTempUsageDetail_20' ) start [2025-02-21 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526849', 'tblTempUsageDetail_20' ) end [2025-02-21 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526849', 'tblTempVendorCDR_20' ) start [2025-02-21 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526849', 'tblTempVendorCDR_20' ) end [2025-02-21 18:17:19] Production.INFO: ProcessCDR(1,14526849,1,1,2) [2025-02-21 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526849', 'tblTempUsageDetail_20' ) start [2025-02-21 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526849', 'tblTempUsageDetail_20' ) end [2025-02-21 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:17:24] Production.INFO: ==30812== Releasing lock... [2025-02-21 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:17:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-21 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:18:06 [end_date_ymd] => 2025-02-21 18:18:06 [RateCDR] => 1 ) [2025-02-21 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-21 15:18:06' and `end` < '2025-02-21 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-21 18:18:18] Production.INFO: count ==3821 [2025-02-21 18:18:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:18:06 - End Time 2025-02-21 18:18:06 [2025-02-21 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526854', 'tblTempUsageDetail_20' ) start [2025-02-21 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526854', 'tblTempUsageDetail_20' ) end [2025-02-21 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526854', 'tblTempVendorCDR_20' ) start [2025-02-21 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526854', 'tblTempVendorCDR_20' ) end [2025-02-21 18:18:20] Production.INFO: ProcessCDR(1,14526854,1,1,2) [2025-02-21 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526854', 'tblTempUsageDetail_20' ) start [2025-02-21 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526854', 'tblTempUsageDetail_20' ) end [2025-02-21 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:18:24] Production.INFO: ==30882== Releasing lock... [2025-02-21 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:18:24] Production.INFO: 56.5 MB #Memory Used# [2025-02-21 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:19:05 [end_date_ymd] => 2025-02-21 18:19:05 [RateCDR] => 1 ) [2025-02-21 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:19:05' and `end` < '2025-02-21 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:19:18] Production.INFO: count ==3811 [2025-02-21 18:19:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:19:05 - End Time 2025-02-21 18:19:05 [2025-02-21 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526859', 'tblTempUsageDetail_20' ) start [2025-02-21 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526859', 'tblTempUsageDetail_20' ) end [2025-02-21 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526859', 'tblTempVendorCDR_20' ) start [2025-02-21 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526859', 'tblTempVendorCDR_20' ) end [2025-02-21 18:19:19] Production.INFO: ProcessCDR(1,14526859,1,1,2) [2025-02-21 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526859', 'tblTempUsageDetail_20' ) start [2025-02-21 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526859', 'tblTempUsageDetail_20' ) end [2025-02-21 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:19:23] Production.INFO: ==30956== Releasing lock... [2025-02-21 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:19:23] Production.INFO: 56.75 MB #Memory Used# [2025-02-21 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:20:06 [end_date_ymd] => 2025-02-21 18:20:06 [RateCDR] => 1 ) [2025-02-21 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-21 15:20:06' and `end` < '2025-02-21 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-21 18:20:19] Production.INFO: count ==3799 [2025-02-21 18:20:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:20:06 - End Time 2025-02-21 18:20:06 [2025-02-21 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526864', 'tblTempUsageDetail_20' ) start [2025-02-21 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526864', 'tblTempUsageDetail_20' ) end [2025-02-21 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526864', 'tblTempVendorCDR_20' ) start [2025-02-21 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526864', 'tblTempVendorCDR_20' ) end [2025-02-21 18:20:20] Production.INFO: ProcessCDR(1,14526864,1,1,2) [2025-02-21 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526864', 'tblTempUsageDetail_20' ) start [2025-02-21 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526864', 'tblTempUsageDetail_20' ) end [2025-02-21 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:20:24] Production.INFO: ==31033== Releasing lock... [2025-02-21 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:20:24] Production.INFO: 57 MB #Memory Used# [2025-02-21 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:21:05 [end_date_ymd] => 2025-02-21 18:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:21:05' and `end` < '2025-02-21 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-21 18:21:18] Production.INFO: count ==3796 [2025-02-21 18:21:20] Production.ERROR: pbx CDR StartTime 2025-02-21 15:21:05 - End Time 2025-02-21 18:21:05 [2025-02-21 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526870', 'tblTempUsageDetail_20' ) start [2025-02-21 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526870', 'tblTempUsageDetail_20' ) end [2025-02-21 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526870', 'tblTempVendorCDR_20' ) start [2025-02-21 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526870', 'tblTempVendorCDR_20' ) end [2025-02-21 18:21:20] Production.INFO: ProcessCDR(1,14526870,1,1,2) [2025-02-21 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526870', 'tblTempUsageDetail_20' ) start [2025-02-21 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526870', 'tblTempUsageDetail_20' ) end [2025-02-21 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:21:24] Production.INFO: ==31110== Releasing lock... [2025-02-21 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:21:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-21 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:22:06 [end_date_ymd] => 2025-02-21 18:22:06 [RateCDR] => 1 ) [2025-02-21 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:22:06' and `end` < '2025-02-21 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:22:18] Production.INFO: count ==3788 [2025-02-21 18:22:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:22:06 - End Time 2025-02-21 18:22:06 [2025-02-21 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526875', 'tblTempUsageDetail_20' ) start [2025-02-21 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526875', 'tblTempUsageDetail_20' ) end [2025-02-21 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526875', 'tblTempVendorCDR_20' ) start [2025-02-21 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526875', 'tblTempVendorCDR_20' ) end [2025-02-21 18:22:20] Production.INFO: ProcessCDR(1,14526875,1,1,2) [2025-02-21 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526875', 'tblTempUsageDetail_20' ) start [2025-02-21 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526875', 'tblTempUsageDetail_20' ) end [2025-02-21 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:22:24] Production.INFO: ==31180== Releasing lock... [2025-02-21 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:22:24] Production.INFO: 57 MB #Memory Used# [2025-02-21 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:23:05 [end_date_ymd] => 2025-02-21 18:23:05 [RateCDR] => 1 ) [2025-02-21 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:23:05' and `end` < '2025-02-21 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:23:18] Production.INFO: count ==3737 [2025-02-21 18:23:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:23:05 - End Time 2025-02-21 18:23:05 [2025-02-21 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526880', 'tblTempUsageDetail_20' ) start [2025-02-21 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526880', 'tblTempUsageDetail_20' ) end [2025-02-21 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526880', 'tblTempVendorCDR_20' ) start [2025-02-21 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526880', 'tblTempVendorCDR_20' ) end [2025-02-21 18:23:19] Production.INFO: ProcessCDR(1,14526880,1,1,2) [2025-02-21 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526880', 'tblTempUsageDetail_20' ) start [2025-02-21 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526880', 'tblTempUsageDetail_20' ) end [2025-02-21 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:23:22] Production.INFO: ==31251== Releasing lock... [2025-02-21 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:23:22] Production.INFO: 56.25 MB #Memory Used# [2025-02-21 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:24:05 [end_date_ymd] => 2025-02-21 18:24:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:24:05' and `end` < '2025-02-21 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-21 18:24:18] Production.INFO: count ==3714 [2025-02-21 18:24:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:24:05 - End Time 2025-02-21 18:24:05 [2025-02-21 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526885', 'tblTempUsageDetail_20' ) start [2025-02-21 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526885', 'tblTempUsageDetail_20' ) end [2025-02-21 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526885', 'tblTempVendorCDR_20' ) start [2025-02-21 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526885', 'tblTempVendorCDR_20' ) end [2025-02-21 18:24:19] Production.INFO: ProcessCDR(1,14526885,1,1,2) [2025-02-21 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526885', 'tblTempUsageDetail_20' ) start [2025-02-21 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526885', 'tblTempUsageDetail_20' ) end [2025-02-21 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:24:25] Production.INFO: ==31362== Releasing lock... [2025-02-21 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:24:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-21 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:25:05 [end_date_ymd] => 2025-02-21 18:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:25:05' and `end` < '2025-02-21 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-21 18:25:18] Production.INFO: count ==3690 [2025-02-21 18:25:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:25:05 - End Time 2025-02-21 18:25:05 [2025-02-21 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526890', 'tblTempUsageDetail_20' ) start [2025-02-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526890', 'tblTempUsageDetail_20' ) end [2025-02-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526890', 'tblTempVendorCDR_20' ) start [2025-02-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526890', 'tblTempVendorCDR_20' ) end [2025-02-21 18:25:19] Production.INFO: ProcessCDR(1,14526890,1,1,2) [2025-02-21 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526890', 'tblTempUsageDetail_20' ) start [2025-02-21 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526890', 'tblTempUsageDetail_20' ) end [2025-02-21 18:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:25:22] Production.INFO: ==31433== Releasing lock... [2025-02-21 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:25:22] Production.INFO: 55.75 MB #Memory Used# [2025-02-21 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:26:05 [end_date_ymd] => 2025-02-21 18:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:26:05' and `end` < '2025-02-21 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-21 18:26:17] Production.INFO: count ==3693 [2025-02-21 18:26:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:26:05 - End Time 2025-02-21 18:26:05 [2025-02-21 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526895', 'tblTempUsageDetail_20' ) start [2025-02-21 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526895', 'tblTempUsageDetail_20' ) end [2025-02-21 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526895', 'tblTempVendorCDR_20' ) start [2025-02-21 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526895', 'tblTempVendorCDR_20' ) end [2025-02-21 18:26:19] Production.INFO: ProcessCDR(1,14526895,1,1,2) [2025-02-21 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526895', 'tblTempUsageDetail_20' ) start [2025-02-21 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526895', 'tblTempUsageDetail_20' ) end [2025-02-21 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:26:23] Production.INFO: ==31505== Releasing lock... [2025-02-21 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:26:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-21 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:27:05 [end_date_ymd] => 2025-02-21 18:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:27:05' and `end` < '2025-02-21 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-21 18:27:17] Production.INFO: count ==3690 [2025-02-21 18:27:18] Production.ERROR: pbx CDR StartTime 2025-02-21 15:27:05 - End Time 2025-02-21 18:27:05 [2025-02-21 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526900', 'tblTempUsageDetail_20' ) start [2025-02-21 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526900', 'tblTempUsageDetail_20' ) end [2025-02-21 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526900', 'tblTempVendorCDR_20' ) start [2025-02-21 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526900', 'tblTempVendorCDR_20' ) end [2025-02-21 18:27:19] Production.INFO: ProcessCDR(1,14526900,1,1,2) [2025-02-21 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526900', 'tblTempUsageDetail_20' ) start [2025-02-21 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526900', 'tblTempUsageDetail_20' ) end [2025-02-21 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:27:23] Production.INFO: ==31576== Releasing lock... [2025-02-21 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:27:23] Production.INFO: 56 MB #Memory Used# [2025-02-21 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:28:05 [end_date_ymd] => 2025-02-21 18:28:05 [RateCDR] => 1 ) [2025-02-21 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:28:05' and `end` < '2025-02-21 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:28:17] Production.INFO: count ==3683 [2025-02-21 18:28:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:28:05 - End Time 2025-02-21 18:28:05 [2025-02-21 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526905', 'tblTempUsageDetail_20' ) start [2025-02-21 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526905', 'tblTempUsageDetail_20' ) end [2025-02-21 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526905', 'tblTempVendorCDR_20' ) start [2025-02-21 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526905', 'tblTempVendorCDR_20' ) end [2025-02-21 18:28:19] Production.INFO: ProcessCDR(1,14526905,1,1,2) [2025-02-21 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526905', 'tblTempUsageDetail_20' ) start [2025-02-21 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526905', 'tblTempUsageDetail_20' ) end [2025-02-21 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:28:23] Production.INFO: ==31647== Releasing lock... [2025-02-21 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:28:23] Production.INFO: 55.75 MB #Memory Used# [2025-02-21 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:29:05 [end_date_ymd] => 2025-02-21 18:29:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:29:05' and `end` < '2025-02-21 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-21 18:29:18] Production.INFO: count ==3676 [2025-02-21 18:29:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:29:05 - End Time 2025-02-21 18:29:05 [2025-02-21 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526910', 'tblTempUsageDetail_20' ) start [2025-02-21 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526910', 'tblTempUsageDetail_20' ) end [2025-02-21 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526910', 'tblTempVendorCDR_20' ) start [2025-02-21 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526910', 'tblTempVendorCDR_20' ) end [2025-02-21 18:29:19] Production.INFO: ProcessCDR(1,14526910,1,1,2) [2025-02-21 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526910', 'tblTempUsageDetail_20' ) start [2025-02-21 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526910', 'tblTempUsageDetail_20' ) end [2025-02-21 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:29:23] Production.INFO: ==31721== Releasing lock... [2025-02-21 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:29:23] Production.INFO: 56 MB #Memory Used# [2025-02-21 18:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:30:07 [end_date_ymd] => 2025-02-21 18:30:07 [RateCDR] => 1 ) [2025-02-21 18:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:30:07' and `end` < '2025-02-21 18:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:30:19] Production.INFO: count ==3654 [2025-02-21 18:30:21] Production.ERROR: pbx CDR StartTime 2025-02-21 15:30:07 - End Time 2025-02-21 18:30:07 [2025-02-21 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526916', 'tblTempUsageDetail_20' ) start [2025-02-21 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526916', 'tblTempUsageDetail_20' ) end [2025-02-21 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526916', 'tblTempVendorCDR_20' ) start [2025-02-21 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526916', 'tblTempVendorCDR_20' ) end [2025-02-21 18:30:21] Production.INFO: ProcessCDR(1,14526916,1,1,2) [2025-02-21 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526916', 'tblTempUsageDetail_20' ) start [2025-02-21 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526916', 'tblTempUsageDetail_20' ) end [2025-02-21 18:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:30:26] Production.INFO: ==31796== Releasing lock... [2025-02-21 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:30:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-21 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:31:05 [end_date_ymd] => 2025-02-21 18:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:31:05' and `end` < '2025-02-21 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-21 18:31:17] Production.INFO: count ==3679 [2025-02-21 18:31:18] Production.ERROR: pbx CDR StartTime 2025-02-21 15:31:05 - End Time 2025-02-21 18:31:05 [2025-02-21 18:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526921', 'tblTempUsageDetail_20' ) start [2025-02-21 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526921', 'tblTempUsageDetail_20' ) end [2025-02-21 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526921', 'tblTempVendorCDR_20' ) start [2025-02-21 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526921', 'tblTempVendorCDR_20' ) end [2025-02-21 18:31:18] Production.INFO: ProcessCDR(1,14526921,1,1,2) [2025-02-21 18:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526921', 'tblTempUsageDetail_20' ) start [2025-02-21 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526921', 'tblTempUsageDetail_20' ) end [2025-02-21 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:31:23] Production.INFO: ==31869== Releasing lock... [2025-02-21 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:31:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-21 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:32:05 [end_date_ymd] => 2025-02-21 18:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:32:05' and `end` < '2025-02-21 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-21 18:32:17] Production.INFO: count ==3672 [2025-02-21 18:32:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:32:05 - End Time 2025-02-21 18:32:05 [2025-02-21 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526926', 'tblTempUsageDetail_20' ) start [2025-02-21 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526926', 'tblTempUsageDetail_20' ) end [2025-02-21 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526926', 'tblTempVendorCDR_20' ) start [2025-02-21 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526926', 'tblTempVendorCDR_20' ) end [2025-02-21 18:32:19] Production.INFO: ProcessCDR(1,14526926,1,1,2) [2025-02-21 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526926', 'tblTempUsageDetail_20' ) start [2025-02-21 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526926', 'tblTempUsageDetail_20' ) end [2025-02-21 18:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:32:22] Production.INFO: ==31939== Releasing lock... [2025-02-21 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:32:22] Production.INFO: 55.75 MB #Memory Used# [2025-02-21 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:33:06 [end_date_ymd] => 2025-02-21 18:33:06 [RateCDR] => 1 ) [2025-02-21 18: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-21 15:33:06' and `end` < '2025-02-21 18: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-21 18:33:18] Production.INFO: count ==3663 [2025-02-21 18:33:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:33:06 - End Time 2025-02-21 18:33:06 [2025-02-21 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526931', 'tblTempUsageDetail_20' ) start [2025-02-21 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526931', 'tblTempUsageDetail_20' ) end [2025-02-21 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526931', 'tblTempVendorCDR_20' ) start [2025-02-21 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526931', 'tblTempVendorCDR_20' ) end [2025-02-21 18:33:20] Production.INFO: ProcessCDR(1,14526931,1,1,2) [2025-02-21 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526931', 'tblTempUsageDetail_20' ) start [2025-02-21 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526931', 'tblTempUsageDetail_20' ) end [2025-02-21 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:33:24] Production.INFO: ==32010== Releasing lock... [2025-02-21 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:33:24] Production.INFO: 56 MB #Memory Used# [2025-02-21 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:34:05 [end_date_ymd] => 2025-02-21 18:34:05 [RateCDR] => 1 ) [2025-02-21 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:34:05' and `end` < '2025-02-21 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:34:17] Production.INFO: count ==3658 [2025-02-21 18:34:18] Production.ERROR: pbx CDR StartTime 2025-02-21 15:34:05 - End Time 2025-02-21 18:34:05 [2025-02-21 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526936', 'tblTempUsageDetail_20' ) start [2025-02-21 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526936', 'tblTempUsageDetail_20' ) end [2025-02-21 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526936', 'tblTempVendorCDR_20' ) start [2025-02-21 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526936', 'tblTempVendorCDR_20' ) end [2025-02-21 18:34:19] Production.INFO: ProcessCDR(1,14526936,1,1,2) [2025-02-21 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526936', 'tblTempUsageDetail_20' ) start [2025-02-21 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526936', 'tblTempUsageDetail_20' ) end [2025-02-21 18:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:34:22] Production.INFO: ==32084== Releasing lock... [2025-02-21 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:34:22] Production.INFO: 55.5 MB #Memory Used# [2025-02-21 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:35:05 [end_date_ymd] => 2025-02-21 18:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:35:05' and `end` < '2025-02-21 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-21 18:35:17] Production.INFO: count ==3671 [2025-02-21 18:35:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:35:05 - End Time 2025-02-21 18:35:05 [2025-02-21 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526941', 'tblTempUsageDetail_20' ) start [2025-02-21 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526941', 'tblTempUsageDetail_20' ) end [2025-02-21 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526941', 'tblTempVendorCDR_20' ) start [2025-02-21 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526941', 'tblTempVendorCDR_20' ) end [2025-02-21 18:35:19] Production.INFO: ProcessCDR(1,14526941,1,1,2) [2025-02-21 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526941', 'tblTempUsageDetail_20' ) start [2025-02-21 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526941', 'tblTempUsageDetail_20' ) end [2025-02-21 18:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:35:22] Production.INFO: ==32159== Releasing lock... [2025-02-21 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:35:22] Production.INFO: 55.75 MB #Memory Used# [2025-02-21 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:36:05 [end_date_ymd] => 2025-02-21 18:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:36:05' and `end` < '2025-02-21 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-21 18:36:17] Production.INFO: count ==3644 [2025-02-21 18:36:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:36:05 - End Time 2025-02-21 18:36:05 [2025-02-21 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526946', 'tblTempUsageDetail_20' ) start [2025-02-21 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526946', 'tblTempUsageDetail_20' ) end [2025-02-21 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526946', 'tblTempVendorCDR_20' ) start [2025-02-21 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526946', 'tblTempVendorCDR_20' ) end [2025-02-21 18:36:19] Production.INFO: ProcessCDR(1,14526946,1,1,2) [2025-02-21 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526946', 'tblTempUsageDetail_20' ) start [2025-02-21 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526946', 'tblTempUsageDetail_20' ) end [2025-02-21 18:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:36:22] Production.INFO: ==32229== Releasing lock... [2025-02-21 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:36:22] Production.INFO: 56.25 MB #Memory Used# [2025-02-21 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:37:05 [end_date_ymd] => 2025-02-21 18:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:37:05' and `end` < '2025-02-21 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-21 18:37:17] Production.INFO: count ==3634 [2025-02-21 18:37:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:37:05 - End Time 2025-02-21 18:37:05 [2025-02-21 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526951', 'tblTempUsageDetail_20' ) start [2025-02-21 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526951', 'tblTempUsageDetail_20' ) end [2025-02-21 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526951', 'tblTempVendorCDR_20' ) start [2025-02-21 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526951', 'tblTempVendorCDR_20' ) end [2025-02-21 18:37:19] Production.INFO: ProcessCDR(1,14526951,1,1,2) [2025-02-21 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526951', 'tblTempUsageDetail_20' ) start [2025-02-21 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526951', 'tblTempUsageDetail_20' ) end [2025-02-21 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:37:24] Production.INFO: ==32299== Releasing lock... [2025-02-21 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:37:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-21 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:38:05 [end_date_ymd] => 2025-02-21 18:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:38:05' and `end` < '2025-02-21 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-21 18:38:17] Production.INFO: count ==3615 [2025-02-21 18:38:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:38:05 - End Time 2025-02-21 18:38:05 [2025-02-21 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526956', 'tblTempUsageDetail_20' ) start [2025-02-21 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526956', 'tblTempUsageDetail_20' ) end [2025-02-21 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526956', 'tblTempVendorCDR_20' ) start [2025-02-21 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526956', 'tblTempVendorCDR_20' ) end [2025-02-21 18:38:19] Production.INFO: ProcessCDR(1,14526956,1,1,2) [2025-02-21 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526956', 'tblTempUsageDetail_20' ) start [2025-02-21 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526956', 'tblTempUsageDetail_20' ) end [2025-02-21 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:38:22] Production.INFO: ==32370== Releasing lock... [2025-02-21 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:38:22] Production.INFO: 55.5 MB #Memory Used# [2025-02-21 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:39:05 [end_date_ymd] => 2025-02-21 18:39:05 [RateCDR] => 1 ) [2025-02-21 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:39:05' and `end` < '2025-02-21 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:39:18] Production.INFO: count ==3595 [2025-02-21 18:39:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:39:05 - End Time 2025-02-21 18:39:05 [2025-02-21 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526961', 'tblTempUsageDetail_20' ) start [2025-02-21 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526961', 'tblTempUsageDetail_20' ) end [2025-02-21 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526961', 'tblTempVendorCDR_20' ) start [2025-02-21 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526961', 'tblTempVendorCDR_20' ) end [2025-02-21 18:39:19] Production.INFO: ProcessCDR(1,14526961,1,1,2) [2025-02-21 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526961', 'tblTempUsageDetail_20' ) start [2025-02-21 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526961', 'tblTempUsageDetail_20' ) end [2025-02-21 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:39:22] Production.INFO: ==32445== Releasing lock... [2025-02-21 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:39:22] Production.INFO: 55.75 MB #Memory Used# [2025-02-21 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:40:05 [end_date_ymd] => 2025-02-21 18:40:05 [RateCDR] => 1 ) [2025-02-21 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:40:05' and `end` < '2025-02-21 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:40:18] Production.INFO: count ==3605 [2025-02-21 18:40:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:40:05 - End Time 2025-02-21 18:40:05 [2025-02-21 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526967', 'tblTempUsageDetail_20' ) start [2025-02-21 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526967', 'tblTempUsageDetail_20' ) end [2025-02-21 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526967', 'tblTempVendorCDR_20' ) start [2025-02-21 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526967', 'tblTempVendorCDR_20' ) end [2025-02-21 18:40:19] Production.INFO: ProcessCDR(1,14526967,1,1,2) [2025-02-21 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526967', 'tblTempUsageDetail_20' ) start [2025-02-21 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526967', 'tblTempUsageDetail_20' ) end [2025-02-21 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:40:24] Production.INFO: ==32558== Releasing lock... [2025-02-21 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:40:24] Production.INFO: 55.5 MB #Memory Used# [2025-02-21 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:41:05 [end_date_ymd] => 2025-02-21 18:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:41:05' and `end` < '2025-02-21 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-21 18:41:17] Production.INFO: count ==3546 [2025-02-21 18:41:18] Production.ERROR: pbx CDR StartTime 2025-02-21 15:41:05 - End Time 2025-02-21 18:41:05 [2025-02-21 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526972', 'tblTempUsageDetail_20' ) start [2025-02-21 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526972', 'tblTempUsageDetail_20' ) end [2025-02-21 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526972', 'tblTempVendorCDR_20' ) start [2025-02-21 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526972', 'tblTempVendorCDR_20' ) end [2025-02-21 18:41:19] Production.INFO: ProcessCDR(1,14526972,1,1,2) [2025-02-21 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526972', 'tblTempUsageDetail_20' ) start [2025-02-21 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526972', 'tblTempUsageDetail_20' ) end [2025-02-21 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:41:22] Production.INFO: ==32633== Releasing lock... [2025-02-21 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:41:22] Production.INFO: 55.25 MB #Memory Used# [2025-02-21 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:42:05 [end_date_ymd] => 2025-02-21 18:42:05 [RateCDR] => 1 ) [2025-02-21 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:42:05' and `end` < '2025-02-21 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:42:17] Production.INFO: count ==3535 [2025-02-21 18:42:18] Production.ERROR: pbx CDR StartTime 2025-02-21 15:42:05 - End Time 2025-02-21 18:42:05 [2025-02-21 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526977', 'tblTempUsageDetail_20' ) start [2025-02-21 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526977', 'tblTempUsageDetail_20' ) end [2025-02-21 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526977', 'tblTempVendorCDR_20' ) start [2025-02-21 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526977', 'tblTempVendorCDR_20' ) end [2025-02-21 18:42:18] Production.INFO: ProcessCDR(1,14526977,1,1,2) [2025-02-21 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526977', 'tblTempUsageDetail_20' ) start [2025-02-21 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526977', 'tblTempUsageDetail_20' ) end [2025-02-21 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:42:23] Production.INFO: ==32702== Releasing lock... [2025-02-21 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:42:23] Production.INFO: 55 MB #Memory Used# [2025-02-21 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:43:05 [end_date_ymd] => 2025-02-21 18:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:43:05' and `end` < '2025-02-21 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-21 18:43:17] Production.INFO: count ==3501 [2025-02-21 18:43:18] Production.ERROR: pbx CDR StartTime 2025-02-21 15:43:05 - End Time 2025-02-21 18:43:05 [2025-02-21 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526982', 'tblTempUsageDetail_20' ) start [2025-02-21 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526982', 'tblTempUsageDetail_20' ) end [2025-02-21 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526982', 'tblTempVendorCDR_20' ) start [2025-02-21 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526982', 'tblTempVendorCDR_20' ) end [2025-02-21 18:43:18] Production.INFO: ProcessCDR(1,14526982,1,1,2) [2025-02-21 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526982', 'tblTempUsageDetail_20' ) start [2025-02-21 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526982', 'tblTempUsageDetail_20' ) end [2025-02-21 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:43:23] Production.INFO: ==315== Releasing lock... [2025-02-21 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:43:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-21 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:44:06 [end_date_ymd] => 2025-02-21 18:44:06 [RateCDR] => 1 ) [2025-02-21 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:44:06' and `end` < '2025-02-21 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:44:18] Production.INFO: count ==3491 [2025-02-21 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:44:06 - End Time 2025-02-21 18:44:06 [2025-02-21 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526987', 'tblTempUsageDetail_20' ) start [2025-02-21 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526987', 'tblTempUsageDetail_20' ) end [2025-02-21 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526987', 'tblTempVendorCDR_20' ) start [2025-02-21 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526987', 'tblTempVendorCDR_20' ) end [2025-02-21 18:44:19] Production.INFO: ProcessCDR(1,14526987,1,1,2) [2025-02-21 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526987', 'tblTempUsageDetail_20' ) start [2025-02-21 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526987', 'tblTempUsageDetail_20' ) end [2025-02-21 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:44:23] Production.INFO: ==408== Releasing lock... [2025-02-21 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:44:23] Production.INFO: 55 MB #Memory Used# [2025-02-21 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:45:05 [end_date_ymd] => 2025-02-21 18:45:05 [RateCDR] => 1 ) [2025-02-21 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:45:05' and `end` < '2025-02-21 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:45:18] Production.INFO: count ==3495 [2025-02-21 18:45:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:45:05 - End Time 2025-02-21 18:45:05 [2025-02-21 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526992', 'tblTempUsageDetail_20' ) start [2025-02-21 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526992', 'tblTempUsageDetail_20' ) end [2025-02-21 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526992', 'tblTempVendorCDR_20' ) start [2025-02-21 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526992', 'tblTempVendorCDR_20' ) end [2025-02-21 18:45:19] Production.INFO: ProcessCDR(1,14526992,1,1,2) [2025-02-21 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526992', 'tblTempUsageDetail_20' ) start [2025-02-21 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526992', 'tblTempUsageDetail_20' ) end [2025-02-21 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:45:23] Production.INFO: ==500== Releasing lock... [2025-02-21 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:45:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-21 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:46:06 [end_date_ymd] => 2025-02-21 18:46:06 [RateCDR] => 1 ) [2025-02-21 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:46:06' and `end` < '2025-02-21 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:46:18] Production.INFO: count ==3471 [2025-02-21 18:46:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:46:06 - End Time 2025-02-21 18:46:06 [2025-02-21 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526997', 'tblTempUsageDetail_20' ) start [2025-02-21 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14526997', 'tblTempUsageDetail_20' ) end [2025-02-21 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526997', 'tblTempVendorCDR_20' ) start [2025-02-21 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14526997', 'tblTempVendorCDR_20' ) end [2025-02-21 18:46:19] Production.INFO: ProcessCDR(1,14526997,1,1,2) [2025-02-21 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14526997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14526997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14526997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14526997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526997', 'tblTempUsageDetail_20' ) start [2025-02-21 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14526997', 'tblTempUsageDetail_20' ) end [2025-02-21 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:46:23] Production.INFO: ==591== Releasing lock... [2025-02-21 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:46:23] Production.INFO: 54 MB #Memory Used# [2025-02-21 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:47:05 [end_date_ymd] => 2025-02-21 18:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:47:05' and `end` < '2025-02-21 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-21 18:47:18] Production.INFO: count ==3456 [2025-02-21 18:47:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:47:05 - End Time 2025-02-21 18:47:05 [2025-02-21 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527002', 'tblTempUsageDetail_20' ) start [2025-02-21 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527002', 'tblTempUsageDetail_20' ) end [2025-02-21 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527002', 'tblTempVendorCDR_20' ) start [2025-02-21 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527002', 'tblTempVendorCDR_20' ) end [2025-02-21 18:47:19] Production.INFO: ProcessCDR(1,14527002,1,1,2) [2025-02-21 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527002', 'tblTempUsageDetail_20' ) start [2025-02-21 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527002', 'tblTempUsageDetail_20' ) end [2025-02-21 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:47:22] Production.INFO: ==708== Releasing lock... [2025-02-21 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:47:22] Production.INFO: 54.75 MB #Memory Used# [2025-02-21 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:48:05 [end_date_ymd] => 2025-02-21 18:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:48:05' and `end` < '2025-02-21 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-21 18:48:17] Production.INFO: count ==3441 [2025-02-21 18:48:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:48:05 - End Time 2025-02-21 18:48:05 [2025-02-21 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527007', 'tblTempUsageDetail_20' ) start [2025-02-21 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527007', 'tblTempUsageDetail_20' ) end [2025-02-21 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527007', 'tblTempVendorCDR_20' ) start [2025-02-21 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527007', 'tblTempVendorCDR_20' ) end [2025-02-21 18:48:19] Production.INFO: ProcessCDR(1,14527007,1,1,2) [2025-02-21 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527007', 'tblTempUsageDetail_20' ) start [2025-02-21 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527007', 'tblTempUsageDetail_20' ) end [2025-02-21 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:48:23] Production.INFO: ==783== Releasing lock... [2025-02-21 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:48:23] Production.INFO: 54.75 MB #Memory Used# [2025-02-21 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:49:05 [end_date_ymd] => 2025-02-21 18:49:05 [RateCDR] => 1 ) [2025-02-21 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:49:05' and `end` < '2025-02-21 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:49:17] Production.INFO: count ==3418 [2025-02-21 18:49:18] Production.ERROR: pbx CDR StartTime 2025-02-21 15:49:05 - End Time 2025-02-21 18:49:05 [2025-02-21 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527012', 'tblTempUsageDetail_20' ) start [2025-02-21 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527012', 'tblTempUsageDetail_20' ) end [2025-02-21 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527012', 'tblTempVendorCDR_20' ) start [2025-02-21 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527012', 'tblTempVendorCDR_20' ) end [2025-02-21 18:49:18] Production.INFO: ProcessCDR(1,14527012,1,1,2) [2025-02-21 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527012', 'tblTempUsageDetail_20' ) start [2025-02-21 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527012', 'tblTempUsageDetail_20' ) end [2025-02-21 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:49:22] Production.INFO: ==856== Releasing lock... [2025-02-21 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:49:22] Production.INFO: 53.75 MB #Memory Used# [2025-02-21 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:50:06 [end_date_ymd] => 2025-02-21 18:50:06 [RateCDR] => 1 ) [2025-02-21 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:50:06' and `end` < '2025-02-21 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:50:18] Production.INFO: count ==3405 [2025-02-21 18:50:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:50:06 - End Time 2025-02-21 18:50:06 [2025-02-21 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527018', 'tblTempUsageDetail_20' ) start [2025-02-21 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527018', 'tblTempUsageDetail_20' ) end [2025-02-21 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527018', 'tblTempVendorCDR_20' ) start [2025-02-21 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527018', 'tblTempVendorCDR_20' ) end [2025-02-21 18:50:19] Production.INFO: ProcessCDR(1,14527018,1,1,2) [2025-02-21 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527018', 'tblTempUsageDetail_20' ) start [2025-02-21 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527018', 'tblTempUsageDetail_20' ) end [2025-02-21 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:50:23] Production.INFO: ==928== Releasing lock... [2025-02-21 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:50:23] Production.INFO: 53.75 MB #Memory Used# [2025-02-21 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:51:05 [end_date_ymd] => 2025-02-21 18:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:51:05' and `end` < '2025-02-21 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-21 18:51:18] Production.INFO: count ==3400 [2025-02-21 18:51:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:51:05 - End Time 2025-02-21 18:51:05 [2025-02-21 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527023', 'tblTempUsageDetail_20' ) start [2025-02-21 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527023', 'tblTempUsageDetail_20' ) end [2025-02-21 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527023', 'tblTempVendorCDR_20' ) start [2025-02-21 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527023', 'tblTempVendorCDR_20' ) end [2025-02-21 18:51:19] Production.INFO: ProcessCDR(1,14527023,1,1,2) [2025-02-21 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527023', 'tblTempUsageDetail_20' ) start [2025-02-21 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527023', 'tblTempUsageDetail_20' ) end [2025-02-21 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:51:24] Production.INFO: ==1003== Releasing lock... [2025-02-21 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:51:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-21 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:52:06 [end_date_ymd] => 2025-02-21 18:52:06 [RateCDR] => 1 ) [2025-02-21 18: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-21 15:52:06' and `end` < '2025-02-21 18: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-21 18:52:18] Production.INFO: count ==3390 [2025-02-21 18:52:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:52:06 - End Time 2025-02-21 18:52:06 [2025-02-21 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527028', 'tblTempUsageDetail_20' ) start [2025-02-21 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527028', 'tblTempUsageDetail_20' ) end [2025-02-21 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527028', 'tblTempVendorCDR_20' ) start [2025-02-21 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527028', 'tblTempVendorCDR_20' ) end [2025-02-21 18:52:19] Production.INFO: ProcessCDR(1,14527028,1,1,2) [2025-02-21 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527028', 'tblTempUsageDetail_20' ) start [2025-02-21 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527028', 'tblTempUsageDetail_20' ) end [2025-02-21 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:52:23] Production.INFO: ==1074== Releasing lock... [2025-02-21 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:52:23] Production.INFO: 53.5 MB #Memory Used# [2025-02-21 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:53:05 [end_date_ymd] => 2025-02-21 18:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:53:05' and `end` < '2025-02-21 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-21 18:53:18] Production.INFO: count ==3401 [2025-02-21 18:53:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:53:05 - End Time 2025-02-21 18:53:05 [2025-02-21 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527033', 'tblTempUsageDetail_20' ) start [2025-02-21 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527033', 'tblTempUsageDetail_20' ) end [2025-02-21 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527033', 'tblTempVendorCDR_20' ) start [2025-02-21 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527033', 'tblTempVendorCDR_20' ) end [2025-02-21 18:53:19] Production.INFO: ProcessCDR(1,14527033,1,1,2) [2025-02-21 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527033', 'tblTempUsageDetail_20' ) start [2025-02-21 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527033', 'tblTempUsageDetail_20' ) end [2025-02-21 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:53:24] Production.INFO: ==1147== Releasing lock... [2025-02-21 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:53:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-21 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:54:05 [end_date_ymd] => 2025-02-21 18:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:54:05' and `end` < '2025-02-21 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-21 18:54:18] Production.INFO: count ==3390 [2025-02-21 18:54:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:54:05 - End Time 2025-02-21 18:54:05 [2025-02-21 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527038', 'tblTempUsageDetail_20' ) start [2025-02-21 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527038', 'tblTempUsageDetail_20' ) end [2025-02-21 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527038', 'tblTempVendorCDR_20' ) start [2025-02-21 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527038', 'tblTempVendorCDR_20' ) end [2025-02-21 18:54:19] Production.INFO: ProcessCDR(1,14527038,1,1,2) [2025-02-21 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527038', 'tblTempUsageDetail_20' ) start [2025-02-21 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527038', 'tblTempUsageDetail_20' ) end [2025-02-21 18:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:54:22] Production.INFO: ==1221== Releasing lock... [2025-02-21 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:54:22] Production.INFO: 54 MB #Memory Used# [2025-02-21 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:55:05 [end_date_ymd] => 2025-02-21 18:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:55:05' and `end` < '2025-02-21 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-21 18:55:17] Production.INFO: count ==3384 [2025-02-21 18:55:18] Production.ERROR: pbx CDR StartTime 2025-02-21 15:55:05 - End Time 2025-02-21 18:55:05 [2025-02-21 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527043', 'tblTempUsageDetail_20' ) start [2025-02-21 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527043', 'tblTempUsageDetail_20' ) end [2025-02-21 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527043', 'tblTempVendorCDR_20' ) start [2025-02-21 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527043', 'tblTempVendorCDR_20' ) end [2025-02-21 18:55:18] Production.INFO: ProcessCDR(1,14527043,1,1,2) [2025-02-21 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527043', 'tblTempUsageDetail_20' ) start [2025-02-21 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527043', 'tblTempUsageDetail_20' ) end [2025-02-21 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:55:23] Production.INFO: ==1347== Releasing lock... [2025-02-21 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:55:23] Production.INFO: 53.5 MB #Memory Used# [2025-02-21 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:56:05 [end_date_ymd] => 2025-02-21 18:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:56:05' and `end` < '2025-02-21 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-21 18:56:18] Production.INFO: count ==3377 [2025-02-21 18:56:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:56:05 - End Time 2025-02-21 18:56:05 [2025-02-21 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527048', 'tblTempUsageDetail_20' ) start [2025-02-21 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527048', 'tblTempUsageDetail_20' ) end [2025-02-21 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527048', 'tblTempVendorCDR_20' ) start [2025-02-21 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527048', 'tblTempVendorCDR_20' ) end [2025-02-21 18:56:19] Production.INFO: ProcessCDR(1,14527048,1,1,2) [2025-02-21 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527048', 'tblTempUsageDetail_20' ) start [2025-02-21 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527048', 'tblTempUsageDetail_20' ) end [2025-02-21 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:56:23] Production.INFO: ==1424== Releasing lock... [2025-02-21 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:56:23] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:57:05 [end_date_ymd] => 2025-02-21 18:57:05 [RateCDR] => 1 ) [2025-02-21 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 15:57:05' and `end` < '2025-02-21 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 18:57:17] Production.INFO: count ==3367 [2025-02-21 18:57:18] Production.ERROR: pbx CDR StartTime 2025-02-21 15:57:05 - End Time 2025-02-21 18:57:05 [2025-02-21 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527053', 'tblTempUsageDetail_20' ) start [2025-02-21 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527053', 'tblTempUsageDetail_20' ) end [2025-02-21 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527053', 'tblTempVendorCDR_20' ) start [2025-02-21 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527053', 'tblTempVendorCDR_20' ) end [2025-02-21 18:57:18] Production.INFO: ProcessCDR(1,14527053,1,1,2) [2025-02-21 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527053', 'tblTempUsageDetail_20' ) start [2025-02-21 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527053', 'tblTempUsageDetail_20' ) end [2025-02-21 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:57:23] Production.INFO: ==1496== Releasing lock... [2025-02-21 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:57:23] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:58:05 [end_date_ymd] => 2025-02-21 18:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:58:05' and `end` < '2025-02-21 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-21 18:58:17] Production.INFO: count ==3348 [2025-02-21 18:58:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:58:05 - End Time 2025-02-21 18:58:05 [2025-02-21 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527058', 'tblTempUsageDetail_20' ) start [2025-02-21 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527058', 'tblTempUsageDetail_20' ) end [2025-02-21 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527058', 'tblTempVendorCDR_20' ) start [2025-02-21 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527058', 'tblTempVendorCDR_20' ) end [2025-02-21 18:58:19] Production.INFO: ProcessCDR(1,14527058,1,1,2) [2025-02-21 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527058', 'tblTempUsageDetail_20' ) start [2025-02-21 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527058', 'tblTempUsageDetail_20' ) end [2025-02-21 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:58:23] Production.INFO: ==1607== Releasing lock... [2025-02-21 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:58:23] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 15:59:05 [end_date_ymd] => 2025-02-21 18:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 15:59:05' and `end` < '2025-02-21 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-21 18:59:18] Production.INFO: count ==3340 [2025-02-21 18:59:19] Production.ERROR: pbx CDR StartTime 2025-02-21 15:59:05 - End Time 2025-02-21 18:59:05 [2025-02-21 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527063', 'tblTempUsageDetail_20' ) start [2025-02-21 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527063', 'tblTempUsageDetail_20' ) end [2025-02-21 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527063', 'tblTempVendorCDR_20' ) start [2025-02-21 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527063', 'tblTempVendorCDR_20' ) end [2025-02-21 18:59:19] Production.INFO: ProcessCDR(1,14527063,1,1,2) [2025-02-21 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527063', 'tblTempUsageDetail_20' ) start [2025-02-21 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527063', 'tblTempUsageDetail_20' ) end [2025-02-21 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 18:59:22] Production.INFO: ==1680== Releasing lock... [2025-02-21 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 18:59:22] Production.INFO: 53 MB #Memory Used# [2025-02-21 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:00:06 [end_date_ymd] => 2025-02-21 19:00:06 [RateCDR] => 1 ) [2025-02-21 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-21 16:00:06' and `end` < '2025-02-21 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-21 19:00:19] Production.INFO: count ==3313 [2025-02-21 19:00:20] Production.ERROR: pbx CDR StartTime 2025-02-21 16:00:06 - End Time 2025-02-21 19:00:06 [2025-02-21 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527069', 'tblTempUsageDetail_20' ) start [2025-02-21 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527069', 'tblTempUsageDetail_20' ) end [2025-02-21 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527069', 'tblTempVendorCDR_20' ) start [2025-02-21 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527069', 'tblTempVendorCDR_20' ) end [2025-02-21 19:00:20] Production.INFO: ProcessCDR(1,14527069,1,1,2) [2025-02-21 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527069', 'tblTempUsageDetail_20' ) start [2025-02-21 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527069', 'tblTempUsageDetail_20' ) end [2025-02-21 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:00:25] Production.INFO: ==1759== Releasing lock... [2025-02-21 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:00:25] Production.INFO: 53 MB #Memory Used# [2025-02-21 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:01:05 [end_date_ymd] => 2025-02-21 19:01:05 [RateCDR] => 1 ) [2025-02-21 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:01:05' and `end` < '2025-02-21 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:01:17] Production.INFO: count ==3282 [2025-02-21 19:01:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:01:05 - End Time 2025-02-21 19:01:05 [2025-02-21 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527074', 'tblTempUsageDetail_20' ) start [2025-02-21 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527074', 'tblTempUsageDetail_20' ) end [2025-02-21 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527074', 'tblTempVendorCDR_20' ) start [2025-02-21 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527074', 'tblTempVendorCDR_20' ) end [2025-02-21 19:01:18] Production.INFO: ProcessCDR(1,14527074,1,1,2) [2025-02-21 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527074', 'tblTempUsageDetail_20' ) start [2025-02-21 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527074', 'tblTempUsageDetail_20' ) end [2025-02-21 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:01:23] Production.INFO: ==1936== Releasing lock... [2025-02-21 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:01:23] Production.INFO: 52.5 MB #Memory Used# [2025-02-21 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:02:06 [end_date_ymd] => 2025-02-21 19:02:06 [RateCDR] => 1 ) [2025-02-21 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:02:06' and `end` < '2025-02-21 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:02:18] Production.INFO: count ==3281 [2025-02-21 19:02:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:02:06 - End Time 2025-02-21 19:02:06 [2025-02-21 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527079', 'tblTempUsageDetail_20' ) start [2025-02-21 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527079', 'tblTempUsageDetail_20' ) end [2025-02-21 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527079', 'tblTempVendorCDR_20' ) start [2025-02-21 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527079', 'tblTempVendorCDR_20' ) end [2025-02-21 19:02:19] Production.INFO: ProcessCDR(1,14527079,1,1,2) [2025-02-21 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527079', 'tblTempUsageDetail_20' ) start [2025-02-21 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527079', 'tblTempUsageDetail_20' ) end [2025-02-21 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:02:25] Production.INFO: ==2017== Releasing lock... [2025-02-21 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:02:25] Production.INFO: 52.75 MB #Memory Used# [2025-02-21 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:03:06 [end_date_ymd] => 2025-02-21 19:03:06 [RateCDR] => 1 ) [2025-02-21 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:03:06' and `end` < '2025-02-21 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:03:18] Production.INFO: count ==3292 [2025-02-21 19:03:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:03:06 - End Time 2025-02-21 19:03:06 [2025-02-21 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527084', 'tblTempUsageDetail_20' ) start [2025-02-21 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527084', 'tblTempUsageDetail_20' ) end [2025-02-21 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527084', 'tblTempVendorCDR_20' ) start [2025-02-21 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527084', 'tblTempVendorCDR_20' ) end [2025-02-21 19:03:19] Production.INFO: ProcessCDR(1,14527084,1,1,2) [2025-02-21 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527084', 'tblTempUsageDetail_20' ) start [2025-02-21 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527084', 'tblTempUsageDetail_20' ) end [2025-02-21 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:03:23] Production.INFO: ==2096== Releasing lock... [2025-02-21 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:03:23] Production.INFO: 52.5 MB #Memory Used# [2025-02-21 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:04:05 [end_date_ymd] => 2025-02-21 19:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:04:05' and `end` < '2025-02-21 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-21 19:04:17] Production.INFO: count ==3276 [2025-02-21 19:04:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:04:05 - End Time 2025-02-21 19:04:05 [2025-02-21 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527089', 'tblTempUsageDetail_20' ) start [2025-02-21 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527089', 'tblTempUsageDetail_20' ) end [2025-02-21 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527089', 'tblTempVendorCDR_20' ) start [2025-02-21 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527089', 'tblTempVendorCDR_20' ) end [2025-02-21 19:04:18] Production.INFO: ProcessCDR(1,14527089,1,1,2) [2025-02-21 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527089', 'tblTempUsageDetail_20' ) start [2025-02-21 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527089', 'tblTempUsageDetail_20' ) end [2025-02-21 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:04:22] Production.INFO: ==2173== Releasing lock... [2025-02-21 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:04:22] Production.INFO: 52.5 MB #Memory Used# [2025-02-21 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:05:06 [end_date_ymd] => 2025-02-21 19:05:06 [RateCDR] => 1 ) [2025-02-21 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-21 16:05:06' and `end` < '2025-02-21 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-21 19:05:18] Production.INFO: count ==3275 [2025-02-21 19:05:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:05:06 - End Time 2025-02-21 19:05:06 [2025-02-21 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527094', 'tblTempUsageDetail_20' ) start [2025-02-21 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527094', 'tblTempUsageDetail_20' ) end [2025-02-21 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527094', 'tblTempVendorCDR_20' ) start [2025-02-21 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527094', 'tblTempVendorCDR_20' ) end [2025-02-21 19:05:19] Production.INFO: ProcessCDR(1,14527094,1,1,2) [2025-02-21 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527094', 'tblTempUsageDetail_20' ) start [2025-02-21 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527094', 'tblTempUsageDetail_20' ) end [2025-02-21 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:05:24] Production.INFO: ==2332== Releasing lock... [2025-02-21 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:05:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-21 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:06:05 [end_date_ymd] => 2025-02-21 19:06:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:06:05' and `end` < '2025-02-21 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-21 19:06:17] Production.INFO: count ==3268 [2025-02-21 19:06:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:06:05 - End Time 2025-02-21 19:06:05 [2025-02-21 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527099', 'tblTempUsageDetail_20' ) start [2025-02-21 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527099', 'tblTempUsageDetail_20' ) end [2025-02-21 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527099', 'tblTempVendorCDR_20' ) start [2025-02-21 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527099', 'tblTempVendorCDR_20' ) end [2025-02-21 19:06:18] Production.INFO: ProcessCDR(1,14527099,1,1,2) [2025-02-21 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527099', 'tblTempUsageDetail_20' ) start [2025-02-21 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527099', 'tblTempUsageDetail_20' ) end [2025-02-21 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:06:22] Production.INFO: ==2414== Releasing lock... [2025-02-21 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:06:22] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:07:05 [end_date_ymd] => 2025-02-21 19:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:07:05' and `end` < '2025-02-21 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-21 19:07:18] Production.INFO: count ==3260 [2025-02-21 19:07:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:07:05 - End Time 2025-02-21 19:07:05 [2025-02-21 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527104', 'tblTempUsageDetail_20' ) start [2025-02-21 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527104', 'tblTempUsageDetail_20' ) end [2025-02-21 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527104', 'tblTempVendorCDR_20' ) start [2025-02-21 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527104', 'tblTempVendorCDR_20' ) end [2025-02-21 19:07:19] Production.INFO: ProcessCDR(1,14527104,1,1,2) [2025-02-21 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527104', 'tblTempUsageDetail_20' ) start [2025-02-21 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527104', 'tblTempUsageDetail_20' ) end [2025-02-21 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:07:24] Production.INFO: ==2491== Releasing lock... [2025-02-21 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:07:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 19:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:08:04 [end_date_ymd] => 2025-02-21 19:08:04 [RateCDR] => 1 ) [2025-02-21 19:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:08:04' and `end` < '2025-02-21 19:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:08:17] Production.INFO: count ==3257 [2025-02-21 19:08:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:08:04 - End Time 2025-02-21 19:08:04 [2025-02-21 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527109', 'tblTempUsageDetail_20' ) start [2025-02-21 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527109', 'tblTempUsageDetail_20' ) end [2025-02-21 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527109', 'tblTempVendorCDR_20' ) start [2025-02-21 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527109', 'tblTempVendorCDR_20' ) end [2025-02-21 19:08:18] Production.INFO: ProcessCDR(1,14527109,1,1,2) [2025-02-21 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527109', 'tblTempUsageDetail_20' ) start [2025-02-21 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527109', 'tblTempUsageDetail_20' ) end [2025-02-21 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:08:22] Production.INFO: ==2644== Releasing lock... [2025-02-21 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:08:22] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:09:05 [end_date_ymd] => 2025-02-21 19:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:09:05' and `end` < '2025-02-21 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-21 19:09:18] Production.INFO: count ==3258 [2025-02-21 19:09:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:09:05 - End Time 2025-02-21 19:09:05 [2025-02-21 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527114', 'tblTempUsageDetail_20' ) start [2025-02-21 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527114', 'tblTempUsageDetail_20' ) end [2025-02-21 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527114', 'tblTempVendorCDR_20' ) start [2025-02-21 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527114', 'tblTempVendorCDR_20' ) end [2025-02-21 19:09:19] Production.INFO: ProcessCDR(1,14527114,1,1,2) [2025-02-21 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527114', 'tblTempUsageDetail_20' ) start [2025-02-21 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527114', 'tblTempUsageDetail_20' ) end [2025-02-21 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:09:22] Production.INFO: ==2723== Releasing lock... [2025-02-21 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:09:22] Production.INFO: 52.5 MB #Memory Used# [2025-02-21 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:10:06 [end_date_ymd] => 2025-02-21 19:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 16:10:06' and `end` < '2025-02-21 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-21 19:10:18] Production.INFO: count ==3260 [2025-02-21 19:10:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:10:06 - End Time 2025-02-21 19:10:06 [2025-02-21 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527120', 'tblTempUsageDetail_20' ) start [2025-02-21 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527120', 'tblTempUsageDetail_20' ) end [2025-02-21 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527120', 'tblTempVendorCDR_20' ) start [2025-02-21 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527120', 'tblTempVendorCDR_20' ) end [2025-02-21 19:10:20] Production.INFO: ProcessCDR(1,14527120,1,1,2) [2025-02-21 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527120', 'tblTempUsageDetail_20' ) start [2025-02-21 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527120', 'tblTempUsageDetail_20' ) end [2025-02-21 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:10:24] Production.INFO: ==2802== Releasing lock... [2025-02-21 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:10:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-21 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:11:05 [end_date_ymd] => 2025-02-21 19:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:11:05' and `end` < '2025-02-21 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-21 19:11:17] Production.INFO: count ==3212 [2025-02-21 19:11:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:11:05 - End Time 2025-02-21 19:11:05 [2025-02-21 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527125', 'tblTempUsageDetail_20' ) start [2025-02-21 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527125', 'tblTempUsageDetail_20' ) end [2025-02-21 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527125', 'tblTempVendorCDR_20' ) start [2025-02-21 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527125', 'tblTempVendorCDR_20' ) end [2025-02-21 19:11:18] Production.INFO: ProcessCDR(1,14527125,1,1,2) [2025-02-21 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527125', 'tblTempUsageDetail_20' ) start [2025-02-21 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527125', 'tblTempUsageDetail_20' ) end [2025-02-21 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:11:22] Production.INFO: ==2922== Releasing lock... [2025-02-21 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:11:22] Production.INFO: 53 MB #Memory Used# [2025-02-21 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:12:05 [end_date_ymd] => 2025-02-21 19:12:05 [RateCDR] => 1 ) [2025-02-21 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:12:05' and `end` < '2025-02-21 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:12:17] Production.INFO: count ==3192 [2025-02-21 19:12:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:12:05 - End Time 2025-02-21 19:12:05 [2025-02-21 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527130', 'tblTempUsageDetail_20' ) start [2025-02-21 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527130', 'tblTempUsageDetail_20' ) end [2025-02-21 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527130', 'tblTempVendorCDR_20' ) start [2025-02-21 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527130', 'tblTempVendorCDR_20' ) end [2025-02-21 19:12:18] Production.INFO: ProcessCDR(1,14527130,1,1,2) [2025-02-21 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527130', 'tblTempUsageDetail_20' ) start [2025-02-21 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527130', 'tblTempUsageDetail_20' ) end [2025-02-21 19:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:12:21] Production.INFO: ==3078== Releasing lock... [2025-02-21 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:12:21] Production.INFO: 52.5 MB #Memory Used# [2025-02-21 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:13:06 [end_date_ymd] => 2025-02-21 19:13:06 [RateCDR] => 1 ) [2025-02-21 19: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-21 16:13:06' and `end` < '2025-02-21 19: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-21 19:13:18] Production.INFO: count ==3162 [2025-02-21 19:13:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:13:06 - End Time 2025-02-21 19:13:06 [2025-02-21 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527135', 'tblTempUsageDetail_20' ) start [2025-02-21 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527135', 'tblTempUsageDetail_20' ) end [2025-02-21 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527135', 'tblTempVendorCDR_20' ) start [2025-02-21 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527135', 'tblTempVendorCDR_20' ) end [2025-02-21 19:13:19] Production.INFO: ProcessCDR(1,14527135,1,1,2) [2025-02-21 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527135', 'tblTempUsageDetail_20' ) start [2025-02-21 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527135', 'tblTempUsageDetail_20' ) end [2025-02-21 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:13:24] Production.INFO: ==3158== Releasing lock... [2025-02-21 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:13:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-21 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:14:05 [end_date_ymd] => 2025-02-21 19:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:14:05' and `end` < '2025-02-21 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-21 19:14:17] Production.INFO: count ==3145 [2025-02-21 19:14:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:14:05 - End Time 2025-02-21 19:14:05 [2025-02-21 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527140', 'tblTempUsageDetail_20' ) start [2025-02-21 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527140', 'tblTempUsageDetail_20' ) end [2025-02-21 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527140', 'tblTempVendorCDR_20' ) start [2025-02-21 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527140', 'tblTempVendorCDR_20' ) end [2025-02-21 19:14:18] Production.INFO: ProcessCDR(1,14527140,1,1,2) [2025-02-21 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527140', 'tblTempUsageDetail_20' ) start [2025-02-21 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527140', 'tblTempUsageDetail_20' ) end [2025-02-21 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:14:22] Production.INFO: ==3236== Releasing lock... [2025-02-21 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:14:22] Production.INFO: 51.5 MB #Memory Used# [2025-02-21 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:15:05 [end_date_ymd] => 2025-02-21 19:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:15:05' and `end` < '2025-02-21 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-21 19:15:17] Production.INFO: count ==3142 [2025-02-21 19:15:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:15:05 - End Time 2025-02-21 19:15:05 [2025-02-21 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527145', 'tblTempUsageDetail_20' ) start [2025-02-21 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527145', 'tblTempUsageDetail_20' ) end [2025-02-21 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527145', 'tblTempVendorCDR_20' ) start [2025-02-21 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527145', 'tblTempVendorCDR_20' ) end [2025-02-21 19:15:18] Production.INFO: ProcessCDR(1,14527145,1,1,2) [2025-02-21 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527145', 'tblTempUsageDetail_20' ) start [2025-02-21 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527145', 'tblTempUsageDetail_20' ) end [2025-02-21 19:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:15:21] Production.INFO: ==3395== Releasing lock... [2025-02-21 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:15:21] Production.INFO: 51.5 MB #Memory Used# [2025-02-21 19:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:16:04 [end_date_ymd] => 2025-02-21 19:16:04 [RateCDR] => 1 ) [2025-02-21 19: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-21 16:16:04' and `end` < '2025-02-21 19: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-21 19:16:17] Production.INFO: count ==3132 [2025-02-21 19:16:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:16:04 - End Time 2025-02-21 19:16:04 [2025-02-21 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527150', 'tblTempUsageDetail_20' ) start [2025-02-21 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527150', 'tblTempUsageDetail_20' ) end [2025-02-21 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527150', 'tblTempVendorCDR_20' ) start [2025-02-21 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527150', 'tblTempVendorCDR_20' ) end [2025-02-21 19:16:18] Production.INFO: ProcessCDR(1,14527150,1,1,2) [2025-02-21 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527150', 'tblTempUsageDetail_20' ) start [2025-02-21 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527150', 'tblTempUsageDetail_20' ) end [2025-02-21 19:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:16:21] Production.INFO: ==3479== Releasing lock... [2025-02-21 19:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:16:21] Production.INFO: 51.25 MB #Memory Used# [2025-02-21 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:17:05 [end_date_ymd] => 2025-02-21 19:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:17:05' and `end` < '2025-02-21 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-21 19:17:17] Production.INFO: count ==3122 [2025-02-21 19:17:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:17:05 - End Time 2025-02-21 19:17:05 [2025-02-21 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527155', 'tblTempUsageDetail_20' ) start [2025-02-21 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527155', 'tblTempUsageDetail_20' ) end [2025-02-21 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527155', 'tblTempVendorCDR_20' ) start [2025-02-21 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527155', 'tblTempVendorCDR_20' ) end [2025-02-21 19:17:19] Production.INFO: ProcessCDR(1,14527155,1,1,2) [2025-02-21 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527155', 'tblTempUsageDetail_20' ) start [2025-02-21 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527155', 'tblTempUsageDetail_20' ) end [2025-02-21 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:17:22] Production.INFO: ==3556== Releasing lock... [2025-02-21 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:17:22] Production.INFO: 51.25 MB #Memory Used# [2025-02-21 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:18:06 [end_date_ymd] => 2025-02-21 19:18:06 [RateCDR] => 1 ) [2025-02-21 19: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-21 16:18:06' and `end` < '2025-02-21 19: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-21 19:18:18] Production.INFO: count ==3093 [2025-02-21 19:18:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:18:06 - End Time 2025-02-21 19:18:06 [2025-02-21 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527159', 'tblTempUsageDetail_20' ) start [2025-02-21 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527159', 'tblTempUsageDetail_20' ) end [2025-02-21 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527159', 'tblTempVendorCDR_20' ) start [2025-02-21 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527159', 'tblTempVendorCDR_20' ) end [2025-02-21 19:18:19] Production.INFO: ProcessCDR(1,14527159,1,1,2) [2025-02-21 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527159', 'tblTempUsageDetail_20' ) start [2025-02-21 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527159', 'tblTempUsageDetail_20' ) end [2025-02-21 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:18:23] Production.INFO: ==3641== Releasing lock... [2025-02-21 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:18:23] Production.INFO: 51.5 MB #Memory Used# [2025-02-21 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:19:05 [end_date_ymd] => 2025-02-21 19:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:19:05' and `end` < '2025-02-21 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-21 19:19:18] Production.INFO: count ==3066 [2025-02-21 19:19:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:19:05 - End Time 2025-02-21 19:19:05 [2025-02-21 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527165', 'tblTempUsageDetail_20' ) start [2025-02-21 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527165', 'tblTempUsageDetail_20' ) end [2025-02-21 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527165', 'tblTempVendorCDR_20' ) start [2025-02-21 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527165', 'tblTempVendorCDR_20' ) end [2025-02-21 19:19:19] Production.INFO: ProcessCDR(1,14527165,1,1,2) [2025-02-21 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527165', 'tblTempUsageDetail_20' ) start [2025-02-21 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527165', 'tblTempUsageDetail_20' ) end [2025-02-21 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:19:22] Production.INFO: ==3720== Releasing lock... [2025-02-21 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:19:22] Production.INFO: 50.75 MB #Memory Used# [2025-02-21 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:20:06 [end_date_ymd] => 2025-02-21 19:20:06 [RateCDR] => 1 ) [2025-02-21 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:20:06' and `end` < '2025-02-21 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:20:18] Production.INFO: count ==3045 [2025-02-21 19:20:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:20:06 - End Time 2025-02-21 19:20:06 [2025-02-21 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527170', 'tblTempUsageDetail_20' ) start [2025-02-21 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527170', 'tblTempUsageDetail_20' ) end [2025-02-21 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527170', 'tblTempVendorCDR_20' ) start [2025-02-21 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527170', 'tblTempVendorCDR_20' ) end [2025-02-21 19:20:19] Production.INFO: ProcessCDR(1,14527170,1,1,2) [2025-02-21 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527170', 'tblTempUsageDetail_20' ) start [2025-02-21 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527170', 'tblTempUsageDetail_20' ) end [2025-02-21 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:20:23] Production.INFO: ==3802== Releasing lock... [2025-02-21 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:20:23] Production.INFO: 50.75 MB #Memory Used# [2025-02-21 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:21:05 [end_date_ymd] => 2025-02-21 19:21:05 [RateCDR] => 1 ) [2025-02-21 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:21:05' and `end` < '2025-02-21 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:21:17] Production.INFO: count ==3005 [2025-02-21 19:21:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:21:05 - End Time 2025-02-21 19:21:05 [2025-02-21 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527176', 'tblTempUsageDetail_20' ) start [2025-02-21 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527176', 'tblTempUsageDetail_20' ) end [2025-02-21 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527176', 'tblTempVendorCDR_20' ) start [2025-02-21 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527176', 'tblTempVendorCDR_20' ) end [2025-02-21 19:21:18] Production.INFO: ProcessCDR(1,14527176,1,1,2) [2025-02-21 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527176', 'tblTempUsageDetail_20' ) start [2025-02-21 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527176', 'tblTempUsageDetail_20' ) end [2025-02-21 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:21:22] Production.INFO: ==3884== Releasing lock... [2025-02-21 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:21:22] Production.INFO: 50.5 MB #Memory Used# [2025-02-21 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:22:05 [end_date_ymd] => 2025-02-21 19:22:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:22:05' and `end` < '2025-02-21 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-21 19:22:17] Production.INFO: count ==2995 [2025-02-21 19:22:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:22:05 - End Time 2025-02-21 19:22:05 [2025-02-21 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527181', 'tblTempUsageDetail_20' ) start [2025-02-21 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527181', 'tblTempUsageDetail_20' ) end [2025-02-21 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527181', 'tblTempVendorCDR_20' ) start [2025-02-21 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527181', 'tblTempVendorCDR_20' ) end [2025-02-21 19:22:18] Production.INFO: ProcessCDR(1,14527181,1,1,2) [2025-02-21 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527181', 'tblTempUsageDetail_20' ) start [2025-02-21 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527181', 'tblTempUsageDetail_20' ) end [2025-02-21 19:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:22:21] Production.INFO: ==3957== Releasing lock... [2025-02-21 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:22:21] Production.INFO: 50.5 MB #Memory Used# [2025-02-21 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:23:05 [end_date_ymd] => 2025-02-21 19:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:23:05' and `end` < '2025-02-21 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-21 19:23:17] Production.INFO: count ==2985 [2025-02-21 19:23:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:23:05 - End Time 2025-02-21 19:23:05 [2025-02-21 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527186', 'tblTempUsageDetail_20' ) start [2025-02-21 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527186', 'tblTempUsageDetail_20' ) end [2025-02-21 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527186', 'tblTempVendorCDR_20' ) start [2025-02-21 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527186', 'tblTempVendorCDR_20' ) end [2025-02-21 19:23:18] Production.INFO: ProcessCDR(1,14527186,1,1,2) [2025-02-21 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527186', 'tblTempUsageDetail_20' ) start [2025-02-21 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527186', 'tblTempUsageDetail_20' ) end [2025-02-21 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:23:22] Production.INFO: ==4036== Releasing lock... [2025-02-21 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:23:22] Production.INFO: 50.5 MB #Memory Used# [2025-02-21 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:24:06 [end_date_ymd] => 2025-02-21 19:24:06 [RateCDR] => 1 ) [2025-02-21 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:24:06' and `end` < '2025-02-21 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:24:18] Production.INFO: count ==2981 [2025-02-21 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:24:06 - End Time 2025-02-21 19:24:06 [2025-02-21 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527191', 'tblTempUsageDetail_20' ) start [2025-02-21 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527191', 'tblTempUsageDetail_20' ) end [2025-02-21 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527191', 'tblTempVendorCDR_20' ) start [2025-02-21 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527191', 'tblTempVendorCDR_20' ) end [2025-02-21 19:24:19] Production.INFO: ProcessCDR(1,14527191,1,1,2) [2025-02-21 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527191', 'tblTempUsageDetail_20' ) start [2025-02-21 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527191', 'tblTempUsageDetail_20' ) end [2025-02-21 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:24:24] Production.INFO: ==4114== Releasing lock... [2025-02-21 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:24:24] Production.INFO: 50.5 MB #Memory Used# [2025-02-21 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:25:05 [end_date_ymd] => 2025-02-21 19:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:25:05' and `end` < '2025-02-21 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-21 19:25:18] Production.INFO: count ==2970 [2025-02-21 19:25:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:25:05 - End Time 2025-02-21 19:25:05 [2025-02-21 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527196', 'tblTempUsageDetail_20' ) start [2025-02-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527196', 'tblTempUsageDetail_20' ) end [2025-02-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527196', 'tblTempVendorCDR_20' ) start [2025-02-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527196', 'tblTempVendorCDR_20' ) end [2025-02-21 19:25:18] Production.INFO: ProcessCDR(1,14527196,1,1,2) [2025-02-21 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527196', 'tblTempUsageDetail_20' ) start [2025-02-21 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527196', 'tblTempUsageDetail_20' ) end [2025-02-21 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:25:22] Production.INFO: ==4191== Releasing lock... [2025-02-21 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:25:22] Production.INFO: 50.25 MB #Memory Used# [2025-02-21 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:26:05 [end_date_ymd] => 2025-02-21 19:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:26:05' and `end` < '2025-02-21 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-21 19:26:18] Production.INFO: count ==2963 [2025-02-21 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:26:05 - End Time 2025-02-21 19:26:05 [2025-02-21 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527201', 'tblTempUsageDetail_20' ) start [2025-02-21 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527201', 'tblTempUsageDetail_20' ) end [2025-02-21 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527201', 'tblTempVendorCDR_20' ) start [2025-02-21 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527201', 'tblTempVendorCDR_20' ) end [2025-02-21 19:26:19] Production.INFO: ProcessCDR(1,14527201,1,1,2) [2025-02-21 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527201', 'tblTempUsageDetail_20' ) start [2025-02-21 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527201', 'tblTempUsageDetail_20' ) end [2025-02-21 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:26:23] Production.INFO: ==4309== Releasing lock... [2025-02-21 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:26:23] Production.INFO: 50 MB #Memory Used# [2025-02-21 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:27:05 [end_date_ymd] => 2025-02-21 19:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:27:05' and `end` < '2025-02-21 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-21 19:27:17] Production.INFO: count ==2947 [2025-02-21 19:27:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:27:05 - End Time 2025-02-21 19:27:05 [2025-02-21 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527206', 'tblTempUsageDetail_20' ) start [2025-02-21 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527206', 'tblTempUsageDetail_20' ) end [2025-02-21 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527206', 'tblTempVendorCDR_20' ) start [2025-02-21 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527206', 'tblTempVendorCDR_20' ) end [2025-02-21 19:27:18] Production.INFO: ProcessCDR(1,14527206,1,1,2) [2025-02-21 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527206', 'tblTempUsageDetail_20' ) start [2025-02-21 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527206', 'tblTempUsageDetail_20' ) end [2025-02-21 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:27:22] Production.INFO: ==4387== Releasing lock... [2025-02-21 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:27:22] Production.INFO: 50.25 MB #Memory Used# [2025-02-21 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:28:05 [end_date_ymd] => 2025-02-21 19:28:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:28:05' and `end` < '2025-02-21 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-21 19:28:18] Production.INFO: count ==2930 [2025-02-21 19:28:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:28:05 - End Time 2025-02-21 19:28:05 [2025-02-21 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527211', 'tblTempUsageDetail_20' ) start [2025-02-21 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527211', 'tblTempUsageDetail_20' ) end [2025-02-21 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527211', 'tblTempVendorCDR_20' ) start [2025-02-21 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527211', 'tblTempVendorCDR_20' ) end [2025-02-21 19:28:19] Production.INFO: ProcessCDR(1,14527211,1,1,2) [2025-02-21 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527211', 'tblTempUsageDetail_20' ) start [2025-02-21 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527211', 'tblTempUsageDetail_20' ) end [2025-02-21 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:28:22] Production.INFO: ==4462== Releasing lock... [2025-02-21 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:28:22] Production.INFO: 50 MB #Memory Used# [2025-02-21 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:29:05 [end_date_ymd] => 2025-02-21 19:29:05 [RateCDR] => 1 ) [2025-02-21 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:29:05' and `end` < '2025-02-21 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:29:17] Production.INFO: count ==2926 [2025-02-21 19:29:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:29:05 - End Time 2025-02-21 19:29:05 [2025-02-21 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527216', 'tblTempUsageDetail_20' ) start [2025-02-21 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527216', 'tblTempUsageDetail_20' ) end [2025-02-21 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527216', 'tblTempVendorCDR_20' ) start [2025-02-21 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527216', 'tblTempVendorCDR_20' ) end [2025-02-21 19:29:18] Production.INFO: ProcessCDR(1,14527216,1,1,2) [2025-02-21 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527216', 'tblTempUsageDetail_20' ) start [2025-02-21 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527216', 'tblTempUsageDetail_20' ) end [2025-02-21 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:29:22] Production.INFO: ==4543== Releasing lock... [2025-02-21 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:29:22] Production.INFO: 50 MB #Memory Used# [2025-02-21 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:30:06 [end_date_ymd] => 2025-02-21 19:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 16:30:06' and `end` < '2025-02-21 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-21 19:30:18] Production.INFO: count ==2917 [2025-02-21 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:30:06 - End Time 2025-02-21 19:30:06 [2025-02-21 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527221', 'tblTempUsageDetail_20' ) start [2025-02-21 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527221', 'tblTempUsageDetail_20' ) end [2025-02-21 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527221', 'tblTempVendorCDR_20' ) start [2025-02-21 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527221', 'tblTempVendorCDR_20' ) end [2025-02-21 19:30:19] Production.INFO: ProcessCDR(1,14527221,1,1,2) [2025-02-21 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527221', 'tblTempUsageDetail_20' ) start [2025-02-21 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527221', 'tblTempUsageDetail_20' ) end [2025-02-21 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:30:24] Production.INFO: ==4631== Releasing lock... [2025-02-21 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:30:24] Production.INFO: 50 MB #Memory Used# [2025-02-21 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:31:05 [end_date_ymd] => 2025-02-21 19:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:31:05' and `end` < '2025-02-21 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-21 19:31:17] Production.INFO: count ==2910 [2025-02-21 19:31:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:31:05 - End Time 2025-02-21 19:31:05 [2025-02-21 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527227', 'tblTempUsageDetail_20' ) start [2025-02-21 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527227', 'tblTempUsageDetail_20' ) end [2025-02-21 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527227', 'tblTempVendorCDR_20' ) start [2025-02-21 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527227', 'tblTempVendorCDR_20' ) end [2025-02-21 19:31:18] Production.INFO: ProcessCDR(1,14527227,1,1,2) [2025-02-21 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527227', 'tblTempUsageDetail_20' ) start [2025-02-21 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527227', 'tblTempUsageDetail_20' ) end [2025-02-21 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:31:22] Production.INFO: ==4713== Releasing lock... [2025-02-21 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:31:22] Production.INFO: 50 MB #Memory Used# [2025-02-21 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:32:05 [end_date_ymd] => 2025-02-21 19:32:05 [RateCDR] => 1 ) [2025-02-21 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:32:05' and `end` < '2025-02-21 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:32:17] Production.INFO: count ==2906 [2025-02-21 19:32:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:32:05 - End Time 2025-02-21 19:32:05 [2025-02-21 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527232', 'tblTempUsageDetail_20' ) start [2025-02-21 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527232', 'tblTempUsageDetail_20' ) end [2025-02-21 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527232', 'tblTempVendorCDR_20' ) start [2025-02-21 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527232', 'tblTempVendorCDR_20' ) end [2025-02-21 19:32:18] Production.INFO: ProcessCDR(1,14527232,1,1,2) [2025-02-21 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527232', 'tblTempUsageDetail_20' ) start [2025-02-21 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527232', 'tblTempUsageDetail_20' ) end [2025-02-21 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:32:23] Production.INFO: ==4791== Releasing lock... [2025-02-21 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:32:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-21 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:33:05 [end_date_ymd] => 2025-02-21 19:33:05 [RateCDR] => 1 ) [2025-02-21 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:33:05' and `end` < '2025-02-21 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:33:17] Production.INFO: count ==2886 [2025-02-21 19:33:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:33:05 - End Time 2025-02-21 19:33:05 [2025-02-21 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527237', 'tblTempUsageDetail_20' ) start [2025-02-21 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527237', 'tblTempUsageDetail_20' ) end [2025-02-21 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527237', 'tblTempVendorCDR_20' ) start [2025-02-21 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527237', 'tblTempVendorCDR_20' ) end [2025-02-21 19:33:18] Production.INFO: ProcessCDR(1,14527237,1,1,2) [2025-02-21 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527237', 'tblTempUsageDetail_20' ) start [2025-02-21 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527237', 'tblTempUsageDetail_20' ) end [2025-02-21 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:33:21] Production.INFO: ==4871== Releasing lock... [2025-02-21 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:33:21] Production.INFO: 49.75 MB #Memory Used# [2025-02-21 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:34:05 [end_date_ymd] => 2025-02-21 19:34:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:34:05' and `end` < '2025-02-21 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-21 19:34:18] Production.INFO: count ==2858 [2025-02-21 19:34:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:34:05 - End Time 2025-02-21 19:34:05 [2025-02-21 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527242', 'tblTempUsageDetail_20' ) start [2025-02-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527242', 'tblTempUsageDetail_20' ) end [2025-02-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527242', 'tblTempVendorCDR_20' ) start [2025-02-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527242', 'tblTempVendorCDR_20' ) end [2025-02-21 19:34:18] Production.INFO: ProcessCDR(1,14527242,1,1,2) [2025-02-21 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527242', 'tblTempUsageDetail_20' ) start [2025-02-21 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527242', 'tblTempUsageDetail_20' ) end [2025-02-21 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:34:22] Production.INFO: ==4946== Releasing lock... [2025-02-21 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:34:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-21 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:35:05 [end_date_ymd] => 2025-02-21 19:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:35:05' and `end` < '2025-02-21 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-21 19:35:17] Production.INFO: count ==2835 [2025-02-21 19:35:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:35:05 - End Time 2025-02-21 19:35:05 [2025-02-21 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527247', 'tblTempUsageDetail_20' ) start [2025-02-21 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527247', 'tblTempUsageDetail_20' ) end [2025-02-21 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527247', 'tblTempVendorCDR_20' ) start [2025-02-21 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527247', 'tblTempVendorCDR_20' ) end [2025-02-21 19:35:18] Production.INFO: ProcessCDR(1,14527247,1,1,2) [2025-02-21 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527247', 'tblTempUsageDetail_20' ) start [2025-02-21 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527247', 'tblTempUsageDetail_20' ) end [2025-02-21 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:35:22] Production.INFO: ==5020== Releasing lock... [2025-02-21 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:35:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-21 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:36:05 [end_date_ymd] => 2025-02-21 19:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:36:05' and `end` < '2025-02-21 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-21 19:36:17] Production.INFO: count ==2821 [2025-02-21 19:36:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:36:05 - End Time 2025-02-21 19:36:05 [2025-02-21 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527252', 'tblTempUsageDetail_20' ) start [2025-02-21 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527252', 'tblTempUsageDetail_20' ) end [2025-02-21 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527252', 'tblTempVendorCDR_20' ) start [2025-02-21 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527252', 'tblTempVendorCDR_20' ) end [2025-02-21 19:36:18] Production.INFO: ProcessCDR(1,14527252,1,1,2) [2025-02-21 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527252', 'tblTempUsageDetail_20' ) start [2025-02-21 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527252', 'tblTempUsageDetail_20' ) end [2025-02-21 19:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:36:21] Production.INFO: ==5095== Releasing lock... [2025-02-21 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:36:21] Production.INFO: 49.25 MB #Memory Used# [2025-02-21 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:37:05 [end_date_ymd] => 2025-02-21 19:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:37:05' and `end` < '2025-02-21 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-21 19:37:18] Production.INFO: count ==2794 [2025-02-21 19:37:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:37:05 - End Time 2025-02-21 19:37:05 [2025-02-21 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527257', 'tblTempUsageDetail_20' ) start [2025-02-21 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527257', 'tblTempUsageDetail_20' ) end [2025-02-21 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527257', 'tblTempVendorCDR_20' ) start [2025-02-21 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527257', 'tblTempVendorCDR_20' ) end [2025-02-21 19:37:18] Production.INFO: ProcessCDR(1,14527257,1,1,2) [2025-02-21 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527257', 'tblTempUsageDetail_20' ) start [2025-02-21 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527257', 'tblTempUsageDetail_20' ) end [2025-02-21 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:37:23] Production.INFO: ==5180== Releasing lock... [2025-02-21 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:37:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-21 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:38:05 [end_date_ymd] => 2025-02-21 19:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:38:05' and `end` < '2025-02-21 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-21 19:38:17] Production.INFO: count ==2781 [2025-02-21 19:38:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:38:05 - End Time 2025-02-21 19:38:05 [2025-02-21 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527262', 'tblTempUsageDetail_20' ) start [2025-02-21 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527262', 'tblTempUsageDetail_20' ) end [2025-02-21 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527262', 'tblTempVendorCDR_20' ) start [2025-02-21 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527262', 'tblTempVendorCDR_20' ) end [2025-02-21 19:38:18] Production.INFO: ProcessCDR(1,14527262,1,1,2) [2025-02-21 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527262', 'tblTempUsageDetail_20' ) start [2025-02-21 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527262', 'tblTempUsageDetail_20' ) end [2025-02-21 19:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:38:21] Production.INFO: ==5259== Releasing lock... [2025-02-21 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:38:21] Production.INFO: 49 MB #Memory Used# [2025-02-21 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:39:05 [end_date_ymd] => 2025-02-21 19:39:05 [RateCDR] => 1 ) [2025-02-21 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:39:05' and `end` < '2025-02-21 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:39:17] Production.INFO: count ==2759 [2025-02-21 19:39:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:39:05 - End Time 2025-02-21 19:39:05 [2025-02-21 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527267', 'tblTempUsageDetail_20' ) start [2025-02-21 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527267', 'tblTempUsageDetail_20' ) end [2025-02-21 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527267', 'tblTempVendorCDR_20' ) start [2025-02-21 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527267', 'tblTempVendorCDR_20' ) end [2025-02-21 19:39:18] Production.INFO: ProcessCDR(1,14527267,1,1,2) [2025-02-21 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527267', 'tblTempUsageDetail_20' ) start [2025-02-21 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527267', 'tblTempUsageDetail_20' ) end [2025-02-21 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:39:22] Production.INFO: ==5332== Releasing lock... [2025-02-21 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:39:22] Production.INFO: 49 MB #Memory Used# [2025-02-21 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:40:06 [end_date_ymd] => 2025-02-21 19:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 16:40:06' and `end` < '2025-02-21 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-21 19:40:18] Production.INFO: count ==2739 [2025-02-21 19:40:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:40:06 - End Time 2025-02-21 19:40:06 [2025-02-21 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527273', 'tblTempUsageDetail_20' ) start [2025-02-21 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527273', 'tblTempUsageDetail_20' ) end [2025-02-21 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527273', 'tblTempVendorCDR_20' ) start [2025-02-21 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527273', 'tblTempVendorCDR_20' ) end [2025-02-21 19:40:19] Production.INFO: ProcessCDR(1,14527273,1,1,2) [2025-02-21 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527273', 'tblTempUsageDetail_20' ) start [2025-02-21 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527273', 'tblTempUsageDetail_20' ) end [2025-02-21 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:40:22] Production.INFO: ==5405== Releasing lock... [2025-02-21 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:40:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-21 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:41:05 [end_date_ymd] => 2025-02-21 19:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:41:05' and `end` < '2025-02-21 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-21 19:41:18] Production.INFO: count ==2655 [2025-02-21 19:41:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:41:05 - End Time 2025-02-21 19:41:05 [2025-02-21 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527278', 'tblTempUsageDetail_20' ) start [2025-02-21 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527278', 'tblTempUsageDetail_20' ) end [2025-02-21 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527278', 'tblTempVendorCDR_20' ) start [2025-02-21 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527278', 'tblTempVendorCDR_20' ) end [2025-02-21 19:41:18] Production.INFO: ProcessCDR(1,14527278,1,1,2) [2025-02-21 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527278', 'tblTempUsageDetail_20' ) start [2025-02-21 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527278', 'tblTempUsageDetail_20' ) end [2025-02-21 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:41:22] Production.INFO: ==5483== Releasing lock... [2025-02-21 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:41:22] Production.INFO: 48 MB #Memory Used# [2025-02-21 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:42:05 [end_date_ymd] => 2025-02-21 19:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:42:05' and `end` < '2025-02-21 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-21 19:42:17] Production.INFO: count ==2648 [2025-02-21 19:42:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:42:05 - End Time 2025-02-21 19:42:05 [2025-02-21 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527283', 'tblTempUsageDetail_20' ) start [2025-02-21 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527283', 'tblTempUsageDetail_20' ) end [2025-02-21 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527283', 'tblTempVendorCDR_20' ) start [2025-02-21 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527283', 'tblTempVendorCDR_20' ) end [2025-02-21 19:42:18] Production.INFO: ProcessCDR(1,14527283,1,1,2) [2025-02-21 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527283', 'tblTempUsageDetail_20' ) start [2025-02-21 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527283', 'tblTempUsageDetail_20' ) end [2025-02-21 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:42:21] Production.INFO: ==5596== Releasing lock... [2025-02-21 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:42:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-21 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:43:05 [end_date_ymd] => 2025-02-21 19:43:05 [RateCDR] => 1 ) [2025-02-21 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:43:05' and `end` < '2025-02-21 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:43:17] Production.INFO: count ==2674 [2025-02-21 19:43:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:43:05 - End Time 2025-02-21 19:43:05 [2025-02-21 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527288', 'tblTempUsageDetail_20' ) start [2025-02-21 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527288', 'tblTempUsageDetail_20' ) end [2025-02-21 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527288', 'tblTempVendorCDR_20' ) start [2025-02-21 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527288', 'tblTempVendorCDR_20' ) end [2025-02-21 19:43:18] Production.INFO: ProcessCDR(1,14527288,1,1,2) [2025-02-21 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527288', 'tblTempUsageDetail_20' ) start [2025-02-21 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527288', 'tblTempUsageDetail_20' ) end [2025-02-21 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:43:21] Production.INFO: ==5672== Releasing lock... [2025-02-21 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:43:21] Production.INFO: 48 MB #Memory Used# [2025-02-21 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:44:05 [end_date_ymd] => 2025-02-21 19:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:44:05' and `end` < '2025-02-21 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-21 19:44:17] Production.INFO: count ==2660 [2025-02-21 19:44:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:44:05 - End Time 2025-02-21 19:44:05 [2025-02-21 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527293', 'tblTempUsageDetail_20' ) start [2025-02-21 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527293', 'tblTempUsageDetail_20' ) end [2025-02-21 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527293', 'tblTempVendorCDR_20' ) start [2025-02-21 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527293', 'tblTempVendorCDR_20' ) end [2025-02-21 19:44:18] Production.INFO: ProcessCDR(1,14527293,1,1,2) [2025-02-21 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527293', 'tblTempUsageDetail_20' ) start [2025-02-21 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527293', 'tblTempUsageDetail_20' ) end [2025-02-21 19:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:44:21] Production.INFO: ==5742== Releasing lock... [2025-02-21 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:44:21] Production.INFO: 48 MB #Memory Used# [2025-02-21 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:45:05 [end_date_ymd] => 2025-02-21 19:45:05 [RateCDR] => 1 ) [2025-02-21 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:45:05' and `end` < '2025-02-21 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:45:17] Production.INFO: count ==2655 [2025-02-21 19:45:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:45:05 - End Time 2025-02-21 19:45:05 [2025-02-21 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527298', 'tblTempUsageDetail_20' ) start [2025-02-21 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527298', 'tblTempUsageDetail_20' ) end [2025-02-21 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527298', 'tblTempVendorCDR_20' ) start [2025-02-21 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527298', 'tblTempVendorCDR_20' ) end [2025-02-21 19:45:18] Production.INFO: ProcessCDR(1,14527298,1,1,2) [2025-02-21 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527298', 'tblTempUsageDetail_20' ) start [2025-02-21 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527298', 'tblTempUsageDetail_20' ) end [2025-02-21 19:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:45:21] Production.INFO: ==5813== Releasing lock... [2025-02-21 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:45:21] Production.INFO: 48 MB #Memory Used# [2025-02-21 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:46:05 [end_date_ymd] => 2025-02-21 19:46:05 [RateCDR] => 1 ) [2025-02-21 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:46:05' and `end` < '2025-02-21 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:46:17] Production.INFO: count ==2641 [2025-02-21 19:46:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:46:05 - End Time 2025-02-21 19:46:05 [2025-02-21 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527303', 'tblTempUsageDetail_20' ) start [2025-02-21 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527303', 'tblTempUsageDetail_20' ) end [2025-02-21 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527303', 'tblTempVendorCDR_20' ) start [2025-02-21 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527303', 'tblTempVendorCDR_20' ) end [2025-02-21 19:46:18] Production.INFO: ProcessCDR(1,14527303,1,1,2) [2025-02-21 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527303', 'tblTempUsageDetail_20' ) start [2025-02-21 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527303', 'tblTempUsageDetail_20' ) end [2025-02-21 19:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:46:21] Production.INFO: ==5885== Releasing lock... [2025-02-21 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:46:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-21 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:47:05 [end_date_ymd] => 2025-02-21 19:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:47:05' and `end` < '2025-02-21 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-21 19:47:17] Production.INFO: count ==2635 [2025-02-21 19:47:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:47:05 - End Time 2025-02-21 19:47:05 [2025-02-21 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527308', 'tblTempUsageDetail_20' ) start [2025-02-21 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527308', 'tblTempUsageDetail_20' ) end [2025-02-21 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527308', 'tblTempVendorCDR_20' ) start [2025-02-21 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527308', 'tblTempVendorCDR_20' ) end [2025-02-21 19:47:18] Production.INFO: ProcessCDR(1,14527308,1,1,2) [2025-02-21 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527308', 'tblTempUsageDetail_20' ) start [2025-02-21 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527308', 'tblTempUsageDetail_20' ) end [2025-02-21 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:47:21] Production.INFO: ==5955== Releasing lock... [2025-02-21 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:47:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-21 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:48:05 [end_date_ymd] => 2025-02-21 19:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:48:05' and `end` < '2025-02-21 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-21 19:48:17] Production.INFO: count ==2606 [2025-02-21 19:48:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:48:05 - End Time 2025-02-21 19:48:05 [2025-02-21 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527313', 'tblTempUsageDetail_20' ) start [2025-02-21 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527313', 'tblTempUsageDetail_20' ) end [2025-02-21 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527313', 'tblTempVendorCDR_20' ) start [2025-02-21 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527313', 'tblTempVendorCDR_20' ) end [2025-02-21 19:48:18] Production.INFO: ProcessCDR(1,14527313,1,1,2) [2025-02-21 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527313', 'tblTempUsageDetail_20' ) start [2025-02-21 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527313', 'tblTempUsageDetail_20' ) end [2025-02-21 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:48:21] Production.INFO: ==6028== Releasing lock... [2025-02-21 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:48:21] Production.INFO: 47.5 MB #Memory Used# [2025-02-21 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:49:05 [end_date_ymd] => 2025-02-21 19:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:49:05' and `end` < '2025-02-21 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-21 19:49:17] Production.INFO: count ==2578 [2025-02-21 19:49:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:49:05 - End Time 2025-02-21 19:49:05 [2025-02-21 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527318', 'tblTempUsageDetail_20' ) start [2025-02-21 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527318', 'tblTempUsageDetail_20' ) end [2025-02-21 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527318', 'tblTempVendorCDR_20' ) start [2025-02-21 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527318', 'tblTempVendorCDR_20' ) end [2025-02-21 19:49:18] Production.INFO: ProcessCDR(1,14527318,1,1,2) [2025-02-21 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527318', 'tblTempUsageDetail_20' ) start [2025-02-21 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527318', 'tblTempUsageDetail_20' ) end [2025-02-21 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:49:21] Production.INFO: ==6100== Releasing lock... [2025-02-21 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:49:21] Production.INFO: 47.5 MB #Memory Used# [2025-02-21 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:50:05 [end_date_ymd] => 2025-02-21 19:50:05 [RateCDR] => 1 ) [2025-02-21 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:50:05' and `end` < '2025-02-21 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:50:17] Production.INFO: count ==2567 [2025-02-21 19:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:50:05 - End Time 2025-02-21 19:50:05 [2025-02-21 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527323', 'tblTempUsageDetail_20' ) start [2025-02-21 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527323', 'tblTempUsageDetail_20' ) end [2025-02-21 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527323', 'tblTempVendorCDR_20' ) start [2025-02-21 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527323', 'tblTempVendorCDR_20' ) end [2025-02-21 19:50:18] Production.INFO: ProcessCDR(1,14527323,1,1,2) [2025-02-21 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527323', 'tblTempUsageDetail_20' ) start [2025-02-21 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527323', 'tblTempUsageDetail_20' ) end [2025-02-21 19:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:50:21] Production.INFO: ==6171== Releasing lock... [2025-02-21 19:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:50:21] Production.INFO: 47.25 MB #Memory Used# [2025-02-21 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:51:05 [end_date_ymd] => 2025-02-21 19:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:51:05' and `end` < '2025-02-21 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-21 19:51:17] Production.INFO: count ==2500 [2025-02-21 19:51:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:51:05 - End Time 2025-02-21 19:51:05 [2025-02-21 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527329', 'tblTempUsageDetail_20' ) start [2025-02-21 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527329', 'tblTempUsageDetail_20' ) end [2025-02-21 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527329', 'tblTempVendorCDR_20' ) start [2025-02-21 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527329', 'tblTempVendorCDR_20' ) end [2025-02-21 19:51:18] Production.INFO: ProcessCDR(1,14527329,1,1,2) [2025-02-21 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527329', 'tblTempUsageDetail_20' ) start [2025-02-21 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527329', 'tblTempUsageDetail_20' ) end [2025-02-21 19:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:51:21] Production.INFO: ==6242== Releasing lock... [2025-02-21 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:51:21] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:52:05 [end_date_ymd] => 2025-02-21 19:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:52:05' and `end` < '2025-02-21 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-21 19:52:18] Production.INFO: count ==2491 [2025-02-21 19:52:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:52:05 - End Time 2025-02-21 19:52:05 [2025-02-21 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527334', 'tblTempUsageDetail_20' ) start [2025-02-21 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527334', 'tblTempUsageDetail_20' ) end [2025-02-21 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527334', 'tblTempVendorCDR_20' ) start [2025-02-21 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527334', 'tblTempVendorCDR_20' ) end [2025-02-21 19:52:18] Production.INFO: ProcessCDR(1,14527334,1,1,2) [2025-02-21 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527334', 'tblTempUsageDetail_20' ) start [2025-02-21 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527334', 'tblTempUsageDetail_20' ) end [2025-02-21 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:52:22] Production.INFO: ==6314== Releasing lock... [2025-02-21 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:52:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:53:05 [end_date_ymd] => 2025-02-21 19:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:53:05' and `end` < '2025-02-21 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-21 19:53:17] Production.INFO: count ==2473 [2025-02-21 19:53:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:53:05 - End Time 2025-02-21 19:53:05 [2025-02-21 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527339', 'tblTempUsageDetail_20' ) start [2025-02-21 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527339', 'tblTempUsageDetail_20' ) end [2025-02-21 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527339', 'tblTempVendorCDR_20' ) start [2025-02-21 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527339', 'tblTempVendorCDR_20' ) end [2025-02-21 19:53:18] Production.INFO: ProcessCDR(1,14527339,1,1,2) [2025-02-21 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527339', 'tblTempUsageDetail_20' ) start [2025-02-21 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527339', 'tblTempUsageDetail_20' ) end [2025-02-21 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:53:22] Production.INFO: ==6384== Releasing lock... [2025-02-21 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:53:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:54:05 [end_date_ymd] => 2025-02-21 19:54:05 [RateCDR] => 1 ) [2025-02-21 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:54:05' and `end` < '2025-02-21 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:54:17] Production.INFO: count ==2464 [2025-02-21 19:54:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:54:05 - End Time 2025-02-21 19:54:05 [2025-02-21 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527344', 'tblTempUsageDetail_20' ) start [2025-02-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527344', 'tblTempUsageDetail_20' ) end [2025-02-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527344', 'tblTempVendorCDR_20' ) start [2025-02-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527344', 'tblTempVendorCDR_20' ) end [2025-02-21 19:54:18] Production.INFO: ProcessCDR(1,14527344,1,1,2) [2025-02-21 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527344', 'tblTempUsageDetail_20' ) start [2025-02-21 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527344', 'tblTempUsageDetail_20' ) end [2025-02-21 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:54:21] Production.INFO: ==6454== Releasing lock... [2025-02-21 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:54:21] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:55:05 [end_date_ymd] => 2025-02-21 19:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:55:05' and `end` < '2025-02-21 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-21 19:55:17] Production.INFO: count ==2461 [2025-02-21 19:55:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:55:05 - End Time 2025-02-21 19:55:05 [2025-02-21 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527349', 'tblTempUsageDetail_20' ) start [2025-02-21 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527349', 'tblTempUsageDetail_20' ) end [2025-02-21 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527349', 'tblTempVendorCDR_20' ) start [2025-02-21 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527349', 'tblTempVendorCDR_20' ) end [2025-02-21 19:55:18] Production.INFO: ProcessCDR(1,14527349,1,1,2) [2025-02-21 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527349', 'tblTempUsageDetail_20' ) start [2025-02-21 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527349', 'tblTempUsageDetail_20' ) end [2025-02-21 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:55:23] Production.INFO: ==6526== Releasing lock... [2025-02-21 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:55:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:56:06 [end_date_ymd] => 2025-02-21 19:56:06 [RateCDR] => 1 ) [2025-02-21 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-21 16:56:06' and `end` < '2025-02-21 19:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:56:18] Production.INFO: count ==2443 [2025-02-21 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-21 16:56:06 - End Time 2025-02-21 19:56:06 [2025-02-21 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527354', 'tblTempUsageDetail_20' ) start [2025-02-21 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527354', 'tblTempUsageDetail_20' ) end [2025-02-21 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527354', 'tblTempVendorCDR_20' ) start [2025-02-21 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527354', 'tblTempVendorCDR_20' ) end [2025-02-21 19:56:19] Production.INFO: ProcessCDR(1,14527354,1,1,2) [2025-02-21 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527354', 'tblTempUsageDetail_20' ) start [2025-02-21 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527354', 'tblTempUsageDetail_20' ) end [2025-02-21 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:56:22] Production.INFO: ==6602== Releasing lock... [2025-02-21 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:56:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:57:05 [end_date_ymd] => 2025-02-21 19:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:57:05' and `end` < '2025-02-21 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-21 19:57:17] Production.INFO: count ==2454 [2025-02-21 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:57:05 - End Time 2025-02-21 19:57:05 [2025-02-21 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527359', 'tblTempUsageDetail_20' ) start [2025-02-21 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527359', 'tblTempUsageDetail_20' ) end [2025-02-21 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527359', 'tblTempVendorCDR_20' ) start [2025-02-21 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527359', 'tblTempVendorCDR_20' ) end [2025-02-21 19:57:18] Production.INFO: ProcessCDR(1,14527359,1,1,2) [2025-02-21 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527359', 'tblTempUsageDetail_20' ) start [2025-02-21 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527359', 'tblTempUsageDetail_20' ) end [2025-02-21 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:57:21] Production.INFO: ==6719== Releasing lock... [2025-02-21 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:57:21] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:58:05 [end_date_ymd] => 2025-02-21 19:58:05 [RateCDR] => 1 ) [2025-02-21 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 16:58:05' and `end` < '2025-02-21 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 19:58:17] Production.INFO: count ==2444 [2025-02-21 19:58:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:58:05 - End Time 2025-02-21 19:58:05 [2025-02-21 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527364', 'tblTempUsageDetail_20' ) start [2025-02-21 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527364', 'tblTempUsageDetail_20' ) end [2025-02-21 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527364', 'tblTempVendorCDR_20' ) start [2025-02-21 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527364', 'tblTempVendorCDR_20' ) end [2025-02-21 19:58:18] Production.INFO: ProcessCDR(1,14527364,1,1,2) [2025-02-21 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527364', 'tblTempUsageDetail_20' ) start [2025-02-21 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527364', 'tblTempUsageDetail_20' ) end [2025-02-21 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:58:21] Production.INFO: ==6790== Releasing lock... [2025-02-21 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:58:21] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 16:59:05 [end_date_ymd] => 2025-02-21 19:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 16:59:05' and `end` < '2025-02-21 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-21 19:59:17] Production.INFO: count ==2444 [2025-02-21 19:59:18] Production.ERROR: pbx CDR StartTime 2025-02-21 16:59:05 - End Time 2025-02-21 19:59:05 [2025-02-21 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527369', 'tblTempUsageDetail_20' ) start [2025-02-21 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527369', 'tblTempUsageDetail_20' ) end [2025-02-21 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527369', 'tblTempVendorCDR_20' ) start [2025-02-21 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527369', 'tblTempVendorCDR_20' ) end [2025-02-21 19:59:18] Production.INFO: ProcessCDR(1,14527369,1,1,2) [2025-02-21 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527369', 'tblTempUsageDetail_20' ) start [2025-02-21 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527369', 'tblTempUsageDetail_20' ) end [2025-02-21 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 19:59:21] Production.INFO: ==6861== Releasing lock... [2025-02-21 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 19:59:21] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:00:07 [end_date_ymd] => 2025-02-21 20:00:07 [RateCDR] => 1 ) [2025-02-21 20:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:00:07' and `end` < '2025-02-21 20:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:00:19] Production.INFO: count ==2439 [2025-02-21 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-21 17:00:07 - End Time 2025-02-21 20:00:07 [2025-02-21 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527375', 'tblTempUsageDetail_20' ) start [2025-02-21 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527375', 'tblTempUsageDetail_20' ) end [2025-02-21 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527375', 'tblTempVendorCDR_20' ) start [2025-02-21 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527375', 'tblTempVendorCDR_20' ) end [2025-02-21 20:00:20] Production.INFO: ProcessCDR(1,14527375,1,1,2) [2025-02-21 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527375', 'tblTempUsageDetail_20' ) start [2025-02-21 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527375', 'tblTempUsageDetail_20' ) end [2025-02-21 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:00:25] Production.INFO: ==6936== Releasing lock... [2025-02-21 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:00:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-21 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:01:05 [end_date_ymd] => 2025-02-21 20:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:01:05' and `end` < '2025-02-21 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-21 20:01:18] Production.INFO: count ==2401 [2025-02-21 20:01:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:01:05 - End Time 2025-02-21 20:01:05 [2025-02-21 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527380', 'tblTempUsageDetail_20' ) start [2025-02-21 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527380', 'tblTempUsageDetail_20' ) end [2025-02-21 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527380', 'tblTempVendorCDR_20' ) start [2025-02-21 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527380', 'tblTempVendorCDR_20' ) end [2025-02-21 20:01:18] Production.INFO: ProcessCDR(1,14527380,1,1,2) [2025-02-21 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527380', 'tblTempUsageDetail_20' ) start [2025-02-21 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527380', 'tblTempUsageDetail_20' ) end [2025-02-21 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:01:23] Production.INFO: ==7059== Releasing lock... [2025-02-21 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:01:23] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:02:06 [end_date_ymd] => 2025-02-21 20:02:06 [RateCDR] => 1 ) [2025-02-21 20: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-21 17:02:06' and `end` < '2025-02-21 20: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-21 20:02:18] Production.INFO: count ==2375 [2025-02-21 20:02:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:02:06 - End Time 2025-02-21 20:02:06 [2025-02-21 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527385', 'tblTempUsageDetail_20' ) start [2025-02-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527385', 'tblTempUsageDetail_20' ) end [2025-02-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527385', 'tblTempVendorCDR_20' ) start [2025-02-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527385', 'tblTempVendorCDR_20' ) end [2025-02-21 20:02:18] Production.INFO: ProcessCDR(1,14527385,1,1,2) [2025-02-21 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527385', 'tblTempUsageDetail_20' ) start [2025-02-21 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527385', 'tblTempUsageDetail_20' ) end [2025-02-21 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:02:22] Production.INFO: ==7128== Releasing lock... [2025-02-21 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:02:22] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:03:05 [end_date_ymd] => 2025-02-21 20:03:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:03:05' and `end` < '2025-02-21 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-21 20:03:17] Production.INFO: count ==2359 [2025-02-21 20:03:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:03:05 - End Time 2025-02-21 20:03:05 [2025-02-21 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527390', 'tblTempUsageDetail_20' ) start [2025-02-21 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527390', 'tblTempUsageDetail_20' ) end [2025-02-21 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527390', 'tblTempVendorCDR_20' ) start [2025-02-21 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527390', 'tblTempVendorCDR_20' ) end [2025-02-21 20:03:18] Production.INFO: ProcessCDR(1,14527390,1,1,2) [2025-02-21 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527390', 'tblTempUsageDetail_20' ) start [2025-02-21 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527390', 'tblTempUsageDetail_20' ) end [2025-02-21 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:03:21] Production.INFO: ==7198== Releasing lock... [2025-02-21 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:03:21] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:04:05 [end_date_ymd] => 2025-02-21 20:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:04:05' and `end` < '2025-02-21 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-21 20:04:17] Production.INFO: count ==2347 [2025-02-21 20:04:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:04:05 - End Time 2025-02-21 20:04:05 [2025-02-21 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527395', 'tblTempUsageDetail_20' ) start [2025-02-21 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527395', 'tblTempUsageDetail_20' ) end [2025-02-21 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527395', 'tblTempVendorCDR_20' ) start [2025-02-21 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527395', 'tblTempVendorCDR_20' ) end [2025-02-21 20:04:18] Production.INFO: ProcessCDR(1,14527395,1,1,2) [2025-02-21 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527395', 'tblTempUsageDetail_20' ) start [2025-02-21 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527395', 'tblTempUsageDetail_20' ) end [2025-02-21 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:04:21] Production.INFO: ==7269== Releasing lock... [2025-02-21 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:04:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-21 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:05:06 [end_date_ymd] => 2025-02-21 20:05:06 [RateCDR] => 1 ) [2025-02-21 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:05:06' and `end` < '2025-02-21 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:05:18] Production.INFO: count ==2339 [2025-02-21 20:05:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:05:06 - End Time 2025-02-21 20:05:06 [2025-02-21 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527400', 'tblTempUsageDetail_20' ) start [2025-02-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527400', 'tblTempUsageDetail_20' ) end [2025-02-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527400', 'tblTempVendorCDR_20' ) start [2025-02-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527400', 'tblTempVendorCDR_20' ) end [2025-02-21 20:05:18] Production.INFO: ProcessCDR(1,14527400,1,1,2) [2025-02-21 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527400', 'tblTempUsageDetail_20' ) start [2025-02-21 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527400', 'tblTempUsageDetail_20' ) end [2025-02-21 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:05:22] Production.INFO: ==7340== Releasing lock... [2025-02-21 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:05:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-21 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:06:05 [end_date_ymd] => 2025-02-21 20:06:05 [RateCDR] => 1 ) [2025-02-21 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:06:05' and `end` < '2025-02-21 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:06:17] Production.INFO: count ==2342 [2025-02-21 20:06:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:06:05 - End Time 2025-02-21 20:06:05 [2025-02-21 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527405', 'tblTempUsageDetail_20' ) start [2025-02-21 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527405', 'tblTempUsageDetail_20' ) end [2025-02-21 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527405', 'tblTempVendorCDR_20' ) start [2025-02-21 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527405', 'tblTempVendorCDR_20' ) end [2025-02-21 20:06:18] Production.INFO: ProcessCDR(1,14527405,1,1,2) [2025-02-21 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527405', 'tblTempUsageDetail_20' ) start [2025-02-21 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527405', 'tblTempUsageDetail_20' ) end [2025-02-21 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:06:23] Production.INFO: ==7410== Releasing lock... [2025-02-21 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:06:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-21 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:07:05 [end_date_ymd] => 2025-02-21 20:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:07:05' and `end` < '2025-02-21 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-21 20:07:17] Production.INFO: count ==2412 [2025-02-21 20:07:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:07:05 - End Time 2025-02-21 20:07:05 [2025-02-21 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527410', 'tblTempUsageDetail_20' ) start [2025-02-21 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527410', 'tblTempUsageDetail_20' ) end [2025-02-21 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527410', 'tblTempVendorCDR_20' ) start [2025-02-21 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527410', 'tblTempVendorCDR_20' ) end [2025-02-21 20:07:18] Production.INFO: ProcessCDR(1,14527410,1,1,2) [2025-02-21 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527410', 'tblTempUsageDetail_20' ) start [2025-02-21 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527410', 'tblTempUsageDetail_20' ) end [2025-02-21 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:07:23] Production.INFO: ==7480== Releasing lock... [2025-02-21 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:07:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-21 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:08:05 [end_date_ymd] => 2025-02-21 20:08:05 [RateCDR] => 1 ) [2025-02-21 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:08:05' and `end` < '2025-02-21 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:08:17] Production.INFO: count ==2397 [2025-02-21 20:08:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:08:05 - End Time 2025-02-21 20:08:05 [2025-02-21 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527415', 'tblTempUsageDetail_20' ) start [2025-02-21 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527415', 'tblTempUsageDetail_20' ) end [2025-02-21 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527415', 'tblTempVendorCDR_20' ) start [2025-02-21 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527415', 'tblTempVendorCDR_20' ) end [2025-02-21 20:08:18] Production.INFO: ProcessCDR(1,14527415,1,1,2) [2025-02-21 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527415', 'tblTempUsageDetail_20' ) start [2025-02-21 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527415', 'tblTempUsageDetail_20' ) end [2025-02-21 20:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:08:21] Production.INFO: ==7550== Releasing lock... [2025-02-21 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:08:21] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:09:05 [end_date_ymd] => 2025-02-21 20:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:09:05' and `end` < '2025-02-21 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-21 20:09:17] Production.INFO: count ==2385 [2025-02-21 20:09:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:09:05 - End Time 2025-02-21 20:09:05 [2025-02-21 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527420', 'tblTempUsageDetail_20' ) start [2025-02-21 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527420', 'tblTempUsageDetail_20' ) end [2025-02-21 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527420', 'tblTempVendorCDR_20' ) start [2025-02-21 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527420', 'tblTempVendorCDR_20' ) end [2025-02-21 20:09:18] Production.INFO: ProcessCDR(1,14527420,1,1,2) [2025-02-21 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527420', 'tblTempUsageDetail_20' ) start [2025-02-21 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527420', 'tblTempUsageDetail_20' ) end [2025-02-21 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:09:21] Production.INFO: ==7621== Releasing lock... [2025-02-21 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:09:21] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:10:07 [end_date_ymd] => 2025-02-21 20:10:07 [RateCDR] => 1 ) [2025-02-21 20: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-21 17:10:07' and `end` < '2025-02-21 20: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-21 20:10:19] Production.INFO: count ==2367 [2025-02-21 20:10:19] Production.ERROR: pbx CDR StartTime 2025-02-21 17:10:07 - End Time 2025-02-21 20:10:07 [2025-02-21 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527426', 'tblTempUsageDetail_20' ) start [2025-02-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527426', 'tblTempUsageDetail_20' ) end [2025-02-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527426', 'tblTempVendorCDR_20' ) start [2025-02-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527426', 'tblTempVendorCDR_20' ) end [2025-02-21 20:10:19] Production.INFO: ProcessCDR(1,14527426,1,1,2) [2025-02-21 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527426', 'tblTempUsageDetail_20' ) start [2025-02-21 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527426', 'tblTempUsageDetail_20' ) end [2025-02-21 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:10:23] Production.INFO: ==7698== Releasing lock... [2025-02-21 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:10:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-21 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:11:05 [end_date_ymd] => 2025-02-21 20:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:11:05' and `end` < '2025-02-21 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-21 20:11:17] Production.INFO: count ==2352 [2025-02-21 20:11:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:11:05 - End Time 2025-02-21 20:11:05 [2025-02-21 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527431', 'tblTempUsageDetail_20' ) start [2025-02-21 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527431', 'tblTempUsageDetail_20' ) end [2025-02-21 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527431', 'tblTempVendorCDR_20' ) start [2025-02-21 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527431', 'tblTempVendorCDR_20' ) end [2025-02-21 20:11:18] Production.INFO: ProcessCDR(1,14527431,1,1,2) [2025-02-21 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527431', 'tblTempUsageDetail_20' ) start [2025-02-21 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527431', 'tblTempUsageDetail_20' ) end [2025-02-21 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:11:23] Production.INFO: ==7773== Releasing lock... [2025-02-21 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:11:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-21 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:12:06 [end_date_ymd] => 2025-02-21 20:12:06 [RateCDR] => 1 ) [2025-02-21 20:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:12:06' and `end` < '2025-02-21 20:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:12:18] Production.INFO: count ==2355 [2025-02-21 20:12:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:12:06 - End Time 2025-02-21 20:12:06 [2025-02-21 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527436', 'tblTempUsageDetail_20' ) start [2025-02-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527436', 'tblTempUsageDetail_20' ) end [2025-02-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527436', 'tblTempVendorCDR_20' ) start [2025-02-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527436', 'tblTempVendorCDR_20' ) end [2025-02-21 20:12:18] Production.INFO: ProcessCDR(1,14527436,1,1,2) [2025-02-21 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527436', 'tblTempUsageDetail_20' ) start [2025-02-21 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527436', 'tblTempUsageDetail_20' ) end [2025-02-21 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:12:22] Production.INFO: ==7845== Releasing lock... [2025-02-21 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:12:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-21 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:13:05 [end_date_ymd] => 2025-02-21 20:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:13:05' and `end` < '2025-02-21 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-21 20:13:17] Production.INFO: count ==2356 [2025-02-21 20:13:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:13:05 - End Time 2025-02-21 20:13:05 [2025-02-21 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527441', 'tblTempUsageDetail_20' ) start [2025-02-21 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527441', 'tblTempUsageDetail_20' ) end [2025-02-21 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527441', 'tblTempVendorCDR_20' ) start [2025-02-21 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527441', 'tblTempVendorCDR_20' ) end [2025-02-21 20:13:18] Production.INFO: ProcessCDR(1,14527441,1,1,2) [2025-02-21 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527441', 'tblTempUsageDetail_20' ) start [2025-02-21 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527441', 'tblTempUsageDetail_20' ) end [2025-02-21 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:13:22] Production.INFO: ==7956== Releasing lock... [2025-02-21 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:13:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-21 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:14:05 [end_date_ymd] => 2025-02-21 20:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:14:05' and `end` < '2025-02-21 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-21 20:14:18] Production.INFO: count ==2354 [2025-02-21 20:14:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:14:05 - End Time 2025-02-21 20:14:05 [2025-02-21 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527446', 'tblTempUsageDetail_20' ) start [2025-02-21 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527446', 'tblTempUsageDetail_20' ) end [2025-02-21 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527446', 'tblTempVendorCDR_20' ) start [2025-02-21 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527446', 'tblTempVendorCDR_20' ) end [2025-02-21 20:14:18] Production.INFO: ProcessCDR(1,14527446,1,1,2) [2025-02-21 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527446', 'tblTempUsageDetail_20' ) start [2025-02-21 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527446', 'tblTempUsageDetail_20' ) end [2025-02-21 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:14:23] Production.INFO: ==8027== Releasing lock... [2025-02-21 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:14:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-21 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:15:05 [end_date_ymd] => 2025-02-21 20:15:05 [RateCDR] => 1 ) [2025-02-21 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:15:05' and `end` < '2025-02-21 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:15:17] Production.INFO: count ==2354 [2025-02-21 20:15:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:15:05 - End Time 2025-02-21 20:15:05 [2025-02-21 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527451', 'tblTempUsageDetail_20' ) start [2025-02-21 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527451', 'tblTempUsageDetail_20' ) end [2025-02-21 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527451', 'tblTempVendorCDR_20' ) start [2025-02-21 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527451', 'tblTempVendorCDR_20' ) end [2025-02-21 20:15:18] Production.INFO: ProcessCDR(1,14527451,1,1,2) [2025-02-21 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527451', 'tblTempUsageDetail_20' ) start [2025-02-21 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527451', 'tblTempUsageDetail_20' ) end [2025-02-21 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:15:21] Production.INFO: ==8097== Releasing lock... [2025-02-21 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:15:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-21 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:16:05 [end_date_ymd] => 2025-02-21 20:16:05 [RateCDR] => 1 ) [2025-02-21 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:16:05' and `end` < '2025-02-21 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:16:18] Production.INFO: count ==2341 [2025-02-21 20:16:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:16:05 - End Time 2025-02-21 20:16:05 [2025-02-21 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527456', 'tblTempUsageDetail_20' ) start [2025-02-21 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527456', 'tblTempUsageDetail_20' ) end [2025-02-21 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527456', 'tblTempVendorCDR_20' ) start [2025-02-21 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527456', 'tblTempVendorCDR_20' ) end [2025-02-21 20:16:18] Production.INFO: ProcessCDR(1,14527456,1,1,2) [2025-02-21 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527456', 'tblTempUsageDetail_20' ) start [2025-02-21 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527456', 'tblTempUsageDetail_20' ) end [2025-02-21 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:16:23] Production.INFO: ==8177== Releasing lock... [2025-02-21 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:16:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-21 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:17:05 [end_date_ymd] => 2025-02-21 20:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:17:05' and `end` < '2025-02-21 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-21 20:17:17] Production.INFO: count ==2341 [2025-02-21 20:17:17] Production.ERROR: pbx CDR StartTime 2025-02-21 17:17:05 - End Time 2025-02-21 20:17:05 [2025-02-21 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527460', 'tblTempUsageDetail_20' ) start [2025-02-21 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527460', 'tblTempUsageDetail_20' ) end [2025-02-21 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527460', 'tblTempVendorCDR_20' ) start [2025-02-21 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527460', 'tblTempVendorCDR_20' ) end [2025-02-21 20:17:17] Production.INFO: ProcessCDR(1,14527460,1,1,2) [2025-02-21 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527460', 'tblTempUsageDetail_20' ) start [2025-02-21 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527460', 'tblTempUsageDetail_20' ) end [2025-02-21 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:17:21] Production.INFO: ==8246== Releasing lock... [2025-02-21 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:17:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-21 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:18:05 [end_date_ymd] => 2025-02-21 20:18:05 [RateCDR] => 1 ) [2025-02-21 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:18:05' and `end` < '2025-02-21 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:18:17] Production.INFO: count ==2371 [2025-02-21 20:18:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:18:05 - End Time 2025-02-21 20:18:05 [2025-02-21 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527466', 'tblTempUsageDetail_20' ) start [2025-02-21 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527466', 'tblTempUsageDetail_20' ) end [2025-02-21 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527466', 'tblTempVendorCDR_20' ) start [2025-02-21 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527466', 'tblTempVendorCDR_20' ) end [2025-02-21 20:18:18] Production.INFO: ProcessCDR(1,14527466,1,1,2) [2025-02-21 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527466', 'tblTempUsageDetail_20' ) start [2025-02-21 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527466', 'tblTempUsageDetail_20' ) end [2025-02-21 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:18:23] Production.INFO: ==8343== Releasing lock... [2025-02-21 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:18:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-21 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:19:05 [end_date_ymd] => 2025-02-21 20:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:19:05' and `end` < '2025-02-21 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-21 20:19:18] Production.INFO: count ==2495 [2025-02-21 20:19:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:19:05 - End Time 2025-02-21 20:19:05 [2025-02-21 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527471', 'tblTempUsageDetail_20' ) start [2025-02-21 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527471', 'tblTempUsageDetail_20' ) end [2025-02-21 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527471', 'tblTempVendorCDR_20' ) start [2025-02-21 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527471', 'tblTempVendorCDR_20' ) end [2025-02-21 20:19:18] Production.INFO: ProcessCDR(1,14527471,1,1,2) [2025-02-21 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527471', 'tblTempUsageDetail_20' ) start [2025-02-21 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527471', 'tblTempUsageDetail_20' ) end [2025-02-21 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:19:22] Production.INFO: ==8452== Releasing lock... [2025-02-21 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:19:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:20:06 [end_date_ymd] => 2025-02-21 20:20:06 [RateCDR] => 1 ) [2025-02-21 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-21 17:20:06' and `end` < '2025-02-21 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-21 20:20:18] Production.INFO: count ==2483 [2025-02-21 20:20:19] Production.ERROR: pbx CDR StartTime 2025-02-21 17:20:06 - End Time 2025-02-21 20:20:06 [2025-02-21 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527477', 'tblTempUsageDetail_20' ) start [2025-02-21 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527477', 'tblTempUsageDetail_20' ) end [2025-02-21 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527477', 'tblTempVendorCDR_20' ) start [2025-02-21 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527477', 'tblTempVendorCDR_20' ) end [2025-02-21 20:20:19] Production.INFO: ProcessCDR(1,14527477,1,1,2) [2025-02-21 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527477', 'tblTempUsageDetail_20' ) start [2025-02-21 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527477', 'tblTempUsageDetail_20' ) end [2025-02-21 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:20:24] Production.INFO: ==8572== Releasing lock... [2025-02-21 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:20:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:21:05 [end_date_ymd] => 2025-02-21 20:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:21:05' and `end` < '2025-02-21 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-21 20:21:17] Production.INFO: count ==2477 [2025-02-21 20:21:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:21:05 - End Time 2025-02-21 20:21:05 [2025-02-21 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527482', 'tblTempUsageDetail_20' ) start [2025-02-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527482', 'tblTempUsageDetail_20' ) end [2025-02-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527482', 'tblTempVendorCDR_20' ) start [2025-02-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527482', 'tblTempVendorCDR_20' ) end [2025-02-21 20:21:18] Production.INFO: ProcessCDR(1,14527482,1,1,2) [2025-02-21 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527482', 'tblTempUsageDetail_20' ) start [2025-02-21 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527482', 'tblTempUsageDetail_20' ) end [2025-02-21 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:21:21] Production.INFO: ==8734== Releasing lock... [2025-02-21 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:21:21] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:22:06 [end_date_ymd] => 2025-02-21 20:22:06 [RateCDR] => 1 ) [2025-02-21 20: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-21 17:22:06' and `end` < '2025-02-21 20: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-21 20:22:18] Production.INFO: count ==2500 [2025-02-21 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-21 17:22:06 - End Time 2025-02-21 20:22:06 [2025-02-21 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527487', 'tblTempUsageDetail_20' ) start [2025-02-21 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527487', 'tblTempUsageDetail_20' ) end [2025-02-21 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527487', 'tblTempVendorCDR_20' ) start [2025-02-21 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527487', 'tblTempVendorCDR_20' ) end [2025-02-21 20:22:19] Production.INFO: ProcessCDR(1,14527487,1,1,2) [2025-02-21 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527487', 'tblTempUsageDetail_20' ) start [2025-02-21 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527487', 'tblTempUsageDetail_20' ) end [2025-02-21 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:22:22] Production.INFO: ==8848== Releasing lock... [2025-02-21 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:22:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:23:05 [end_date_ymd] => 2025-02-21 20:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:23:05' and `end` < '2025-02-21 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-21 20:23:17] Production.INFO: count ==2488 [2025-02-21 20:23:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:23:05 - End Time 2025-02-21 20:23:05 [2025-02-21 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527492', 'tblTempUsageDetail_20' ) start [2025-02-21 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527492', 'tblTempUsageDetail_20' ) end [2025-02-21 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527492', 'tblTempVendorCDR_20' ) start [2025-02-21 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527492', 'tblTempVendorCDR_20' ) end [2025-02-21 20:23:18] Production.INFO: ProcessCDR(1,14527492,1,1,2) [2025-02-21 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527492', 'tblTempUsageDetail_20' ) start [2025-02-21 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527492', 'tblTempUsageDetail_20' ) end [2025-02-21 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:23:21] Production.INFO: ==8963== Releasing lock... [2025-02-21 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:23:21] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:24:06 [end_date_ymd] => 2025-02-21 20:24:06 [RateCDR] => 1 ) [2025-02-21 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-21 17:24:06' and `end` < '2025-02-21 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-21 20:24:18] Production.INFO: count ==2497 [2025-02-21 20:24:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:24:06 - End Time 2025-02-21 20:24:06 [2025-02-21 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527497', 'tblTempUsageDetail_20' ) start [2025-02-21 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527497', 'tblTempUsageDetail_20' ) end [2025-02-21 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527497', 'tblTempVendorCDR_20' ) start [2025-02-21 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527497', 'tblTempVendorCDR_20' ) end [2025-02-21 20:24:18] Production.INFO: ProcessCDR(1,14527497,1,1,2) [2025-02-21 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527497', 'tblTempUsageDetail_20' ) start [2025-02-21 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527497', 'tblTempUsageDetail_20' ) end [2025-02-21 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:24:22] Production.INFO: ==9079== Releasing lock... [2025-02-21 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:24:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:25:05 [end_date_ymd] => 2025-02-21 20:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:25:05' and `end` < '2025-02-21 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-21 20:25:17] Production.INFO: count ==2505 [2025-02-21 20:25:17] Production.ERROR: pbx CDR StartTime 2025-02-21 17:25:05 - End Time 2025-02-21 20:25:05 [2025-02-21 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527502', 'tblTempUsageDetail_20' ) start [2025-02-21 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527502', 'tblTempUsageDetail_20' ) end [2025-02-21 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527502', 'tblTempVendorCDR_20' ) start [2025-02-21 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527502', 'tblTempVendorCDR_20' ) end [2025-02-21 20:25:17] Production.INFO: ProcessCDR(1,14527502,1,1,2) [2025-02-21 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527502', 'tblTempUsageDetail_20' ) start [2025-02-21 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527502', 'tblTempUsageDetail_20' ) end [2025-02-21 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:25:22] Production.INFO: ==9189== Releasing lock... [2025-02-21 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:25:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-21 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:26:05 [end_date_ymd] => 2025-02-21 20:26:05 [RateCDR] => 1 ) [2025-02-21 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:26:05' and `end` < '2025-02-21 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:26:17] Production.INFO: count ==2498 [2025-02-21 20:26:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:26:05 - End Time 2025-02-21 20:26:05 [2025-02-21 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527507', 'tblTempUsageDetail_20' ) start [2025-02-21 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527507', 'tblTempUsageDetail_20' ) end [2025-02-21 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527507', 'tblTempVendorCDR_20' ) start [2025-02-21 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527507', 'tblTempVendorCDR_20' ) end [2025-02-21 20:26:18] Production.INFO: ProcessCDR(1,14527507,1,1,2) [2025-02-21 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527507', 'tblTempUsageDetail_20' ) start [2025-02-21 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527507', 'tblTempUsageDetail_20' ) end [2025-02-21 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:26:22] Production.INFO: ==9301== Releasing lock... [2025-02-21 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:26:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:27:04 [end_date_ymd] => 2025-02-21 20:27:04 [RateCDR] => 1 ) [2025-02-21 20: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-21 17:27:04' and `end` < '2025-02-21 20: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-21 20:27:17] Production.INFO: count ==2497 [2025-02-21 20:27:17] Production.ERROR: pbx CDR StartTime 2025-02-21 17:27:04 - End Time 2025-02-21 20:27:04 [2025-02-21 20:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527512', 'tblTempUsageDetail_20' ) start [2025-02-21 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527512', 'tblTempUsageDetail_20' ) end [2025-02-21 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527512', 'tblTempVendorCDR_20' ) start [2025-02-21 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527512', 'tblTempVendorCDR_20' ) end [2025-02-21 20:27:17] Production.INFO: ProcessCDR(1,14527512,1,1,2) [2025-02-21 20:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527512', 'tblTempUsageDetail_20' ) start [2025-02-21 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527512', 'tblTempUsageDetail_20' ) end [2025-02-21 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:27:21] Production.INFO: ==9411== Releasing lock... [2025-02-21 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:27:21] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:28:05 [end_date_ymd] => 2025-02-21 20:28:05 [RateCDR] => 1 ) [2025-02-21 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:28:05' and `end` < '2025-02-21 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:28:17] Production.INFO: count ==2501 [2025-02-21 20:28:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:28:05 - End Time 2025-02-21 20:28:05 [2025-02-21 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527517', 'tblTempUsageDetail_20' ) start [2025-02-21 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527517', 'tblTempUsageDetail_20' ) end [2025-02-21 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527517', 'tblTempVendorCDR_20' ) start [2025-02-21 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527517', 'tblTempVendorCDR_20' ) end [2025-02-21 20:28:18] Production.INFO: ProcessCDR(1,14527517,1,1,2) [2025-02-21 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527517', 'tblTempUsageDetail_20' ) start [2025-02-21 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527517', 'tblTempUsageDetail_20' ) end [2025-02-21 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:28:22] Production.INFO: ==9560== Releasing lock... [2025-02-21 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:28:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:29:05 [end_date_ymd] => 2025-02-21 20:29:05 [RateCDR] => 1 ) [2025-02-21 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:29:05' and `end` < '2025-02-21 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:29:17] Production.INFO: count ==2462 [2025-02-21 20:29:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:29:05 - End Time 2025-02-21 20:29:05 [2025-02-21 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527522', 'tblTempUsageDetail_20' ) start [2025-02-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527522', 'tblTempUsageDetail_20' ) end [2025-02-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527522', 'tblTempVendorCDR_20' ) start [2025-02-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527522', 'tblTempVendorCDR_20' ) end [2025-02-21 20:29:18] Production.INFO: ProcessCDR(1,14527522,1,1,2) [2025-02-21 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527522', 'tblTempUsageDetail_20' ) start [2025-02-21 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527522', 'tblTempUsageDetail_20' ) end [2025-02-21 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:29:21] Production.INFO: ==9669== Releasing lock... [2025-02-21 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:29:21] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:30:06 [end_date_ymd] => 2025-02-21 20:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 17:30:06' and `end` < '2025-02-21 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-21 20:30:18] Production.INFO: count ==2461 [2025-02-21 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-21 17:30:06 - End Time 2025-02-21 20:30:06 [2025-02-21 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527528', 'tblTempUsageDetail_20' ) start [2025-02-21 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527528', 'tblTempUsageDetail_20' ) end [2025-02-21 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527528', 'tblTempVendorCDR_20' ) start [2025-02-21 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527528', 'tblTempVendorCDR_20' ) end [2025-02-21 20:30:19] Production.INFO: ProcessCDR(1,14527528,1,1,2) [2025-02-21 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527528', 'tblTempUsageDetail_20' ) start [2025-02-21 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527528', 'tblTempUsageDetail_20' ) end [2025-02-21 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:30:22] Production.INFO: ==9781== Releasing lock... [2025-02-21 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:30:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-21 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:31:05 [end_date_ymd] => 2025-02-21 20:31:05 [RateCDR] => 1 ) [2025-02-21 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:31:05' and `end` < '2025-02-21 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:31:17] Production.INFO: count ==2417 [2025-02-21 20:31:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:31:05 - End Time 2025-02-21 20:31:05 [2025-02-21 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527533', 'tblTempUsageDetail_20' ) start [2025-02-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527533', 'tblTempUsageDetail_20' ) end [2025-02-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527533', 'tblTempVendorCDR_20' ) start [2025-02-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527533', 'tblTempVendorCDR_20' ) end [2025-02-21 20:31:18] Production.INFO: ProcessCDR(1,14527533,1,1,2) [2025-02-21 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527533', 'tblTempUsageDetail_20' ) start [2025-02-21 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527533', 'tblTempUsageDetail_20' ) end [2025-02-21 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:31:21] Production.INFO: ==9874== Releasing lock... [2025-02-21 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:31:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-21 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:32:05 [end_date_ymd] => 2025-02-21 20:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:32:05' and `end` < '2025-02-21 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-21 20:32:17] Production.INFO: count ==2408 [2025-02-21 20:32:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:32:05 - End Time 2025-02-21 20:32:05 [2025-02-21 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527538', 'tblTempUsageDetail_20' ) start [2025-02-21 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527538', 'tblTempUsageDetail_20' ) end [2025-02-21 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527538', 'tblTempVendorCDR_20' ) start [2025-02-21 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527538', 'tblTempVendorCDR_20' ) end [2025-02-21 20:32:18] Production.INFO: ProcessCDR(1,14527538,1,1,2) [2025-02-21 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527538', 'tblTempUsageDetail_20' ) start [2025-02-21 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527538', 'tblTempUsageDetail_20' ) end [2025-02-21 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:32:23] Production.INFO: ==9944== Releasing lock... [2025-02-21 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:32:23] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:33:06 [end_date_ymd] => 2025-02-21 20:33:06 [RateCDR] => 1 ) [2025-02-21 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:33:06' and `end` < '2025-02-21 20: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-21 20:33:18] Production.INFO: count ==2409 [2025-02-21 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-21 17:33:06 - End Time 2025-02-21 20:33:06 [2025-02-21 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527543', 'tblTempUsageDetail_20' ) start [2025-02-21 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527543', 'tblTempUsageDetail_20' ) end [2025-02-21 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527543', 'tblTempVendorCDR_20' ) start [2025-02-21 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527543', 'tblTempVendorCDR_20' ) end [2025-02-21 20:33:19] Production.INFO: ProcessCDR(1,14527543,1,1,2) [2025-02-21 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527543', 'tblTempUsageDetail_20' ) start [2025-02-21 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527543', 'tblTempUsageDetail_20' ) end [2025-02-21 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:33:23] Production.INFO: ==10015== Releasing lock... [2025-02-21 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:33:23] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:34:06 [end_date_ymd] => 2025-02-21 20:34:06 [RateCDR] => 1 ) [2025-02-21 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:34:06' and `end` < '2025-02-21 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:34:18] Production.INFO: count ==2411 [2025-02-21 20:34:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:34:06 - End Time 2025-02-21 20:34:06 [2025-02-21 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527548', 'tblTempUsageDetail_20' ) start [2025-02-21 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527548', 'tblTempUsageDetail_20' ) end [2025-02-21 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527548', 'tblTempVendorCDR_20' ) start [2025-02-21 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527548', 'tblTempVendorCDR_20' ) end [2025-02-21 20:34:18] Production.INFO: ProcessCDR(1,14527548,1,1,2) [2025-02-21 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527548', 'tblTempUsageDetail_20' ) start [2025-02-21 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527548', 'tblTempUsageDetail_20' ) end [2025-02-21 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:34:23] Production.INFO: ==10086== Releasing lock... [2025-02-21 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:34:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-21 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:35:05 [end_date_ymd] => 2025-02-21 20:35:05 [RateCDR] => 1 ) [2025-02-21 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:35:05' and `end` < '2025-02-21 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:35:17] Production.INFO: count ==2411 [2025-02-21 20:35:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:35:05 - End Time 2025-02-21 20:35:05 [2025-02-21 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527553', 'tblTempUsageDetail_20' ) start [2025-02-21 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527553', 'tblTempUsageDetail_20' ) end [2025-02-21 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527553', 'tblTempVendorCDR_20' ) start [2025-02-21 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527553', 'tblTempVendorCDR_20' ) end [2025-02-21 20:35:18] Production.INFO: ProcessCDR(1,14527553,1,1,2) [2025-02-21 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527553', 'tblTempUsageDetail_20' ) start [2025-02-21 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527553', 'tblTempUsageDetail_20' ) end [2025-02-21 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:35:21] Production.INFO: ==10162== Releasing lock... [2025-02-21 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:35:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-21 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:36:05 [end_date_ymd] => 2025-02-21 20:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:36:05' and `end` < '2025-02-21 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-21 20:36:17] Production.INFO: count ==2409 [2025-02-21 20:36:17] Production.ERROR: pbx CDR StartTime 2025-02-21 17:36:05 - End Time 2025-02-21 20:36:05 [2025-02-21 20:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527558', 'tblTempUsageDetail_20' ) start [2025-02-21 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527558', 'tblTempUsageDetail_20' ) end [2025-02-21 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527558', 'tblTempVendorCDR_20' ) start [2025-02-21 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527558', 'tblTempVendorCDR_20' ) end [2025-02-21 20:36:18] Production.INFO: ProcessCDR(1,14527558,1,1,2) [2025-02-21 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527558', 'tblTempUsageDetail_20' ) start [2025-02-21 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527558', 'tblTempUsageDetail_20' ) end [2025-02-21 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:36:21] Production.INFO: ==10231== Releasing lock... [2025-02-21 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:36:21] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:37:05 [end_date_ymd] => 2025-02-21 20:37:05 [RateCDR] => 1 ) [2025-02-21 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:37:05' and `end` < '2025-02-21 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:37:17] Production.INFO: count ==2406 [2025-02-21 20:37:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:37:05 - End Time 2025-02-21 20:37:05 [2025-02-21 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527563', 'tblTempUsageDetail_20' ) start [2025-02-21 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527563', 'tblTempUsageDetail_20' ) end [2025-02-21 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527563', 'tblTempVendorCDR_20' ) start [2025-02-21 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527563', 'tblTempVendorCDR_20' ) end [2025-02-21 20:37:18] Production.INFO: ProcessCDR(1,14527563,1,1,2) [2025-02-21 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527563', 'tblTempUsageDetail_20' ) start [2025-02-21 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527563', 'tblTempUsageDetail_20' ) end [2025-02-21 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:37:21] Production.INFO: ==10307== Releasing lock... [2025-02-21 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:37:21] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:38:05 [end_date_ymd] => 2025-02-21 20:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:38:05' and `end` < '2025-02-21 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-21 20:38:17] Production.INFO: count ==2400 [2025-02-21 20:38:17] Production.ERROR: pbx CDR StartTime 2025-02-21 17:38:05 - End Time 2025-02-21 20:38:05 [2025-02-21 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527568', 'tblTempUsageDetail_20' ) start [2025-02-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527568', 'tblTempUsageDetail_20' ) end [2025-02-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527568', 'tblTempVendorCDR_20' ) start [2025-02-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527568', 'tblTempVendorCDR_20' ) end [2025-02-21 20:38:18] Production.INFO: ProcessCDR(1,14527568,1,1,2) [2025-02-21 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527568', 'tblTempUsageDetail_20' ) start [2025-02-21 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527568', 'tblTempUsageDetail_20' ) end [2025-02-21 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:38:22] Production.INFO: ==10382== Releasing lock... [2025-02-21 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:38:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-21 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:39:05 [end_date_ymd] => 2025-02-21 20:39:05 [RateCDR] => 1 ) [2025-02-21 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:39:05' and `end` < '2025-02-21 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:39:17] Production.INFO: count ==2401 [2025-02-21 20:39:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:39:05 - End Time 2025-02-21 20:39:05 [2025-02-21 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527573', 'tblTempUsageDetail_20' ) start [2025-02-21 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527573', 'tblTempUsageDetail_20' ) end [2025-02-21 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527573', 'tblTempVendorCDR_20' ) start [2025-02-21 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527573', 'tblTempVendorCDR_20' ) end [2025-02-21 20:39:18] Production.INFO: ProcessCDR(1,14527573,1,1,2) [2025-02-21 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527573', 'tblTempUsageDetail_20' ) start [2025-02-21 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527573', 'tblTempUsageDetail_20' ) end [2025-02-21 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:39:22] Production.INFO: ==10454== Releasing lock... [2025-02-21 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:39:22] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:40:06 [end_date_ymd] => 2025-02-21 20:40:06 [RateCDR] => 1 ) [2025-02-21 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:40:06' and `end` < '2025-02-21 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:40:18] Production.INFO: count ==2403 [2025-02-21 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-21 17:40:06 - End Time 2025-02-21 20:40:06 [2025-02-21 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527578', 'tblTempUsageDetail_20' ) start [2025-02-21 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527578', 'tblTempUsageDetail_20' ) end [2025-02-21 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527578', 'tblTempVendorCDR_20' ) start [2025-02-21 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527578', 'tblTempVendorCDR_20' ) end [2025-02-21 20:40:19] Production.INFO: ProcessCDR(1,14527578,1,1,2) [2025-02-21 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527578', 'tblTempUsageDetail_20' ) start [2025-02-21 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527578', 'tblTempUsageDetail_20' ) end [2025-02-21 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:40:22] Production.INFO: ==10528== Releasing lock... [2025-02-21 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:40:22] Production.INFO: 46 MB #Memory Used# [2025-02-21 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:41:05 [end_date_ymd] => 2025-02-21 20:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:41:05' and `end` < '2025-02-21 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-21 20:41:17] Production.INFO: count ==2294 [2025-02-21 20:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 17:41:05 - End Time 2025-02-21 20:41:05 [2025-02-21 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527584', 'tblTempUsageDetail_20' ) start [2025-02-21 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527584', 'tblTempUsageDetail_20' ) end [2025-02-21 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527584', 'tblTempVendorCDR_20' ) start [2025-02-21 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527584', 'tblTempVendorCDR_20' ) end [2025-02-21 20:41:17] Production.INFO: ProcessCDR(1,14527584,1,1,2) [2025-02-21 20:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527584', 'tblTempUsageDetail_20' ) start [2025-02-21 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527584', 'tblTempUsageDetail_20' ) end [2025-02-21 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:41:21] Production.INFO: ==10601== Releasing lock... [2025-02-21 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:41:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:42:06 [end_date_ymd] => 2025-02-21 20:42:06 [RateCDR] => 1 ) [2025-02-21 20: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-21 17:42:06' and `end` < '2025-02-21 20: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-21 20:42:18] Production.INFO: count ==2272 [2025-02-21 20:42:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:42:06 - End Time 2025-02-21 20:42:06 [2025-02-21 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527589', 'tblTempUsageDetail_20' ) start [2025-02-21 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527589', 'tblTempUsageDetail_20' ) end [2025-02-21 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527589', 'tblTempVendorCDR_20' ) start [2025-02-21 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527589', 'tblTempVendorCDR_20' ) end [2025-02-21 20:42:18] Production.INFO: ProcessCDR(1,14527589,1,1,2) [2025-02-21 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527589', 'tblTempUsageDetail_20' ) start [2025-02-21 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527589', 'tblTempUsageDetail_20' ) end [2025-02-21 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:42:23] Production.INFO: ==10672== Releasing lock... [2025-02-21 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:42:23] Production.INFO: 45 MB #Memory Used# [2025-02-21 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:43:05 [end_date_ymd] => 2025-02-21 20:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:43:05' and `end` < '2025-02-21 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-21 20:43:17] Production.INFO: count ==2275 [2025-02-21 20:43:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:43:05 - End Time 2025-02-21 20:43:05 [2025-02-21 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527594', 'tblTempUsageDetail_20' ) start [2025-02-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527594', 'tblTempUsageDetail_20' ) end [2025-02-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527594', 'tblTempVendorCDR_20' ) start [2025-02-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527594', 'tblTempVendorCDR_20' ) end [2025-02-21 20:43:18] Production.INFO: ProcessCDR(1,14527594,1,1,2) [2025-02-21 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527594', 'tblTempUsageDetail_20' ) start [2025-02-21 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527594', 'tblTempUsageDetail_20' ) end [2025-02-21 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:43:21] Production.INFO: ==10782== Releasing lock... [2025-02-21 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:43:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:44:05 [end_date_ymd] => 2025-02-21 20:44:05 [RateCDR] => 1 ) [2025-02-21 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:44:05' and `end` < '2025-02-21 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:44:17] Production.INFO: count ==2272 [2025-02-21 20:44:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:44:05 - End Time 2025-02-21 20:44:05 [2025-02-21 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527599', 'tblTempUsageDetail_20' ) start [2025-02-21 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527599', 'tblTempUsageDetail_20' ) end [2025-02-21 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527599', 'tblTempVendorCDR_20' ) start [2025-02-21 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527599', 'tblTempVendorCDR_20' ) end [2025-02-21 20:44:18] Production.INFO: ProcessCDR(1,14527599,1,1,2) [2025-02-21 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527599', 'tblTempUsageDetail_20' ) start [2025-02-21 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527599', 'tblTempUsageDetail_20' ) end [2025-02-21 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:44:21] Production.INFO: ==10858== Releasing lock... [2025-02-21 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:44:21] Production.INFO: 45 MB #Memory Used# [2025-02-21 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:45:05 [end_date_ymd] => 2025-02-21 20:45:05 [RateCDR] => 1 ) [2025-02-21 20: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-21 17:45:05' and `end` < '2025-02-21 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-21 20:45:18] Production.INFO: count ==2259 [2025-02-21 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:45:05 - End Time 2025-02-21 20:45:05 [2025-02-21 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527604', 'tblTempUsageDetail_20' ) start [2025-02-21 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527604', 'tblTempUsageDetail_20' ) end [2025-02-21 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527604', 'tblTempVendorCDR_20' ) start [2025-02-21 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527604', 'tblTempVendorCDR_20' ) end [2025-02-21 20:45:18] Production.INFO: ProcessCDR(1,14527604,1,1,2) [2025-02-21 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527604', 'tblTempUsageDetail_20' ) start [2025-02-21 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527604', 'tblTempUsageDetail_20' ) end [2025-02-21 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:45:21] Production.INFO: ==10929== Releasing lock... [2025-02-21 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:45:21] Production.INFO: 45 MB #Memory Used# [2025-02-21 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:46:05 [end_date_ymd] => 2025-02-21 20:46:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:46:05' and `end` < '2025-02-21 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-21 20:46:17] Production.INFO: count ==2262 [2025-02-21 20:46:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:46:05 - End Time 2025-02-21 20:46:05 [2025-02-21 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527609', 'tblTempUsageDetail_20' ) start [2025-02-21 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527609', 'tblTempUsageDetail_20' ) end [2025-02-21 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527609', 'tblTempVendorCDR_20' ) start [2025-02-21 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527609', 'tblTempVendorCDR_20' ) end [2025-02-21 20:46:18] Production.INFO: ProcessCDR(1,14527609,1,1,2) [2025-02-21 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527609', 'tblTempUsageDetail_20' ) start [2025-02-21 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527609', 'tblTempUsageDetail_20' ) end [2025-02-21 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:46:21] Production.INFO: ==11000== Releasing lock... [2025-02-21 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:46:21] Production.INFO: 45 MB #Memory Used# [2025-02-21 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:47:05 [end_date_ymd] => 2025-02-21 20:47:05 [RateCDR] => 1 ) [2025-02-21 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:47:05' and `end` < '2025-02-21 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:47:17] Production.INFO: count ==2260 [2025-02-21 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:47:05 - End Time 2025-02-21 20:47:05 [2025-02-21 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527614', 'tblTempUsageDetail_20' ) start [2025-02-21 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527614', 'tblTempUsageDetail_20' ) end [2025-02-21 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527614', 'tblTempVendorCDR_20' ) start [2025-02-21 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527614', 'tblTempVendorCDR_20' ) end [2025-02-21 20:47:18] Production.INFO: ProcessCDR(1,14527614,1,1,2) [2025-02-21 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527614', 'tblTempUsageDetail_20' ) start [2025-02-21 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527614', 'tblTempUsageDetail_20' ) end [2025-02-21 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:47:23] Production.INFO: ==11071== Releasing lock... [2025-02-21 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:47:23] Production.INFO: 45 MB #Memory Used# [2025-02-21 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:48:06 [end_date_ymd] => 2025-02-21 20:48:06 [RateCDR] => 1 ) [2025-02-21 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-21 17:48:06' and `end` < '2025-02-21 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-21 20:48:18] Production.INFO: count ==2258 [2025-02-21 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-21 17:48:06 - End Time 2025-02-21 20:48:06 [2025-02-21 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527619', 'tblTempUsageDetail_20' ) start [2025-02-21 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527619', 'tblTempUsageDetail_20' ) end [2025-02-21 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527619', 'tblTempVendorCDR_20' ) start [2025-02-21 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527619', 'tblTempVendorCDR_20' ) end [2025-02-21 20:48:19] Production.INFO: ProcessCDR(1,14527619,1,1,2) [2025-02-21 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527619', 'tblTempUsageDetail_20' ) start [2025-02-21 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527619', 'tblTempUsageDetail_20' ) end [2025-02-21 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:48:22] Production.INFO: ==11142== Releasing lock... [2025-02-21 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:48:22] Production.INFO: 45 MB #Memory Used# [2025-02-21 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:49:05 [end_date_ymd] => 2025-02-21 20:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:49:05' and `end` < '2025-02-21 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-21 20:49:17] Production.INFO: count ==2257 [2025-02-21 20:49:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:49:05 - End Time 2025-02-21 20:49:05 [2025-02-21 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527624', 'tblTempUsageDetail_20' ) start [2025-02-21 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527624', 'tblTempUsageDetail_20' ) end [2025-02-21 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527624', 'tblTempVendorCDR_20' ) start [2025-02-21 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527624', 'tblTempVendorCDR_20' ) end [2025-02-21 20:49:18] Production.INFO: ProcessCDR(1,14527624,1,1,2) [2025-02-21 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527624', 'tblTempUsageDetail_20' ) start [2025-02-21 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527624', 'tblTempUsageDetail_20' ) end [2025-02-21 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:49:22] Production.INFO: ==11215== Releasing lock... [2025-02-21 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:49:22] Production.INFO: 45 MB #Memory Used# [2025-02-21 20:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:50:07 [end_date_ymd] => 2025-02-21 20:50:07 [RateCDR] => 1 ) [2025-02-21 20: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-21 17:50:07' and `end` < '2025-02-21 20: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-21 20:50:19] Production.INFO: count ==2259 [2025-02-21 20:50:19] Production.ERROR: pbx CDR StartTime 2025-02-21 17:50:07 - End Time 2025-02-21 20:50:07 [2025-02-21 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527630', 'tblTempUsageDetail_20' ) start [2025-02-21 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527630', 'tblTempUsageDetail_20' ) end [2025-02-21 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527630', 'tblTempVendorCDR_20' ) start [2025-02-21 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527630', 'tblTempVendorCDR_20' ) end [2025-02-21 20:50:19] Production.INFO: ProcessCDR(1,14527630,1,1,2) [2025-02-21 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527630', 'tblTempUsageDetail_20' ) start [2025-02-21 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527630', 'tblTempUsageDetail_20' ) end [2025-02-21 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:50:23] Production.INFO: ==11289== Releasing lock... [2025-02-21 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:50:23] Production.INFO: 45 MB #Memory Used# [2025-02-21 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:51:05 [end_date_ymd] => 2025-02-21 20:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:51:05' and `end` < '2025-02-21 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-21 20:51:17] Production.INFO: count ==2228 [2025-02-21 20:51:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:51:05 - End Time 2025-02-21 20:51:05 [2025-02-21 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527635', 'tblTempUsageDetail_20' ) start [2025-02-21 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527635', 'tblTempUsageDetail_20' ) end [2025-02-21 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527635', 'tblTempVendorCDR_20' ) start [2025-02-21 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527635', 'tblTempVendorCDR_20' ) end [2025-02-21 20:51:18] Production.INFO: ProcessCDR(1,14527635,1,1,2) [2025-02-21 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527635', 'tblTempUsageDetail_20' ) start [2025-02-21 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527635', 'tblTempUsageDetail_20' ) end [2025-02-21 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:51:21] Production.INFO: ==11366== Releasing lock... [2025-02-21 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:51:21] Production.INFO: 45 MB #Memory Used# [2025-02-21 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:52:06 [end_date_ymd] => 2025-02-21 20:52:06 [RateCDR] => 1 ) [2025-02-21 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-21 17:52:06' and `end` < '2025-02-21 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-21 20:52:18] Production.INFO: count ==2301 [2025-02-21 20:52:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:52:06 - End Time 2025-02-21 20:52:06 [2025-02-21 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527640', 'tblTempUsageDetail_20' ) start [2025-02-21 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527640', 'tblTempUsageDetail_20' ) end [2025-02-21 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527640', 'tblTempVendorCDR_20' ) start [2025-02-21 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527640', 'tblTempVendorCDR_20' ) end [2025-02-21 20:52:18] Production.INFO: ProcessCDR(1,14527640,1,1,2) [2025-02-21 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527640', 'tblTempUsageDetail_20' ) start [2025-02-21 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527640', 'tblTempUsageDetail_20' ) end [2025-02-21 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:52:24] Production.INFO: ==11438== Releasing lock... [2025-02-21 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:52:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:53:05 [end_date_ymd] => 2025-02-21 20:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:53:05' and `end` < '2025-02-21 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-21 20:53:17] Production.INFO: count ==2293 [2025-02-21 20:53:17] Production.ERROR: pbx CDR StartTime 2025-02-21 17:53:05 - End Time 2025-02-21 20:53:05 [2025-02-21 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527645', 'tblTempUsageDetail_20' ) start [2025-02-21 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527645', 'tblTempUsageDetail_20' ) end [2025-02-21 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527645', 'tblTempVendorCDR_20' ) start [2025-02-21 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527645', 'tblTempVendorCDR_20' ) end [2025-02-21 20:53:18] Production.INFO: ProcessCDR(1,14527645,1,1,2) [2025-02-21 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527645', 'tblTempUsageDetail_20' ) start [2025-02-21 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527645', 'tblTempUsageDetail_20' ) end [2025-02-21 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:53:21] Production.INFO: ==11509== Releasing lock... [2025-02-21 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:53:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:54:06 [end_date_ymd] => 2025-02-21 20:54:06 [RateCDR] => 1 ) [2025-02-21 20:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:54:06' and `end` < '2025-02-21 20:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:54:18] Production.INFO: count ==2290 [2025-02-21 20:54:19] Production.ERROR: pbx CDR StartTime 2025-02-21 17:54:06 - End Time 2025-02-21 20:54:06 [2025-02-21 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527650', 'tblTempUsageDetail_20' ) start [2025-02-21 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527650', 'tblTempUsageDetail_20' ) end [2025-02-21 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527650', 'tblTempVendorCDR_20' ) start [2025-02-21 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527650', 'tblTempVendorCDR_20' ) end [2025-02-21 20:54:19] Production.INFO: ProcessCDR(1,14527650,1,1,2) [2025-02-21 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527650', 'tblTempUsageDetail_20' ) start [2025-02-21 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527650', 'tblTempUsageDetail_20' ) end [2025-02-21 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:54:22] Production.INFO: ==11582== Releasing lock... [2025-02-21 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:54:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:55:05 [end_date_ymd] => 2025-02-21 20:55:05 [RateCDR] => 1 ) [2025-02-21 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:55:05' and `end` < '2025-02-21 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:55:17] Production.INFO: count ==2283 [2025-02-21 20:55:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:55:05 - End Time 2025-02-21 20:55:05 [2025-02-21 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527655', 'tblTempUsageDetail_20' ) start [2025-02-21 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527655', 'tblTempUsageDetail_20' ) end [2025-02-21 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527655', 'tblTempVendorCDR_20' ) start [2025-02-21 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527655', 'tblTempVendorCDR_20' ) end [2025-02-21 20:55:18] Production.INFO: ProcessCDR(1,14527655,1,1,2) [2025-02-21 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527655', 'tblTempUsageDetail_20' ) start [2025-02-21 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527655', 'tblTempUsageDetail_20' ) end [2025-02-21 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:55:21] Production.INFO: ==11657== Releasing lock... [2025-02-21 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:55:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:56:05 [end_date_ymd] => 2025-02-21 20:56:05 [RateCDR] => 1 ) [2025-02-21 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 17:56:05' and `end` < '2025-02-21 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 20:56:17] Production.INFO: count ==2285 [2025-02-21 20:56:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:56:05 - End Time 2025-02-21 20:56:05 [2025-02-21 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527660', 'tblTempUsageDetail_20' ) start [2025-02-21 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527660', 'tblTempUsageDetail_20' ) end [2025-02-21 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527660', 'tblTempVendorCDR_20' ) start [2025-02-21 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527660', 'tblTempVendorCDR_20' ) end [2025-02-21 20:56:18] Production.INFO: ProcessCDR(1,14527660,1,1,2) [2025-02-21 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527660', 'tblTempUsageDetail_20' ) start [2025-02-21 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527660', 'tblTempUsageDetail_20' ) end [2025-02-21 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:56:21] Production.INFO: ==11731== Releasing lock... [2025-02-21 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:56:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:57:04 [end_date_ymd] => 2025-02-21 20:57:04 [RateCDR] => 1 ) [2025-02-21 20: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-21 17:57:04' and `end` < '2025-02-21 20: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-21 20:57:17] Production.INFO: count ==2285 [2025-02-21 20:57:17] Production.ERROR: pbx CDR StartTime 2025-02-21 17:57:04 - End Time 2025-02-21 20:57:04 [2025-02-21 20:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527665', 'tblTempUsageDetail_20' ) start [2025-02-21 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527665', 'tblTempUsageDetail_20' ) end [2025-02-21 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527665', 'tblTempVendorCDR_20' ) start [2025-02-21 20:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527665', 'tblTempVendorCDR_20' ) end [2025-02-21 20:57:17] Production.INFO: ProcessCDR(1,14527665,1,1,2) [2025-02-21 20:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527665', 'tblTempUsageDetail_20' ) start [2025-02-21 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527665', 'tblTempUsageDetail_20' ) end [2025-02-21 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:57:21] Production.INFO: ==11802== Releasing lock... [2025-02-21 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:57:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:58:06 [end_date_ymd] => 2025-02-21 20:58:06 [RateCDR] => 1 ) [2025-02-21 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-21 17:58:06' and `end` < '2025-02-21 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-21 20:58:18] Production.INFO: count ==2315 [2025-02-21 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-21 17:58:06 - End Time 2025-02-21 20:58:06 [2025-02-21 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527670', 'tblTempUsageDetail_20' ) start [2025-02-21 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527670', 'tblTempUsageDetail_20' ) end [2025-02-21 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527670', 'tblTempVendorCDR_20' ) start [2025-02-21 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527670', 'tblTempVendorCDR_20' ) end [2025-02-21 20:58:18] Production.INFO: ProcessCDR(1,14527670,1,1,2) [2025-02-21 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527670', 'tblTempUsageDetail_20' ) start [2025-02-21 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527670', 'tblTempUsageDetail_20' ) end [2025-02-21 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:58:22] Production.INFO: ==11872== Releasing lock... [2025-02-21 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:58:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-21 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 17:59:05 [end_date_ymd] => 2025-02-21 20:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 17:59:05' and `end` < '2025-02-21 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-21 20:59:17] Production.INFO: count ==2311 [2025-02-21 20:59:17] Production.ERROR: pbx CDR StartTime 2025-02-21 17:59:05 - End Time 2025-02-21 20:59:05 [2025-02-21 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527675', 'tblTempUsageDetail_20' ) start [2025-02-21 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527675', 'tblTempUsageDetail_20' ) end [2025-02-21 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527675', 'tblTempVendorCDR_20' ) start [2025-02-21 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527675', 'tblTempVendorCDR_20' ) end [2025-02-21 20:59:17] Production.INFO: ProcessCDR(1,14527675,1,1,2) [2025-02-21 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527675', 'tblTempUsageDetail_20' ) start [2025-02-21 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527675', 'tblTempUsageDetail_20' ) end [2025-02-21 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 20:59:21] Production.INFO: ==11982== Releasing lock... [2025-02-21 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 20:59:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-21 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:00:07 [end_date_ymd] => 2025-02-21 21:00:07 [RateCDR] => 1 ) [2025-02-21 21: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-21 18:00:07' and `end` < '2025-02-21 21: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-21 21:00:19] Production.INFO: count ==2315 [2025-02-21 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-21 18:00:07 - End Time 2025-02-21 21:00:07 [2025-02-21 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527681', 'tblTempUsageDetail_20' ) start [2025-02-21 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527681', 'tblTempUsageDetail_20' ) end [2025-02-21 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527681', 'tblTempVendorCDR_20' ) start [2025-02-21 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527681', 'tblTempVendorCDR_20' ) end [2025-02-21 21:00:19] Production.INFO: ProcessCDR(1,14527681,1,1,2) [2025-02-21 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527681', 'tblTempUsageDetail_20' ) start [2025-02-21 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527681', 'tblTempUsageDetail_20' ) end [2025-02-21 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:00:23] Production.INFO: ==12055== Releasing lock... [2025-02-21 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:00:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-21 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:01:05 [end_date_ymd] => 2025-02-21 21:01:05 [RateCDR] => 1 ) [2025-02-21 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:01:05' and `end` < '2025-02-21 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:01:17] Production.INFO: count ==2277 [2025-02-21 21:01:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:01:05 - End Time 2025-02-21 21:01:05 [2025-02-21 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527686', 'tblTempUsageDetail_20' ) start [2025-02-21 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527686', 'tblTempUsageDetail_20' ) end [2025-02-21 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527686', 'tblTempVendorCDR_20' ) start [2025-02-21 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527686', 'tblTempVendorCDR_20' ) end [2025-02-21 21:01:17] Production.INFO: ProcessCDR(1,14527686,1,1,2) [2025-02-21 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527686', 'tblTempUsageDetail_20' ) start [2025-02-21 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527686', 'tblTempUsageDetail_20' ) end [2025-02-21 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:01:22] Production.INFO: ==12141== Releasing lock... [2025-02-21 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:01:22] Production.INFO: 45 MB #Memory Used# [2025-02-21 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:02:05 [end_date_ymd] => 2025-02-21 21:02:05 [RateCDR] => 1 ) [2025-02-21 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:02:05' and `end` < '2025-02-21 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:02:17] Production.INFO: count ==2274 [2025-02-21 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:02:05 - End Time 2025-02-21 21:02:05 [2025-02-21 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527691', 'tblTempUsageDetail_20' ) start [2025-02-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527691', 'tblTempUsageDetail_20' ) end [2025-02-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527691', 'tblTempVendorCDR_20' ) start [2025-02-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527691', 'tblTempVendorCDR_20' ) end [2025-02-21 21:02:18] Production.INFO: ProcessCDR(1,14527691,1,1,2) [2025-02-21 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527691', 'tblTempUsageDetail_20' ) start [2025-02-21 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527691', 'tblTempUsageDetail_20' ) end [2025-02-21 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:02:22] Production.INFO: ==12212== Releasing lock... [2025-02-21 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:02:22] Production.INFO: 45 MB #Memory Used# [2025-02-21 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:03:05 [end_date_ymd] => 2025-02-21 21:03:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:03:05' and `end` < '2025-02-21 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-21 21:03:17] Production.INFO: count ==2267 [2025-02-21 21:03:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:03:05 - End Time 2025-02-21 21:03:05 [2025-02-21 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527696', 'tblTempUsageDetail_20' ) start [2025-02-21 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527696', 'tblTempUsageDetail_20' ) end [2025-02-21 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527696', 'tblTempVendorCDR_20' ) start [2025-02-21 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527696', 'tblTempVendorCDR_20' ) end [2025-02-21 21:03:18] Production.INFO: ProcessCDR(1,14527696,1,1,2) [2025-02-21 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527696', 'tblTempUsageDetail_20' ) start [2025-02-21 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527696', 'tblTempUsageDetail_20' ) end [2025-02-21 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:03:23] Production.INFO: ==12282== Releasing lock... [2025-02-21 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:03:23] Production.INFO: 45 MB #Memory Used# [2025-02-21 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:04:06 [end_date_ymd] => 2025-02-21 21:04:06 [RateCDR] => 1 ) [2025-02-21 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-21 18:04:06' and `end` < '2025-02-21 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-21 21:04:18] Production.INFO: count ==2256 [2025-02-21 21:04:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:04:06 - End Time 2025-02-21 21:04:06 [2025-02-21 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527701', 'tblTempUsageDetail_20' ) start [2025-02-21 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527701', 'tblTempUsageDetail_20' ) end [2025-02-21 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527701', 'tblTempVendorCDR_20' ) start [2025-02-21 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527701', 'tblTempVendorCDR_20' ) end [2025-02-21 21:04:18] Production.INFO: ProcessCDR(1,14527701,1,1,2) [2025-02-21 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527701', 'tblTempUsageDetail_20' ) start [2025-02-21 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527701', 'tblTempUsageDetail_20' ) end [2025-02-21 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:04:22] Production.INFO: ==12354== Releasing lock... [2025-02-21 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:04:22] Production.INFO: 45 MB #Memory Used# [2025-02-21 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:05:05 [end_date_ymd] => 2025-02-21 21:05:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:05:05' and `end` < '2025-02-21 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-21 21:05:17] Production.INFO: count ==2242 [2025-02-21 21:05:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:05:05 - End Time 2025-02-21 21:05:05 [2025-02-21 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527706', 'tblTempUsageDetail_20' ) start [2025-02-21 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527706', 'tblTempUsageDetail_20' ) end [2025-02-21 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527706', 'tblTempVendorCDR_20' ) start [2025-02-21 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527706', 'tblTempVendorCDR_20' ) end [2025-02-21 21:05:17] Production.INFO: ProcessCDR(1,14527706,1,1,2) [2025-02-21 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527706', 'tblTempUsageDetail_20' ) start [2025-02-21 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527706', 'tblTempUsageDetail_20' ) end [2025-02-21 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:05:21] Production.INFO: ==12430== Releasing lock... [2025-02-21 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:05:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-21 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:06:06 [end_date_ymd] => 2025-02-21 21:06:06 [RateCDR] => 1 ) [2025-02-21 21:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:06:06' and `end` < '2025-02-21 21:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:06:18] Production.INFO: count ==2241 [2025-02-21 21:06:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:06:06 - End Time 2025-02-21 21:06:06 [2025-02-21 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527711', 'tblTempUsageDetail_20' ) start [2025-02-21 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527711', 'tblTempUsageDetail_20' ) end [2025-02-21 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527711', 'tblTempVendorCDR_20' ) start [2025-02-21 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527711', 'tblTempVendorCDR_20' ) end [2025-02-21 21:06:18] Production.INFO: ProcessCDR(1,14527711,1,1,2) [2025-02-21 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527711', 'tblTempUsageDetail_20' ) start [2025-02-21 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527711', 'tblTempUsageDetail_20' ) end [2025-02-21 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:06:23] Production.INFO: ==12501== Releasing lock... [2025-02-21 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:06:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-21 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:07:05 [end_date_ymd] => 2025-02-21 21:07:05 [RateCDR] => 1 ) [2025-02-21 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:07:05' and `end` < '2025-02-21 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:07:17] Production.INFO: count ==2229 [2025-02-21 21:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:07:05 - End Time 2025-02-21 21:07:05 [2025-02-21 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527716', 'tblTempUsageDetail_20' ) start [2025-02-21 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527716', 'tblTempUsageDetail_20' ) end [2025-02-21 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527716', 'tblTempVendorCDR_20' ) start [2025-02-21 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527716', 'tblTempVendorCDR_20' ) end [2025-02-21 21:07:17] Production.INFO: ProcessCDR(1,14527716,1,1,2) [2025-02-21 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527716', 'tblTempUsageDetail_20' ) start [2025-02-21 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527716', 'tblTempUsageDetail_20' ) end [2025-02-21 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:07:22] Production.INFO: ==12572== Releasing lock... [2025-02-21 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:07:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-21 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:08:05 [end_date_ymd] => 2025-02-21 21:08:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:08:05' and `end` < '2025-02-21 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-21 21:08:17] Production.INFO: count ==2227 [2025-02-21 21:08:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:08:05 - End Time 2025-02-21 21:08:05 [2025-02-21 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527721', 'tblTempUsageDetail_20' ) start [2025-02-21 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527721', 'tblTempUsageDetail_20' ) end [2025-02-21 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527721', 'tblTempVendorCDR_20' ) start [2025-02-21 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527721', 'tblTempVendorCDR_20' ) end [2025-02-21 21:08:18] Production.INFO: ProcessCDR(1,14527721,1,1,2) [2025-02-21 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527721', 'tblTempUsageDetail_20' ) start [2025-02-21 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527721', 'tblTempUsageDetail_20' ) end [2025-02-21 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:08:21] Production.INFO: ==12645== Releasing lock... [2025-02-21 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:08:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-21 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:09:05 [end_date_ymd] => 2025-02-21 21:09:05 [RateCDR] => 1 ) [2025-02-21 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:09:05' and `end` < '2025-02-21 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:09:17] Production.INFO: count ==2218 [2025-02-21 21:09:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:09:05 - End Time 2025-02-21 21:09:05 [2025-02-21 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527726', 'tblTempUsageDetail_20' ) start [2025-02-21 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527726', 'tblTempUsageDetail_20' ) end [2025-02-21 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527726', 'tblTempVendorCDR_20' ) start [2025-02-21 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527726', 'tblTempVendorCDR_20' ) end [2025-02-21 21:09:17] Production.INFO: ProcessCDR(1,14527726,1,1,2) [2025-02-21 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527726', 'tblTempUsageDetail_20' ) start [2025-02-21 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527726', 'tblTempUsageDetail_20' ) end [2025-02-21 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:09:21] Production.INFO: ==12718== Releasing lock... [2025-02-21 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:09:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-21 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:10:06 [end_date_ymd] => 2025-02-21 21:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 18:10:06' and `end` < '2025-02-21 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-21 21:10:18] Production.INFO: count ==2217 [2025-02-21 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-21 18:10:06 - End Time 2025-02-21 21:10:06 [2025-02-21 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527732', 'tblTempUsageDetail_20' ) start [2025-02-21 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527732', 'tblTempUsageDetail_20' ) end [2025-02-21 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527732', 'tblTempVendorCDR_20' ) start [2025-02-21 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527732', 'tblTempVendorCDR_20' ) end [2025-02-21 21:10:19] Production.INFO: ProcessCDR(1,14527732,1,1,2) [2025-02-21 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527732', 'tblTempUsageDetail_20' ) start [2025-02-21 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527732', 'tblTempUsageDetail_20' ) end [2025-02-21 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:10:22] Production.INFO: ==12790== Releasing lock... [2025-02-21 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:10:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-21 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:11:05 [end_date_ymd] => 2025-02-21 21:11:05 [RateCDR] => 1 ) [2025-02-21 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:11:05' and `end` < '2025-02-21 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:11:17] Production.INFO: count ==2160 [2025-02-21 21:11:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:11:05 - End Time 2025-02-21 21:11:05 [2025-02-21 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527737', 'tblTempUsageDetail_20' ) start [2025-02-21 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527737', 'tblTempUsageDetail_20' ) end [2025-02-21 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527737', 'tblTempVendorCDR_20' ) start [2025-02-21 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527737', 'tblTempVendorCDR_20' ) end [2025-02-21 21:11:17] Production.INFO: ProcessCDR(1,14527737,1,1,2) [2025-02-21 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527737', 'tblTempUsageDetail_20' ) start [2025-02-21 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527737', 'tblTempUsageDetail_20' ) end [2025-02-21 21:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:11:20] Production.INFO: ==12862== Releasing lock... [2025-02-21 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:11:20] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:12:06 [end_date_ymd] => 2025-02-21 21:12:06 [RateCDR] => 1 ) [2025-02-21 21: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-21 18:12:06' and `end` < '2025-02-21 21: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-21 21:12:18] Production.INFO: count ==2161 [2025-02-21 21:12:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:12:06 - End Time 2025-02-21 21:12:06 [2025-02-21 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527742', 'tblTempUsageDetail_20' ) start [2025-02-21 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527742', 'tblTempUsageDetail_20' ) end [2025-02-21 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527742', 'tblTempVendorCDR_20' ) start [2025-02-21 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527742', 'tblTempVendorCDR_20' ) end [2025-02-21 21:12:18] Production.INFO: ProcessCDR(1,14527742,1,1,2) [2025-02-21 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527742', 'tblTempUsageDetail_20' ) start [2025-02-21 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527742', 'tblTempUsageDetail_20' ) end [2025-02-21 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:12:22] Production.INFO: ==12932== Releasing lock... [2025-02-21 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:12:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:13:05 [end_date_ymd] => 2025-02-21 21:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:13:05' and `end` < '2025-02-21 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-21 21:13:17] Production.INFO: count ==2161 [2025-02-21 21:13:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:13:05 - End Time 2025-02-21 21:13:05 [2025-02-21 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527747', 'tblTempUsageDetail_20' ) start [2025-02-21 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527747', 'tblTempUsageDetail_20' ) end [2025-02-21 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527747', 'tblTempVendorCDR_20' ) start [2025-02-21 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527747', 'tblTempVendorCDR_20' ) end [2025-02-21 21:13:18] Production.INFO: ProcessCDR(1,14527747,1,1,2) [2025-02-21 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527747', 'tblTempUsageDetail_20' ) start [2025-02-21 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527747', 'tblTempUsageDetail_20' ) end [2025-02-21 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:13:21] Production.INFO: ==13004== Releasing lock... [2025-02-21 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:13:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:14:05 [end_date_ymd] => 2025-02-21 21:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:14:05' and `end` < '2025-02-21 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-21 21:14:17] Production.INFO: count ==2150 [2025-02-21 21:14:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:14:05 - End Time 2025-02-21 21:14:05 [2025-02-21 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527752', 'tblTempUsageDetail_20' ) start [2025-02-21 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527752', 'tblTempUsageDetail_20' ) end [2025-02-21 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527752', 'tblTempVendorCDR_20' ) start [2025-02-21 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527752', 'tblTempVendorCDR_20' ) end [2025-02-21 21:14:18] Production.INFO: ProcessCDR(1,14527752,1,1,2) [2025-02-21 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527752', 'tblTempUsageDetail_20' ) start [2025-02-21 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527752', 'tblTempUsageDetail_20' ) end [2025-02-21 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:14:21] Production.INFO: ==13123== Releasing lock... [2025-02-21 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:14:21] Production.INFO: 44 MB #Memory Used# [2025-02-21 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:15:04 [end_date_ymd] => 2025-02-21 21:15:04 [RateCDR] => 1 ) [2025-02-21 21: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-21 18:15:04' and `end` < '2025-02-21 21: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-21 21:15:16] Production.INFO: count ==2134 [2025-02-21 21:15:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:15:04 - End Time 2025-02-21 21:15:04 [2025-02-21 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527757', 'tblTempUsageDetail_20' ) start [2025-02-21 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527757', 'tblTempUsageDetail_20' ) end [2025-02-21 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527757', 'tblTempVendorCDR_20' ) start [2025-02-21 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527757', 'tblTempVendorCDR_20' ) end [2025-02-21 21:15:17] Production.INFO: ProcessCDR(1,14527757,1,1,2) [2025-02-21 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527757', 'tblTempUsageDetail_20' ) start [2025-02-21 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527757', 'tblTempUsageDetail_20' ) end [2025-02-21 21:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:15:20] Production.INFO: ==13196== Releasing lock... [2025-02-21 21:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:15:20] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:16:06 [end_date_ymd] => 2025-02-21 21:16:06 [RateCDR] => 1 ) [2025-02-21 21:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:16:06' and `end` < '2025-02-21 21:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:16:18] Production.INFO: count ==2124 [2025-02-21 21:16:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:16:06 - End Time 2025-02-21 21:16:06 [2025-02-21 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527762', 'tblTempUsageDetail_20' ) start [2025-02-21 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527762', 'tblTempUsageDetail_20' ) end [2025-02-21 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527762', 'tblTempVendorCDR_20' ) start [2025-02-21 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527762', 'tblTempVendorCDR_20' ) end [2025-02-21 21:16:18] Production.INFO: ProcessCDR(1,14527762,1,1,2) [2025-02-21 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527762', 'tblTempUsageDetail_20' ) start [2025-02-21 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527762', 'tblTempUsageDetail_20' ) end [2025-02-21 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:16:21] Production.INFO: ==13267== Releasing lock... [2025-02-21 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:16:21] Production.INFO: 44 MB #Memory Used# [2025-02-21 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:17:05 [end_date_ymd] => 2025-02-21 21:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:17:05' and `end` < '2025-02-21 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-21 21:17:17] Production.INFO: count ==2118 [2025-02-21 21:17:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:17:05 - End Time 2025-02-21 21:17:05 [2025-02-21 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527767', 'tblTempUsageDetail_20' ) start [2025-02-21 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527767', 'tblTempUsageDetail_20' ) end [2025-02-21 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527767', 'tblTempVendorCDR_20' ) start [2025-02-21 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527767', 'tblTempVendorCDR_20' ) end [2025-02-21 21:17:17] Production.INFO: ProcessCDR(1,14527767,1,1,2) [2025-02-21 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527767', 'tblTempUsageDetail_20' ) start [2025-02-21 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527767', 'tblTempUsageDetail_20' ) end [2025-02-21 21:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:17:20] Production.INFO: ==13337== Releasing lock... [2025-02-21 21:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:17:20] Production.INFO: 44 MB #Memory Used# [2025-02-21 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:18:05 [end_date_ymd] => 2025-02-21 21:18:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:18:05' and `end` < '2025-02-21 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-21 21:18:17] Production.INFO: count ==2149 [2025-02-21 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:18:05 - End Time 2025-02-21 21:18:05 [2025-02-21 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527772', 'tblTempUsageDetail_20' ) start [2025-02-21 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527772', 'tblTempUsageDetail_20' ) end [2025-02-21 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527772', 'tblTempVendorCDR_20' ) start [2025-02-21 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527772', 'tblTempVendorCDR_20' ) end [2025-02-21 21:18:18] Production.INFO: ProcessCDR(1,14527772,1,1,2) [2025-02-21 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527772', 'tblTempUsageDetail_20' ) start [2025-02-21 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527772', 'tblTempUsageDetail_20' ) end [2025-02-21 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:18:21] Production.INFO: ==13408== Releasing lock... [2025-02-21 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:18:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:19:05 [end_date_ymd] => 2025-02-21 21:19:05 [RateCDR] => 1 ) [2025-02-21 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:19:05' and `end` < '2025-02-21 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:19:17] Production.INFO: count ==2146 [2025-02-21 21:19:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:19:05 - End Time 2025-02-21 21:19:05 [2025-02-21 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527777', 'tblTempUsageDetail_20' ) start [2025-02-21 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527777', 'tblTempUsageDetail_20' ) end [2025-02-21 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527777', 'tblTempVendorCDR_20' ) start [2025-02-21 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527777', 'tblTempVendorCDR_20' ) end [2025-02-21 21:19:18] Production.INFO: ProcessCDR(1,14527777,1,1,2) [2025-02-21 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527777', 'tblTempUsageDetail_20' ) start [2025-02-21 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527777', 'tblTempUsageDetail_20' ) end [2025-02-21 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:19:21] Production.INFO: ==13492== Releasing lock... [2025-02-21 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:19:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:20:06 [end_date_ymd] => 2025-02-21 21:20:06 [RateCDR] => 1 ) [2025-02-21 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:20:06' and `end` < '2025-02-21 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:20:18] Production.INFO: count ==2146 [2025-02-21 21:20:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:20:06 - End Time 2025-02-21 21:20:06 [2025-02-21 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527783', 'tblTempUsageDetail_20' ) start [2025-02-21 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527783', 'tblTempUsageDetail_20' ) end [2025-02-21 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527783', 'tblTempVendorCDR_20' ) start [2025-02-21 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527783', 'tblTempVendorCDR_20' ) end [2025-02-21 21:20:19] Production.INFO: ProcessCDR(1,14527783,1,1,2) [2025-02-21 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527783', 'tblTempUsageDetail_20' ) start [2025-02-21 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527783', 'tblTempUsageDetail_20' ) end [2025-02-21 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:20:22] Production.INFO: ==13564== Releasing lock... [2025-02-21 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:20:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:21:05 [end_date_ymd] => 2025-02-21 21:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:21:05' and `end` < '2025-02-21 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-21 21:21:17] Production.INFO: count ==2117 [2025-02-21 21:21:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:21:05 - End Time 2025-02-21 21:21:05 [2025-02-21 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527788', 'tblTempUsageDetail_20' ) start [2025-02-21 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527788', 'tblTempUsageDetail_20' ) end [2025-02-21 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527788', 'tblTempVendorCDR_20' ) start [2025-02-21 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527788', 'tblTempVendorCDR_20' ) end [2025-02-21 21:21:18] Production.INFO: ProcessCDR(1,14527788,1,1,2) [2025-02-21 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527788', 'tblTempUsageDetail_20' ) start [2025-02-21 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527788', 'tblTempUsageDetail_20' ) end [2025-02-21 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:21:21] Production.INFO: ==13636== Releasing lock... [2025-02-21 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:21:21] Production.INFO: 44 MB #Memory Used# [2025-02-21 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:22:05 [end_date_ymd] => 2025-02-21 21:22:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:22:05' and `end` < '2025-02-21 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-21 21:22:17] Production.INFO: count ==2117 [2025-02-21 21:22:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:22:05 - End Time 2025-02-21 21:22:05 [2025-02-21 21:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527793', 'tblTempUsageDetail_20' ) start [2025-02-21 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527793', 'tblTempUsageDetail_20' ) end [2025-02-21 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527793', 'tblTempVendorCDR_20' ) start [2025-02-21 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527793', 'tblTempVendorCDR_20' ) end [2025-02-21 21:22:18] Production.INFO: ProcessCDR(1,14527793,1,1,2) [2025-02-21 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527793', 'tblTempUsageDetail_20' ) start [2025-02-21 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527793', 'tblTempUsageDetail_20' ) end [2025-02-21 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:22:21] Production.INFO: ==13706== Releasing lock... [2025-02-21 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:22:21] Production.INFO: 44 MB #Memory Used# [2025-02-21 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:23:06 [end_date_ymd] => 2025-02-21 21:23:06 [RateCDR] => 1 ) [2025-02-21 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-21 18:23:06' and `end` < '2025-02-21 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-21 21:23:18] Production.INFO: count ==2155 [2025-02-21 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:23:06 - End Time 2025-02-21 21:23:06 [2025-02-21 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527798', 'tblTempUsageDetail_20' ) start [2025-02-21 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527798', 'tblTempUsageDetail_20' ) end [2025-02-21 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527798', 'tblTempVendorCDR_20' ) start [2025-02-21 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527798', 'tblTempVendorCDR_20' ) end [2025-02-21 21:23:18] Production.INFO: ProcessCDR(1,14527798,1,1,2) [2025-02-21 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527798', 'tblTempUsageDetail_20' ) start [2025-02-21 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527798', 'tblTempUsageDetail_20' ) end [2025-02-21 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:23:21] Production.INFO: ==13779== Releasing lock... [2025-02-21 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:23:21] Production.INFO: 44 MB #Memory Used# [2025-02-21 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:24:05 [end_date_ymd] => 2025-02-21 21:24:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:24:05' and `end` < '2025-02-21 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-21 21:24:17] Production.INFO: count ==2150 [2025-02-21 21:24:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:24:05 - End Time 2025-02-21 21:24:05 [2025-02-21 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527803', 'tblTempUsageDetail_20' ) start [2025-02-21 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527803', 'tblTempUsageDetail_20' ) end [2025-02-21 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527803', 'tblTempVendorCDR_20' ) start [2025-02-21 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527803', 'tblTempVendorCDR_20' ) end [2025-02-21 21:24:17] Production.INFO: ProcessCDR(1,14527803,1,1,2) [2025-02-21 21:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527803', 'tblTempUsageDetail_20' ) start [2025-02-21 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527803', 'tblTempUsageDetail_20' ) end [2025-02-21 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:24:22] Production.INFO: ==13849== Releasing lock... [2025-02-21 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:24:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:25:05 [end_date_ymd] => 2025-02-21 21:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:25:05' and `end` < '2025-02-21 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-21 21:25:17] Production.INFO: count ==2147 [2025-02-21 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:25:05 - End Time 2025-02-21 21:25:05 [2025-02-21 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527808', 'tblTempUsageDetail_20' ) start [2025-02-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527808', 'tblTempUsageDetail_20' ) end [2025-02-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527808', 'tblTempVendorCDR_20' ) start [2025-02-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527808', 'tblTempVendorCDR_20' ) end [2025-02-21 21:25:18] Production.INFO: ProcessCDR(1,14527808,1,1,2) [2025-02-21 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527808', 'tblTempUsageDetail_20' ) start [2025-02-21 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527808', 'tblTempUsageDetail_20' ) end [2025-02-21 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:25:22] Production.INFO: ==13920== Releasing lock... [2025-02-21 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:25:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:26:05 [end_date_ymd] => 2025-02-21 21:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:26:05' and `end` < '2025-02-21 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-21 21:26:17] Production.INFO: count ==2146 [2025-02-21 21:26:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:26:05 - End Time 2025-02-21 21:26:05 [2025-02-21 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527813', 'tblTempUsageDetail_20' ) start [2025-02-21 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527813', 'tblTempUsageDetail_20' ) end [2025-02-21 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527813', 'tblTempVendorCDR_20' ) start [2025-02-21 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527813', 'tblTempVendorCDR_20' ) end [2025-02-21 21:26:18] Production.INFO: ProcessCDR(1,14527813,1,1,2) [2025-02-21 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527813', 'tblTempUsageDetail_20' ) start [2025-02-21 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527813', 'tblTempUsageDetail_20' ) end [2025-02-21 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:26:21] Production.INFO: ==13991== Releasing lock... [2025-02-21 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:26:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:27:05 [end_date_ymd] => 2025-02-21 21:27:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:27:05' and `end` < '2025-02-21 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-21 21:27:17] Production.INFO: count ==2155 [2025-02-21 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:27:05 - End Time 2025-02-21 21:27:05 [2025-02-21 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527818', 'tblTempUsageDetail_20' ) start [2025-02-21 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527818', 'tblTempUsageDetail_20' ) end [2025-02-21 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527818', 'tblTempVendorCDR_20' ) start [2025-02-21 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527818', 'tblTempVendorCDR_20' ) end [2025-02-21 21:27:18] Production.INFO: ProcessCDR(1,14527818,1,1,2) [2025-02-21 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527818', 'tblTempUsageDetail_20' ) start [2025-02-21 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527818', 'tblTempUsageDetail_20' ) end [2025-02-21 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:27:22] Production.INFO: ==14061== Releasing lock... [2025-02-21 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:27:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:28:04 [end_date_ymd] => 2025-02-21 21:28:04 [RateCDR] => 1 ) [2025-02-21 21: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-21 18:28:04' and `end` < '2025-02-21 21: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-21 21:28:16] Production.INFO: count ==2153 [2025-02-21 21:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:28:04 - End Time 2025-02-21 21:28:04 [2025-02-21 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527823', 'tblTempUsageDetail_20' ) start [2025-02-21 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527823', 'tblTempUsageDetail_20' ) end [2025-02-21 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527823', 'tblTempVendorCDR_20' ) start [2025-02-21 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527823', 'tblTempVendorCDR_20' ) end [2025-02-21 21:28:17] Production.INFO: ProcessCDR(1,14527823,1,1,2) [2025-02-21 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527823', 'tblTempUsageDetail_20' ) start [2025-02-21 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527823', 'tblTempUsageDetail_20' ) end [2025-02-21 21:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:28:20] Production.INFO: ==14134== Releasing lock... [2025-02-21 21:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:28:20] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:29:06 [end_date_ymd] => 2025-02-21 21:29:06 [RateCDR] => 1 ) [2025-02-21 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-21 18:29:06' and `end` < '2025-02-21 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-21 21:29:18] Production.INFO: count ==2147 [2025-02-21 21:29:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:29:06 - End Time 2025-02-21 21:29:06 [2025-02-21 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527828', 'tblTempUsageDetail_20' ) start [2025-02-21 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527828', 'tblTempUsageDetail_20' ) end [2025-02-21 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527828', 'tblTempVendorCDR_20' ) start [2025-02-21 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527828', 'tblTempVendorCDR_20' ) end [2025-02-21 21:29:18] Production.INFO: ProcessCDR(1,14527828,1,1,2) [2025-02-21 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527828', 'tblTempUsageDetail_20' ) start [2025-02-21 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527828', 'tblTempUsageDetail_20' ) end [2025-02-21 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:29:22] Production.INFO: ==14205== Releasing lock... [2025-02-21 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:29:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:30:06 [end_date_ymd] => 2025-02-21 21:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 18:30:06' and `end` < '2025-02-21 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-21 21:30:18] Production.INFO: count ==2141 [2025-02-21 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-21 18:30:06 - End Time 2025-02-21 21:30:06 [2025-02-21 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527834', 'tblTempUsageDetail_20' ) start [2025-02-21 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527834', 'tblTempUsageDetail_20' ) end [2025-02-21 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527834', 'tblTempVendorCDR_20' ) start [2025-02-21 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527834', 'tblTempVendorCDR_20' ) end [2025-02-21 21:30:19] Production.INFO: ProcessCDR(1,14527834,1,1,2) [2025-02-21 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527834', 'tblTempUsageDetail_20' ) start [2025-02-21 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527834', 'tblTempUsageDetail_20' ) end [2025-02-21 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:30:22] Production.INFO: ==14321== Releasing lock... [2025-02-21 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:30:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-21 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:31:05 [end_date_ymd] => 2025-02-21 21:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:31:05' and `end` < '2025-02-21 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-21 21:31:17] Production.INFO: count ==2030 [2025-02-21 21:31:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:31:05 - End Time 2025-02-21 21:31:05 [2025-02-21 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527839', 'tblTempUsageDetail_20' ) start [2025-02-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527839', 'tblTempUsageDetail_20' ) end [2025-02-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527839', 'tblTempVendorCDR_20' ) start [2025-02-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527839', 'tblTempVendorCDR_20' ) end [2025-02-21 21:31:18] Production.INFO: ProcessCDR(1,14527839,1,1,2) [2025-02-21 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527839', 'tblTempUsageDetail_20' ) start [2025-02-21 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527839', 'tblTempUsageDetail_20' ) end [2025-02-21 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:31:21] Production.INFO: ==14395== Releasing lock... [2025-02-21 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:31:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-21 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:32:06 [end_date_ymd] => 2025-02-21 21:32:06 [RateCDR] => 1 ) [2025-02-21 21: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-21 18:32:06' and `end` < '2025-02-21 21: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-21 21:32:18] Production.INFO: count ==2019 [2025-02-21 21:32:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:32:06 - End Time 2025-02-21 21:32:06 [2025-02-21 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527844', 'tblTempUsageDetail_20' ) start [2025-02-21 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527844', 'tblTempUsageDetail_20' ) end [2025-02-21 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527844', 'tblTempVendorCDR_20' ) start [2025-02-21 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527844', 'tblTempVendorCDR_20' ) end [2025-02-21 21:32:19] Production.INFO: ProcessCDR(1,14527844,1,1,2) [2025-02-21 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527844', 'tblTempUsageDetail_20' ) start [2025-02-21 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527844', 'tblTempUsageDetail_20' ) end [2025-02-21 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:32:22] Production.INFO: ==14468== Releasing lock... [2025-02-21 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:32:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-21 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:33:05 [end_date_ymd] => 2025-02-21 21:33:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:33:05' and `end` < '2025-02-21 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-21 21:33:17] Production.INFO: count ==2006 [2025-02-21 21:33:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:33:05 - End Time 2025-02-21 21:33:05 [2025-02-21 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527849', 'tblTempUsageDetail_20' ) start [2025-02-21 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527849', 'tblTempUsageDetail_20' ) end [2025-02-21 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527849', 'tblTempVendorCDR_20' ) start [2025-02-21 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527849', 'tblTempVendorCDR_20' ) end [2025-02-21 21:33:17] Production.INFO: ProcessCDR(1,14527849,1,1,2) [2025-02-21 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527849', 'tblTempUsageDetail_20' ) start [2025-02-21 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527849', 'tblTempUsageDetail_20' ) end [2025-02-21 21:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:33:20] Production.INFO: ==14548== Releasing lock... [2025-02-21 21:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:33:20] Production.INFO: 43 MB #Memory Used# [2025-02-21 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:34:05 [end_date_ymd] => 2025-02-21 21:34:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:34:05' and `end` < '2025-02-21 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-21 21:34:17] Production.INFO: count ==1999 [2025-02-21 21:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:34:05 - End Time 2025-02-21 21:34:05 [2025-02-21 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527854', 'tblTempUsageDetail_20' ) start [2025-02-21 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527854', 'tblTempUsageDetail_20' ) end [2025-02-21 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527854', 'tblTempVendorCDR_20' ) start [2025-02-21 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527854', 'tblTempVendorCDR_20' ) end [2025-02-21 21:34:17] Production.INFO: ProcessCDR(1,14527854,1,1,2) [2025-02-21 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527854', 'tblTempUsageDetail_20' ) start [2025-02-21 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527854', 'tblTempUsageDetail_20' ) end [2025-02-21 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:34:21] Production.INFO: ==14621== Releasing lock... [2025-02-21 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:34:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-21 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:35:05 [end_date_ymd] => 2025-02-21 21:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:35:05' and `end` < '2025-02-21 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-21 21:35:17] Production.INFO: count ==2015 [2025-02-21 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:35:05 - End Time 2025-02-21 21:35:05 [2025-02-21 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527859', 'tblTempUsageDetail_20' ) start [2025-02-21 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527859', 'tblTempUsageDetail_20' ) end [2025-02-21 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527859', 'tblTempVendorCDR_20' ) start [2025-02-21 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527859', 'tblTempVendorCDR_20' ) end [2025-02-21 21:35:18] Production.INFO: ProcessCDR(1,14527859,1,1,2) [2025-02-21 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527859', 'tblTempUsageDetail_20' ) start [2025-02-21 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527859', 'tblTempUsageDetail_20' ) end [2025-02-21 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:35:21] Production.INFO: ==14693== Releasing lock... [2025-02-21 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:35:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-21 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:36:06 [end_date_ymd] => 2025-02-21 21:36:06 [RateCDR] => 1 ) [2025-02-21 21:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:36:06' and `end` < '2025-02-21 21:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:36:18] Production.INFO: count ==2011 [2025-02-21 21:36:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:36:06 - End Time 2025-02-21 21:36:06 [2025-02-21 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527864', 'tblTempUsageDetail_20' ) start [2025-02-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527864', 'tblTempUsageDetail_20' ) end [2025-02-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527864', 'tblTempVendorCDR_20' ) start [2025-02-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527864', 'tblTempVendorCDR_20' ) end [2025-02-21 21:36:18] Production.INFO: ProcessCDR(1,14527864,1,1,2) [2025-02-21 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527864', 'tblTempUsageDetail_20' ) start [2025-02-21 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527864', 'tblTempUsageDetail_20' ) end [2025-02-21 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:36:22] Production.INFO: ==14764== Releasing lock... [2025-02-21 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:36:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-21 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:37:05 [end_date_ymd] => 2025-02-21 21:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:37:05' and `end` < '2025-02-21 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-21 21:37:17] Production.INFO: count ==2008 [2025-02-21 21:37:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:37:05 - End Time 2025-02-21 21:37:05 [2025-02-21 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527869', 'tblTempUsageDetail_20' ) start [2025-02-21 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527869', 'tblTempUsageDetail_20' ) end [2025-02-21 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527869', 'tblTempVendorCDR_20' ) start [2025-02-21 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527869', 'tblTempVendorCDR_20' ) end [2025-02-21 21:37:17] Production.INFO: ProcessCDR(1,14527869,1,1,2) [2025-02-21 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527869', 'tblTempUsageDetail_20' ) start [2025-02-21 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527869', 'tblTempUsageDetail_20' ) end [2025-02-21 21:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:37:20] Production.INFO: ==14839== Releasing lock... [2025-02-21 21:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:37:20] Production.INFO: 43 MB #Memory Used# [2025-02-21 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:38:05 [end_date_ymd] => 2025-02-21 21:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:38:05' and `end` < '2025-02-21 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-21 21:38:17] Production.INFO: count ==2010 [2025-02-21 21:38:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:38:05 - End Time 2025-02-21 21:38:05 [2025-02-21 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527874', 'tblTempUsageDetail_20' ) start [2025-02-21 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527874', 'tblTempUsageDetail_20' ) end [2025-02-21 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527874', 'tblTempVendorCDR_20' ) start [2025-02-21 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527874', 'tblTempVendorCDR_20' ) end [2025-02-21 21:38:18] Production.INFO: ProcessCDR(1,14527874,1,1,2) [2025-02-21 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527874', 'tblTempUsageDetail_20' ) start [2025-02-21 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527874', 'tblTempUsageDetail_20' ) end [2025-02-21 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:38:23] Production.INFO: ==14945== Releasing lock... [2025-02-21 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:38:23] Production.INFO: 43 MB #Memory Used# [2025-02-21 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:39:05 [end_date_ymd] => 2025-02-21 21:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:39:05' and `end` < '2025-02-21 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-21 21:39:17] Production.INFO: count ==2011 [2025-02-21 21:39:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:39:05 - End Time 2025-02-21 21:39:05 [2025-02-21 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527879', 'tblTempUsageDetail_20' ) start [2025-02-21 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527879', 'tblTempUsageDetail_20' ) end [2025-02-21 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527879', 'tblTempVendorCDR_20' ) start [2025-02-21 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527879', 'tblTempVendorCDR_20' ) end [2025-02-21 21:39:17] Production.INFO: ProcessCDR(1,14527879,1,1,2) [2025-02-21 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527879', 'tblTempUsageDetail_20' ) start [2025-02-21 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527879', 'tblTempUsageDetail_20' ) end [2025-02-21 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:39:22] Production.INFO: ==15049== Releasing lock... [2025-02-21 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:39:22] Production.INFO: 43 MB #Memory Used# [2025-02-21 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:40:06 [end_date_ymd] => 2025-02-21 21:40:06 [RateCDR] => 1 ) [2025-02-21 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-21 18:40:06' and `end` < '2025-02-21 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-21 21:40:18] Production.INFO: count ==1994 [2025-02-21 21:40:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:40:06 - End Time 2025-02-21 21:40:06 [2025-02-21 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527885', 'tblTempUsageDetail_20' ) start [2025-02-21 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527885', 'tblTempUsageDetail_20' ) end [2025-02-21 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527885', 'tblTempVendorCDR_20' ) start [2025-02-21 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527885', 'tblTempVendorCDR_20' ) end [2025-02-21 21:40:18] Production.INFO: ProcessCDR(1,14527885,1,1,2) [2025-02-21 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527885', 'tblTempUsageDetail_20' ) start [2025-02-21 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527885', 'tblTempUsageDetail_20' ) end [2025-02-21 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:40:23] Production.INFO: ==15159== Releasing lock... [2025-02-21 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:40:23] Production.INFO: 43 MB #Memory Used# [2025-02-21 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:41:04 [end_date_ymd] => 2025-02-21 21:41:04 [RateCDR] => 1 ) [2025-02-21 21: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-21 18:41:04' and `end` < '2025-02-21 21: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-21 21:41:16] Production.INFO: count ==1950 [2025-02-21 21:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:41:04 - End Time 2025-02-21 21:41:04 [2025-02-21 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527890', 'tblTempUsageDetail_20' ) start [2025-02-21 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527890', 'tblTempUsageDetail_20' ) end [2025-02-21 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527890', 'tblTempVendorCDR_20' ) start [2025-02-21 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527890', 'tblTempVendorCDR_20' ) end [2025-02-21 21:41:17] Production.INFO: ProcessCDR(1,14527890,1,1,2) [2025-02-21 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527890', 'tblTempUsageDetail_20' ) start [2025-02-21 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527890', 'tblTempUsageDetail_20' ) end [2025-02-21 21:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:41:20] Production.INFO: ==15262== Releasing lock... [2025-02-21 21:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:41:20] Production.INFO: 42.75 MB #Memory Used# [2025-02-21 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:42:05 [end_date_ymd] => 2025-02-21 21:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:42:05' and `end` < '2025-02-21 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-21 21:42:17] Production.INFO: count ==1941 [2025-02-21 21:42:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:42:05 - End Time 2025-02-21 21:42:05 [2025-02-21 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527895', 'tblTempUsageDetail_20' ) start [2025-02-21 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527895', 'tblTempUsageDetail_20' ) end [2025-02-21 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527895', 'tblTempVendorCDR_20' ) start [2025-02-21 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527895', 'tblTempVendorCDR_20' ) end [2025-02-21 21:42:18] Production.INFO: ProcessCDR(1,14527895,1,1,2) [2025-02-21 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527895', 'tblTempUsageDetail_20' ) start [2025-02-21 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527895', 'tblTempUsageDetail_20' ) end [2025-02-21 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:42:22] Production.INFO: ==15366== Releasing lock... [2025-02-21 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:42:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-21 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:43:06 [end_date_ymd] => 2025-02-21 21:43:06 [RateCDR] => 1 ) [2025-02-21 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-21 18:43:06' and `end` < '2025-02-21 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-21 21:43:18] Production.INFO: count ==1924 [2025-02-21 21:43:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:43:06 - End Time 2025-02-21 21:43:06 [2025-02-21 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527900', 'tblTempUsageDetail_20' ) start [2025-02-21 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527900', 'tblTempUsageDetail_20' ) end [2025-02-21 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527900', 'tblTempVendorCDR_20' ) start [2025-02-21 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527900', 'tblTempVendorCDR_20' ) end [2025-02-21 21:43:18] Production.INFO: ProcessCDR(1,14527900,1,1,2) [2025-02-21 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527900', 'tblTempUsageDetail_20' ) start [2025-02-21 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527900', 'tblTempUsageDetail_20' ) end [2025-02-21 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:43:21] Production.INFO: ==15472== Releasing lock... [2025-02-21 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:43:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-21 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:44:05 [end_date_ymd] => 2025-02-21 21:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:44:05' and `end` < '2025-02-21 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-21 21:44:17] Production.INFO: count ==1920 [2025-02-21 21:44:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:44:05 - End Time 2025-02-21 21:44:05 [2025-02-21 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527905', 'tblTempUsageDetail_20' ) start [2025-02-21 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527905', 'tblTempUsageDetail_20' ) end [2025-02-21 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527905', 'tblTempVendorCDR_20' ) start [2025-02-21 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527905', 'tblTempVendorCDR_20' ) end [2025-02-21 21:44:17] Production.INFO: ProcessCDR(1,14527905,1,1,2) [2025-02-21 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527905', 'tblTempUsageDetail_20' ) start [2025-02-21 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527905', 'tblTempUsageDetail_20' ) end [2025-02-21 21:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:44:21] Production.INFO: ==15574== Releasing lock... [2025-02-21 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:44:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-21 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:45:05 [end_date_ymd] => 2025-02-21 21:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:45:05' and `end` < '2025-02-21 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-21 21:45:17] Production.INFO: count ==1922 [2025-02-21 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:45:05 - End Time 2025-02-21 21:45:05 [2025-02-21 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527910', 'tblTempUsageDetail_20' ) start [2025-02-21 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527910', 'tblTempUsageDetail_20' ) end [2025-02-21 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527910', 'tblTempVendorCDR_20' ) start [2025-02-21 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527910', 'tblTempVendorCDR_20' ) end [2025-02-21 21:45:18] Production.INFO: ProcessCDR(1,14527910,1,1,2) [2025-02-21 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527910', 'tblTempUsageDetail_20' ) start [2025-02-21 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527910', 'tblTempUsageDetail_20' ) end [2025-02-21 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:45:21] Production.INFO: ==15708== Releasing lock... [2025-02-21 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:45:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-21 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:46:05 [end_date_ymd] => 2025-02-21 21:46:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:46:05' and `end` < '2025-02-21 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-21 21:46:17] Production.INFO: count ==1920 [2025-02-21 21:46:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:46:05 - End Time 2025-02-21 21:46:05 [2025-02-21 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527915', 'tblTempUsageDetail_20' ) start [2025-02-21 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527915', 'tblTempUsageDetail_20' ) end [2025-02-21 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527915', 'tblTempVendorCDR_20' ) start [2025-02-21 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527915', 'tblTempVendorCDR_20' ) end [2025-02-21 21:46:17] Production.INFO: ProcessCDR(1,14527915,1,1,2) [2025-02-21 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527915', 'tblTempUsageDetail_20' ) start [2025-02-21 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527915', 'tblTempUsageDetail_20' ) end [2025-02-21 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:46:21] Production.INFO: ==15805== Releasing lock... [2025-02-21 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:46:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-21 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:47:05 [end_date_ymd] => 2025-02-21 21:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:47:05' and `end` < '2025-02-21 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-21 21:47:17] Production.INFO: count ==1916 [2025-02-21 21:47:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:47:05 - End Time 2025-02-21 21:47:05 [2025-02-21 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527920', 'tblTempUsageDetail_20' ) start [2025-02-21 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527920', 'tblTempUsageDetail_20' ) end [2025-02-21 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527920', 'tblTempVendorCDR_20' ) start [2025-02-21 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527920', 'tblTempVendorCDR_20' ) end [2025-02-21 21:47:18] Production.INFO: ProcessCDR(1,14527920,1,1,2) [2025-02-21 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527920', 'tblTempUsageDetail_20' ) start [2025-02-21 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527920', 'tblTempUsageDetail_20' ) end [2025-02-21 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:47:23] Production.INFO: ==15898== Releasing lock... [2025-02-21 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:47:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-21 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:48:05 [end_date_ymd] => 2025-02-21 21:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:48:05' and `end` < '2025-02-21 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-21 21:48:17] Production.INFO: count ==1915 [2025-02-21 21:48:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:48:05 - End Time 2025-02-21 21:48:05 [2025-02-21 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527925', 'tblTempUsageDetail_20' ) start [2025-02-21 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527925', 'tblTempUsageDetail_20' ) end [2025-02-21 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527925', 'tblTempVendorCDR_20' ) start [2025-02-21 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527925', 'tblTempVendorCDR_20' ) end [2025-02-21 21:48:18] Production.INFO: ProcessCDR(1,14527925,1,1,2) [2025-02-21 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527925', 'tblTempUsageDetail_20' ) start [2025-02-21 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527925', 'tblTempUsageDetail_20' ) end [2025-02-21 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:48:21] Production.INFO: ==16004== Releasing lock... [2025-02-21 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:48:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-21 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:49:05 [end_date_ymd] => 2025-02-21 21:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:49:05' and `end` < '2025-02-21 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-21 21:49:17] Production.INFO: count ==1903 [2025-02-21 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:49:05 - End Time 2025-02-21 21:49:05 [2025-02-21 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527930', 'tblTempUsageDetail_20' ) start [2025-02-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527930', 'tblTempUsageDetail_20' ) end [2025-02-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527930', 'tblTempVendorCDR_20' ) start [2025-02-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527930', 'tblTempVendorCDR_20' ) end [2025-02-21 21:49:18] Production.INFO: ProcessCDR(1,14527930,1,1,2) [2025-02-21 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527930', 'tblTempUsageDetail_20' ) start [2025-02-21 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527930', 'tblTempUsageDetail_20' ) end [2025-02-21 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:49:21] Production.INFO: ==16109== Releasing lock... [2025-02-21 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:49:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-21 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:50:05 [end_date_ymd] => 2025-02-21 21:50:05 [RateCDR] => 1 ) [2025-02-21 21: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-21 18:50:05' and `end` < '2025-02-21 21: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-21 21:50:17] Production.INFO: count ==1905 [2025-02-21 21:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:50:05 - End Time 2025-02-21 21:50:05 [2025-02-21 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527935', 'tblTempUsageDetail_20' ) start [2025-02-21 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527935', 'tblTempUsageDetail_20' ) end [2025-02-21 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527935', 'tblTempVendorCDR_20' ) start [2025-02-21 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527935', 'tblTempVendorCDR_20' ) end [2025-02-21 21:50:18] Production.INFO: ProcessCDR(1,14527935,1,1,2) [2025-02-21 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527935', 'tblTempUsageDetail_20' ) start [2025-02-21 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527935', 'tblTempUsageDetail_20' ) end [2025-02-21 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:50:21] Production.INFO: ==16214== Releasing lock... [2025-02-21 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:50:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-21 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:51:05 [end_date_ymd] => 2025-02-21 21:51:05 [RateCDR] => 1 ) [2025-02-21 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:51:05' and `end` < '2025-02-21 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:51:17] Production.INFO: count ==1855 [2025-02-21 21:51:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:51:05 - End Time 2025-02-21 21:51:05 [2025-02-21 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527941', 'tblTempUsageDetail_20' ) start [2025-02-21 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527941', 'tblTempUsageDetail_20' ) end [2025-02-21 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527941', 'tblTempVendorCDR_20' ) start [2025-02-21 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527941', 'tblTempVendorCDR_20' ) end [2025-02-21 21:51:18] Production.INFO: ProcessCDR(1,14527941,1,1,2) [2025-02-21 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527941', 'tblTempUsageDetail_20' ) start [2025-02-21 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527941', 'tblTempUsageDetail_20' ) end [2025-02-21 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:51:21] Production.INFO: ==16316== Releasing lock... [2025-02-21 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:51:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:52:05 [end_date_ymd] => 2025-02-21 21:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:52:05' and `end` < '2025-02-21 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-21 21:52:17] Production.INFO: count ==1854 [2025-02-21 21:52:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:52:05 - End Time 2025-02-21 21:52:05 [2025-02-21 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527946', 'tblTempUsageDetail_20' ) start [2025-02-21 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527946', 'tblTempUsageDetail_20' ) end [2025-02-21 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527946', 'tblTempVendorCDR_20' ) start [2025-02-21 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527946', 'tblTempVendorCDR_20' ) end [2025-02-21 21:52:17] Production.INFO: ProcessCDR(1,14527946,1,1,2) [2025-02-21 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527946', 'tblTempUsageDetail_20' ) start [2025-02-21 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527946', 'tblTempUsageDetail_20' ) end [2025-02-21 21:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:52:20] Production.INFO: ==16388== Releasing lock... [2025-02-21 21:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:52:20] Production.INFO: 42.25 MB #Memory Used# [2025-02-21 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:53:05 [end_date_ymd] => 2025-02-21 21:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:53:05' and `end` < '2025-02-21 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-21 21:53:17] Production.INFO: count ==1835 [2025-02-21 21:53:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:53:05 - End Time 2025-02-21 21:53:05 [2025-02-21 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527951', 'tblTempUsageDetail_20' ) start [2025-02-21 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527951', 'tblTempUsageDetail_20' ) end [2025-02-21 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527951', 'tblTempVendorCDR_20' ) start [2025-02-21 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527951', 'tblTempVendorCDR_20' ) end [2025-02-21 21:53:18] Production.INFO: ProcessCDR(1,14527951,1,1,2) [2025-02-21 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527951', 'tblTempUsageDetail_20' ) start [2025-02-21 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527951', 'tblTempUsageDetail_20' ) end [2025-02-21 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:53:21] Production.INFO: ==16478== Releasing lock... [2025-02-21 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:53:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:54:05 [end_date_ymd] => 2025-02-21 21:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:54:05' and `end` < '2025-02-21 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-21 21:54:17] Production.INFO: count ==1835 [2025-02-21 21:54:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:54:05 - End Time 2025-02-21 21:54:05 [2025-02-21 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527956', 'tblTempUsageDetail_20' ) start [2025-02-21 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527956', 'tblTempUsageDetail_20' ) end [2025-02-21 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527956', 'tblTempVendorCDR_20' ) start [2025-02-21 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527956', 'tblTempVendorCDR_20' ) end [2025-02-21 21:54:17] Production.INFO: ProcessCDR(1,14527956,1,1,2) [2025-02-21 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527956', 'tblTempUsageDetail_20' ) start [2025-02-21 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527956', 'tblTempUsageDetail_20' ) end [2025-02-21 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:54:21] Production.INFO: ==16549== Releasing lock... [2025-02-21 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:54:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:55:05 [end_date_ymd] => 2025-02-21 21:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:55:05' and `end` < '2025-02-21 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-21 21:55:17] Production.INFO: count ==1837 [2025-02-21 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:55:05 - End Time 2025-02-21 21:55:05 [2025-02-21 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527961', 'tblTempUsageDetail_20' ) start [2025-02-21 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527961', 'tblTempUsageDetail_20' ) end [2025-02-21 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527961', 'tblTempVendorCDR_20' ) start [2025-02-21 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527961', 'tblTempVendorCDR_20' ) end [2025-02-21 21:55:18] Production.INFO: ProcessCDR(1,14527961,1,1,2) [2025-02-21 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527961', 'tblTempUsageDetail_20' ) start [2025-02-21 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527961', 'tblTempUsageDetail_20' ) end [2025-02-21 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:55:21] Production.INFO: ==16624== Releasing lock... [2025-02-21 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:55:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:56:06 [end_date_ymd] => 2025-02-21 21:56:06 [RateCDR] => 1 ) [2025-02-21 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-21 18:56:06' and `end` < '2025-02-21 21: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-21 21:56:18] Production.INFO: count ==1836 [2025-02-21 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:56:06 - End Time 2025-02-21 21:56:06 [2025-02-21 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527966', 'tblTempUsageDetail_20' ) start [2025-02-21 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527966', 'tblTempUsageDetail_20' ) end [2025-02-21 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527966', 'tblTempVendorCDR_20' ) start [2025-02-21 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527966', 'tblTempVendorCDR_20' ) end [2025-02-21 21:56:18] Production.INFO: ProcessCDR(1,14527966,1,1,2) [2025-02-21 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527966', 'tblTempUsageDetail_20' ) start [2025-02-21 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527966', 'tblTempUsageDetail_20' ) end [2025-02-21 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:56:21] Production.INFO: ==16697== Releasing lock... [2025-02-21 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:56:21] Production.INFO: 42 MB #Memory Used# [2025-02-21 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:57:05 [end_date_ymd] => 2025-02-21 21:57:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:57:05' and `end` < '2025-02-21 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-21 21:57:17] Production.INFO: count ==1832 [2025-02-21 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:57:05 - End Time 2025-02-21 21:57:05 [2025-02-21 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527971', 'tblTempUsageDetail_20' ) start [2025-02-21 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527971', 'tblTempUsageDetail_20' ) end [2025-02-21 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527971', 'tblTempVendorCDR_20' ) start [2025-02-21 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527971', 'tblTempVendorCDR_20' ) end [2025-02-21 21:57:18] Production.INFO: ProcessCDR(1,14527971,1,1,2) [2025-02-21 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527971', 'tblTempUsageDetail_20' ) start [2025-02-21 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527971', 'tblTempUsageDetail_20' ) end [2025-02-21 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:57:21] Production.INFO: ==16778== Releasing lock... [2025-02-21 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:57:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:58:06 [end_date_ymd] => 2025-02-21 21:58:06 [RateCDR] => 1 ) [2025-02-21 21:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 18:58:06' and `end` < '2025-02-21 21:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 21:58:18] Production.INFO: count ==1819 [2025-02-21 21:58:18] Production.ERROR: pbx CDR StartTime 2025-02-21 18:58:06 - End Time 2025-02-21 21:58:06 [2025-02-21 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527976', 'tblTempUsageDetail_20' ) start [2025-02-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527976', 'tblTempUsageDetail_20' ) end [2025-02-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527976', 'tblTempVendorCDR_20' ) start [2025-02-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527976', 'tblTempVendorCDR_20' ) end [2025-02-21 21:58:18] Production.INFO: ProcessCDR(1,14527976,1,1,2) [2025-02-21 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527976', 'tblTempUsageDetail_20' ) start [2025-02-21 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527976', 'tblTempUsageDetail_20' ) end [2025-02-21 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:58:21] Production.INFO: ==16849== Releasing lock... [2025-02-21 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:58:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 18:59:05 [end_date_ymd] => 2025-02-21 21:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 18:59:05' and `end` < '2025-02-21 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-21 21:59:17] Production.INFO: count ==1819 [2025-02-21 21:59:17] Production.ERROR: pbx CDR StartTime 2025-02-21 18:59:05 - End Time 2025-02-21 21:59:05 [2025-02-21 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527981', 'tblTempUsageDetail_20' ) start [2025-02-21 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527981', 'tblTempUsageDetail_20' ) end [2025-02-21 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527981', 'tblTempVendorCDR_20' ) start [2025-02-21 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527981', 'tblTempVendorCDR_20' ) end [2025-02-21 21:59:17] Production.INFO: ProcessCDR(1,14527981,1,1,2) [2025-02-21 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527981', 'tblTempUsageDetail_20' ) start [2025-02-21 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527981', 'tblTempUsageDetail_20' ) end [2025-02-21 21:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 21:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 21:59:21] Production.INFO: ==16931== Releasing lock... [2025-02-21 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 21:59:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:00:08 [end_date_ymd] => 2025-02-21 22:00:08 [RateCDR] => 1 ) [2025-02-21 22:00:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:00:08' and `end` < '2025-02-21 22:00:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:00:20] Production.INFO: count ==1829 [2025-02-21 22:00:20] Production.ERROR: pbx CDR StartTime 2025-02-21 19:00:08 - End Time 2025-02-21 22:00:08 [2025-02-21 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527987', 'tblTempUsageDetail_20' ) start [2025-02-21 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527987', 'tblTempUsageDetail_20' ) end [2025-02-21 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527987', 'tblTempVendorCDR_20' ) start [2025-02-21 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527987', 'tblTempVendorCDR_20' ) end [2025-02-21 22:00:20] Production.INFO: ProcessCDR(1,14527987,1,1,2) [2025-02-21 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527987', 'tblTempUsageDetail_20' ) start [2025-02-21 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527987', 'tblTempUsageDetail_20' ) end [2025-02-21 22:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:00:25] Production.INFO: ==17010== Releasing lock... [2025-02-21 22:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:00:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:01:05 [end_date_ymd] => 2025-02-21 22:01:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:01:05' and `end` < '2025-02-21 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-21 22:01:17] Production.INFO: count ==1777 [2025-02-21 22:01:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:01:05 - End Time 2025-02-21 22:01:05 [2025-02-21 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527992', 'tblTempUsageDetail_20' ) start [2025-02-21 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527992', 'tblTempUsageDetail_20' ) end [2025-02-21 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527992', 'tblTempVendorCDR_20' ) start [2025-02-21 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527992', 'tblTempVendorCDR_20' ) end [2025-02-21 22:01:17] Production.INFO: ProcessCDR(1,14527992,1,1,2) [2025-02-21 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527992', 'tblTempUsageDetail_20' ) start [2025-02-21 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527992', 'tblTempUsageDetail_20' ) end [2025-02-21 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:01:22] Production.INFO: ==17140== Releasing lock... [2025-02-21 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:01:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:02:05 [end_date_ymd] => 2025-02-21 22:02:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:02:05' and `end` < '2025-02-21 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-21 22:02:17] Production.INFO: count ==1764 [2025-02-21 22:02:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:02:05 - End Time 2025-02-21 22:02:05 [2025-02-21 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527997', 'tblTempUsageDetail_20' ) start [2025-02-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14527997', 'tblTempUsageDetail_20' ) end [2025-02-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527997', 'tblTempVendorCDR_20' ) start [2025-02-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14527997', 'tblTempVendorCDR_20' ) end [2025-02-21 22:02:17] Production.INFO: ProcessCDR(1,14527997,1,1,2) [2025-02-21 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14527997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14527997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14527997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14527997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527997', 'tblTempUsageDetail_20' ) start [2025-02-21 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14527997', 'tblTempUsageDetail_20' ) end [2025-02-21 22:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:02:20] Production.INFO: ==17211== Releasing lock... [2025-02-21 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:02:20] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:03:05 [end_date_ymd] => 2025-02-21 22:03:05 [RateCDR] => 1 ) [2025-02-21 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:03:05' and `end` < '2025-02-21 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:03:17] Production.INFO: count ==1765 [2025-02-21 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:03:05 - End Time 2025-02-21 22:03:05 [2025-02-21 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528002', 'tblTempUsageDetail_20' ) start [2025-02-21 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528002', 'tblTempUsageDetail_20' ) end [2025-02-21 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528002', 'tblTempVendorCDR_20' ) start [2025-02-21 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528002', 'tblTempVendorCDR_20' ) end [2025-02-21 22:03:18] Production.INFO: ProcessCDR(1,14528002,1,1,2) [2025-02-21 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528002', 'tblTempUsageDetail_20' ) start [2025-02-21 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528002', 'tblTempUsageDetail_20' ) end [2025-02-21 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:03:22] Production.INFO: ==17289== Releasing lock... [2025-02-21 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:03:22] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:04:05 [end_date_ymd] => 2025-02-21 22:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:04:05' and `end` < '2025-02-21 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-21 22:04:17] Production.INFO: count ==1764 [2025-02-21 22:04:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:04:05 - End Time 2025-02-21 22:04:05 [2025-02-21 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528007', 'tblTempUsageDetail_20' ) start [2025-02-21 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528007', 'tblTempUsageDetail_20' ) end [2025-02-21 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528007', 'tblTempVendorCDR_20' ) start [2025-02-21 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528007', 'tblTempVendorCDR_20' ) end [2025-02-21 22:04:17] Production.INFO: ProcessCDR(1,14528007,1,1,2) [2025-02-21 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528007', 'tblTempUsageDetail_20' ) start [2025-02-21 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528007', 'tblTempUsageDetail_20' ) end [2025-02-21 22:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:04:20] Production.INFO: ==17365== Releasing lock... [2025-02-21 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:04:20] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:05:05 [end_date_ymd] => 2025-02-21 22:05:05 [RateCDR] => 1 ) [2025-02-21 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:05:05' and `end` < '2025-02-21 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:05:17] Production.INFO: count ==1763 [2025-02-21 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:05:05 - End Time 2025-02-21 22:05:05 [2025-02-21 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528012', 'tblTempUsageDetail_20' ) start [2025-02-21 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528012', 'tblTempUsageDetail_20' ) end [2025-02-21 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528012', 'tblTempVendorCDR_20' ) start [2025-02-21 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528012', 'tblTempVendorCDR_20' ) end [2025-02-21 22:05:18] Production.INFO: ProcessCDR(1,14528012,1,1,2) [2025-02-21 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528012', 'tblTempUsageDetail_20' ) start [2025-02-21 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528012', 'tblTempUsageDetail_20' ) end [2025-02-21 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:05:21] Production.INFO: ==17439== Releasing lock... [2025-02-21 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:05:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:06:06 [end_date_ymd] => 2025-02-21 22:06:06 [RateCDR] => 1 ) [2025-02-21 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:06:06' and `end` < '2025-02-21 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:06:18] Production.INFO: count ==1773 [2025-02-21 22:06:19] Production.ERROR: pbx CDR StartTime 2025-02-21 19:06:06 - End Time 2025-02-21 22:06:06 [2025-02-21 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528017', 'tblTempUsageDetail_20' ) start [2025-02-21 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528017', 'tblTempUsageDetail_20' ) end [2025-02-21 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528017', 'tblTempVendorCDR_20' ) start [2025-02-21 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528017', 'tblTempVendorCDR_20' ) end [2025-02-21 22:06:19] Production.INFO: ProcessCDR(1,14528017,1,1,2) [2025-02-21 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528017', 'tblTempUsageDetail_20' ) start [2025-02-21 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528017', 'tblTempUsageDetail_20' ) end [2025-02-21 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:06:22] Production.INFO: ==17512== Releasing lock... [2025-02-21 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:06:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:07:05 [end_date_ymd] => 2025-02-21 22:07:05 [RateCDR] => 1 ) [2025-02-21 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:07:05' and `end` < '2025-02-21 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:07:17] Production.INFO: count ==1771 [2025-02-21 22:07:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:07:05 - End Time 2025-02-21 22:07:05 [2025-02-21 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528022', 'tblTempUsageDetail_20' ) start [2025-02-21 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528022', 'tblTempUsageDetail_20' ) end [2025-02-21 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528022', 'tblTempVendorCDR_20' ) start [2025-02-21 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528022', 'tblTempVendorCDR_20' ) end [2025-02-21 22:07:17] Production.INFO: ProcessCDR(1,14528022,1,1,2) [2025-02-21 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528022', 'tblTempUsageDetail_20' ) start [2025-02-21 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528022', 'tblTempUsageDetail_20' ) end [2025-02-21 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:07:21] Production.INFO: ==17582== Releasing lock... [2025-02-21 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:07:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:08:05 [end_date_ymd] => 2025-02-21 22:08:05 [RateCDR] => 1 ) [2025-02-21 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:08:05' and `end` < '2025-02-21 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:08:17] Production.INFO: count ==1783 [2025-02-21 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:08:05 - End Time 2025-02-21 22:08:05 [2025-02-21 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528027', 'tblTempUsageDetail_20' ) start [2025-02-21 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528027', 'tblTempUsageDetail_20' ) end [2025-02-21 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528027', 'tblTempVendorCDR_20' ) start [2025-02-21 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528027', 'tblTempVendorCDR_20' ) end [2025-02-21 22:08:18] Production.INFO: ProcessCDR(1,14528027,1,1,2) [2025-02-21 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528027', 'tblTempUsageDetail_20' ) start [2025-02-21 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528027', 'tblTempUsageDetail_20' ) end [2025-02-21 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:08:21] Production.INFO: ==17653== Releasing lock... [2025-02-21 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:08:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:09:05 [end_date_ymd] => 2025-02-21 22:09:05 [RateCDR] => 1 ) [2025-02-21 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:09:05' and `end` < '2025-02-21 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:09:17] Production.INFO: count ==1781 [2025-02-21 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:09:05 - End Time 2025-02-21 22:09:05 [2025-02-21 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528032', 'tblTempUsageDetail_20' ) start [2025-02-21 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528032', 'tblTempUsageDetail_20' ) end [2025-02-21 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528032', 'tblTempVendorCDR_20' ) start [2025-02-21 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528032', 'tblTempVendorCDR_20' ) end [2025-02-21 22:09:18] Production.INFO: ProcessCDR(1,14528032,1,1,2) [2025-02-21 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528032', 'tblTempUsageDetail_20' ) start [2025-02-21 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528032', 'tblTempUsageDetail_20' ) end [2025-02-21 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:09:21] Production.INFO: ==17724== Releasing lock... [2025-02-21 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:09:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:10:06 [end_date_ymd] => 2025-02-21 22:10:06 [RateCDR] => 1 ) [2025-02-21 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-21 19:10:06' and `end` < '2025-02-21 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-21 22:10:18] Production.INFO: count ==1800 [2025-02-21 22:10:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:10:06 - End Time 2025-02-21 22:10:06 [2025-02-21 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528038', 'tblTempUsageDetail_20' ) start [2025-02-21 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528038', 'tblTempUsageDetail_20' ) end [2025-02-21 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528038', 'tblTempVendorCDR_20' ) start [2025-02-21 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528038', 'tblTempVendorCDR_20' ) end [2025-02-21 22:10:18] Production.INFO: ProcessCDR(1,14528038,1,1,2) [2025-02-21 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528038', 'tblTempUsageDetail_20' ) start [2025-02-21 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528038', 'tblTempUsageDetail_20' ) end [2025-02-21 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:10:22] Production.INFO: ==17800== Releasing lock... [2025-02-21 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:10:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:11:04 [end_date_ymd] => 2025-02-21 22:11:04 [RateCDR] => 1 ) [2025-02-21 22:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:11:04' and `end` < '2025-02-21 22:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:11:16] Production.INFO: count ==1797 [2025-02-21 22:11:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:11:04 - End Time 2025-02-21 22:11:04 [2025-02-21 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528043', 'tblTempUsageDetail_20' ) start [2025-02-21 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528043', 'tblTempUsageDetail_20' ) end [2025-02-21 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528043', 'tblTempVendorCDR_20' ) start [2025-02-21 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528043', 'tblTempVendorCDR_20' ) end [2025-02-21 22:11:17] Production.INFO: ProcessCDR(1,14528043,1,1,2) [2025-02-21 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528043', 'tblTempUsageDetail_20' ) start [2025-02-21 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528043', 'tblTempUsageDetail_20' ) end [2025-02-21 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:11:21] Production.INFO: ==17875== Releasing lock... [2025-02-21 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:11:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:12:05 [end_date_ymd] => 2025-02-21 22:12:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:12:05' and `end` < '2025-02-21 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-21 22:12:17] Production.INFO: count ==1798 [2025-02-21 22:12:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:12:05 - End Time 2025-02-21 22:12:05 [2025-02-21 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528048', 'tblTempUsageDetail_20' ) start [2025-02-21 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528048', 'tblTempUsageDetail_20' ) end [2025-02-21 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528048', 'tblTempVendorCDR_20' ) start [2025-02-21 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528048', 'tblTempVendorCDR_20' ) end [2025-02-21 22:12:18] Production.INFO: ProcessCDR(1,14528048,1,1,2) [2025-02-21 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528048', 'tblTempUsageDetail_20' ) start [2025-02-21 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528048', 'tblTempUsageDetail_20' ) end [2025-02-21 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:12:22] Production.INFO: ==17953== Releasing lock... [2025-02-21 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:12:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:13:05 [end_date_ymd] => 2025-02-21 22:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:13:05' and `end` < '2025-02-21 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-21 22:13:17] Production.INFO: count ==1795 [2025-02-21 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:13:05 - End Time 2025-02-21 22:13:05 [2025-02-21 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528053', 'tblTempUsageDetail_20' ) start [2025-02-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528053', 'tblTempUsageDetail_20' ) end [2025-02-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528053', 'tblTempVendorCDR_20' ) start [2025-02-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528053', 'tblTempVendorCDR_20' ) end [2025-02-21 22:13:18] Production.INFO: ProcessCDR(1,14528053,1,1,2) [2025-02-21 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528053', 'tblTempUsageDetail_20' ) start [2025-02-21 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528053', 'tblTempUsageDetail_20' ) end [2025-02-21 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:13:21] Production.INFO: ==18024== Releasing lock... [2025-02-21 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:13:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:14:05 [end_date_ymd] => 2025-02-21 22:14:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:14:05' and `end` < '2025-02-21 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-21 22:14:17] Production.INFO: count ==1795 [2025-02-21 22:14:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:14:05 - End Time 2025-02-21 22:14:05 [2025-02-21 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528058', 'tblTempUsageDetail_20' ) start [2025-02-21 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528058', 'tblTempUsageDetail_20' ) end [2025-02-21 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528058', 'tblTempVendorCDR_20' ) start [2025-02-21 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528058', 'tblTempVendorCDR_20' ) end [2025-02-21 22:14:18] Production.INFO: ProcessCDR(1,14528058,1,1,2) [2025-02-21 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528058', 'tblTempUsageDetail_20' ) start [2025-02-21 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528058', 'tblTempUsageDetail_20' ) end [2025-02-21 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:14:21] Production.INFO: ==18093== Releasing lock... [2025-02-21 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:14:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:15:05 [end_date_ymd] => 2025-02-21 22:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:15:05' and `end` < '2025-02-21 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-21 22:15:17] Production.INFO: count ==1792 [2025-02-21 22:15:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:15:05 - End Time 2025-02-21 22:15:05 [2025-02-21 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528063', 'tblTempUsageDetail_20' ) start [2025-02-21 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528063', 'tblTempUsageDetail_20' ) end [2025-02-21 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528063', 'tblTempVendorCDR_20' ) start [2025-02-21 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528063', 'tblTempVendorCDR_20' ) end [2025-02-21 22:15:17] Production.INFO: ProcessCDR(1,14528063,1,1,2) [2025-02-21 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528063', 'tblTempUsageDetail_20' ) start [2025-02-21 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528063', 'tblTempUsageDetail_20' ) end [2025-02-21 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:15:21] Production.INFO: ==18169== Releasing lock... [2025-02-21 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:15:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:16:05 [end_date_ymd] => 2025-02-21 22:16:05 [RateCDR] => 1 ) [2025-02-21 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:16:05' and `end` < '2025-02-21 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:16:17] Production.INFO: count ==1792 [2025-02-21 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:16:05 - End Time 2025-02-21 22:16:05 [2025-02-21 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528068', 'tblTempUsageDetail_20' ) start [2025-02-21 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528068', 'tblTempUsageDetail_20' ) end [2025-02-21 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528068', 'tblTempVendorCDR_20' ) start [2025-02-21 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528068', 'tblTempVendorCDR_20' ) end [2025-02-21 22:16:18] Production.INFO: ProcessCDR(1,14528068,1,1,2) [2025-02-21 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528068', 'tblTempUsageDetail_20' ) start [2025-02-21 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528068', 'tblTempUsageDetail_20' ) end [2025-02-21 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:16:21] Production.INFO: ==18280== Releasing lock... [2025-02-21 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:16:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:17:05 [end_date_ymd] => 2025-02-21 22:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:17:05' and `end` < '2025-02-21 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-21 22:17:17] Production.INFO: count ==1794 [2025-02-21 22:17:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:17:05 - End Time 2025-02-21 22:17:05 [2025-02-21 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528073', 'tblTempUsageDetail_20' ) start [2025-02-21 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528073', 'tblTempUsageDetail_20' ) end [2025-02-21 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528073', 'tblTempVendorCDR_20' ) start [2025-02-21 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528073', 'tblTempVendorCDR_20' ) end [2025-02-21 22:17:18] Production.INFO: ProcessCDR(1,14528073,1,1,2) [2025-02-21 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528073', 'tblTempUsageDetail_20' ) start [2025-02-21 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528073', 'tblTempUsageDetail_20' ) end [2025-02-21 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:17:21] Production.INFO: ==18365== Releasing lock... [2025-02-21 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:17:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:18:06 [end_date_ymd] => 2025-02-21 22:18:06 [RateCDR] => 1 ) [2025-02-21 22: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-21 19:18:06' and `end` < '2025-02-21 22: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-21 22:18:18] Production.INFO: count ==1794 [2025-02-21 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:18:06 - End Time 2025-02-21 22:18:06 [2025-02-21 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528078', 'tblTempUsageDetail_20' ) start [2025-02-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528078', 'tblTempUsageDetail_20' ) end [2025-02-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528078', 'tblTempVendorCDR_20' ) start [2025-02-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528078', 'tblTempVendorCDR_20' ) end [2025-02-21 22:18:18] Production.INFO: ProcessCDR(1,14528078,1,1,2) [2025-02-21 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528078', 'tblTempUsageDetail_20' ) start [2025-02-21 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528078', 'tblTempUsageDetail_20' ) end [2025-02-21 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:18:21] Production.INFO: ==18437== Releasing lock... [2025-02-21 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:18:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:19:05 [end_date_ymd] => 2025-02-21 22:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:19:05' and `end` < '2025-02-21 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-21 22:19:17] Production.INFO: count ==1791 [2025-02-21 22:19:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:19:05 - End Time 2025-02-21 22:19:05 [2025-02-21 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528083', 'tblTempUsageDetail_20' ) start [2025-02-21 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528083', 'tblTempUsageDetail_20' ) end [2025-02-21 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528083', 'tblTempVendorCDR_20' ) start [2025-02-21 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528083', 'tblTempVendorCDR_20' ) end [2025-02-21 22:19:17] Production.INFO: ProcessCDR(1,14528083,1,1,2) [2025-02-21 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528083', 'tblTempUsageDetail_20' ) start [2025-02-21 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528083', 'tblTempUsageDetail_20' ) end [2025-02-21 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:19:21] Production.INFO: ==18509== Releasing lock... [2025-02-21 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:19:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:20:06 [end_date_ymd] => 2025-02-21 22:20:06 [RateCDR] => 1 ) [2025-02-21 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:20:06' and `end` < '2025-02-21 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:20:18] Production.INFO: count ==1787 [2025-02-21 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-21 19:20:06 - End Time 2025-02-21 22:20:06 [2025-02-21 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528089', 'tblTempUsageDetail_20' ) start [2025-02-21 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528089', 'tblTempUsageDetail_20' ) end [2025-02-21 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528089', 'tblTempVendorCDR_20' ) start [2025-02-21 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528089', 'tblTempVendorCDR_20' ) end [2025-02-21 22:20:19] Production.INFO: ProcessCDR(1,14528089,1,1,2) [2025-02-21 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528089', 'tblTempUsageDetail_20' ) start [2025-02-21 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528089', 'tblTempUsageDetail_20' ) end [2025-02-21 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:20:22] Production.INFO: ==18581== Releasing lock... [2025-02-21 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:20:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-21 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:21:05 [end_date_ymd] => 2025-02-21 22:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:21:05' and `end` < '2025-02-21 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-21 22:21:17] Production.INFO: count ==1755 [2025-02-21 22:21:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:21:05 - End Time 2025-02-21 22:21:05 [2025-02-21 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528094', 'tblTempUsageDetail_20' ) start [2025-02-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528094', 'tblTempUsageDetail_20' ) end [2025-02-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528094', 'tblTempVendorCDR_20' ) start [2025-02-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528094', 'tblTempVendorCDR_20' ) end [2025-02-21 22:21:17] Production.INFO: ProcessCDR(1,14528094,1,1,2) [2025-02-21 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528094', 'tblTempUsageDetail_20' ) start [2025-02-21 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528094', 'tblTempUsageDetail_20' ) end [2025-02-21 22:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:21:20] Production.INFO: ==18653== Releasing lock... [2025-02-21 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:21:20] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:22:06 [end_date_ymd] => 2025-02-21 22:22:06 [RateCDR] => 1 ) [2025-02-21 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-21 19:22:06' and `end` < '2025-02-21 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-21 22:22:18] Production.INFO: count ==1754 [2025-02-21 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:22:06 - End Time 2025-02-21 22:22:06 [2025-02-21 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528099', 'tblTempUsageDetail_20' ) start [2025-02-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528099', 'tblTempUsageDetail_20' ) end [2025-02-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528099', 'tblTempVendorCDR_20' ) start [2025-02-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528099', 'tblTempVendorCDR_20' ) end [2025-02-21 22:22:18] Production.INFO: ProcessCDR(1,14528099,1,1,2) [2025-02-21 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528099', 'tblTempUsageDetail_20' ) start [2025-02-21 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528099', 'tblTempUsageDetail_20' ) end [2025-02-21 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:22:22] Production.INFO: ==18723== Releasing lock... [2025-02-21 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:22:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:23:05 [end_date_ymd] => 2025-02-21 22:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:23:05' and `end` < '2025-02-21 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-21 22:23:17] Production.INFO: count ==1751 [2025-02-21 22:23:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:23:05 - End Time 2025-02-21 22:23:05 [2025-02-21 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528104', 'tblTempUsageDetail_20' ) start [2025-02-21 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528104', 'tblTempUsageDetail_20' ) end [2025-02-21 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528104', 'tblTempVendorCDR_20' ) start [2025-02-21 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528104', 'tblTempVendorCDR_20' ) end [2025-02-21 22:23:17] Production.INFO: ProcessCDR(1,14528104,1,1,2) [2025-02-21 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528104', 'tblTempUsageDetail_20' ) start [2025-02-21 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528104', 'tblTempUsageDetail_20' ) end [2025-02-21 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:23:20] Production.INFO: ==18798== Releasing lock... [2025-02-21 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:23:20] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:24:06 [end_date_ymd] => 2025-02-21 22:24:06 [RateCDR] => 1 ) [2025-02-21 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:24:06' and `end` < '2025-02-21 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:24:18] Production.INFO: count ==1747 [2025-02-21 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:24:06 - End Time 2025-02-21 22:24:06 [2025-02-21 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528109', 'tblTempUsageDetail_20' ) start [2025-02-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528109', 'tblTempUsageDetail_20' ) end [2025-02-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528109', 'tblTempVendorCDR_20' ) start [2025-02-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528109', 'tblTempVendorCDR_20' ) end [2025-02-21 22:24:18] Production.INFO: ProcessCDR(1,14528109,1,1,2) [2025-02-21 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528109', 'tblTempUsageDetail_20' ) start [2025-02-21 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528109', 'tblTempUsageDetail_20' ) end [2025-02-21 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:24:21] Production.INFO: ==18870== Releasing lock... [2025-02-21 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:24:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:25:05 [end_date_ymd] => 2025-02-21 22:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:25:05' and `end` < '2025-02-21 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-21 22:25:17] Production.INFO: count ==1744 [2025-02-21 22:25:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:25:05 - End Time 2025-02-21 22:25:05 [2025-02-21 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528114', 'tblTempUsageDetail_20' ) start [2025-02-21 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528114', 'tblTempUsageDetail_20' ) end [2025-02-21 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528114', 'tblTempVendorCDR_20' ) start [2025-02-21 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528114', 'tblTempVendorCDR_20' ) end [2025-02-21 22:25:17] Production.INFO: ProcessCDR(1,14528114,1,1,2) [2025-02-21 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528114', 'tblTempUsageDetail_20' ) start [2025-02-21 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528114', 'tblTempUsageDetail_20' ) end [2025-02-21 22:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:25:20] Production.INFO: ==18941== Releasing lock... [2025-02-21 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:25:20] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:26:05 [end_date_ymd] => 2025-02-21 22:26:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:26:05' and `end` < '2025-02-21 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-21 22:26:17] Production.INFO: count ==1742 [2025-02-21 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:26:05 - End Time 2025-02-21 22:26:05 [2025-02-21 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528119', 'tblTempUsageDetail_20' ) start [2025-02-21 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528119', 'tblTempUsageDetail_20' ) end [2025-02-21 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528119', 'tblTempVendorCDR_20' ) start [2025-02-21 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528119', 'tblTempVendorCDR_20' ) end [2025-02-21 22:26:18] Production.INFO: ProcessCDR(1,14528119,1,1,2) [2025-02-21 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528119', 'tblTempUsageDetail_20' ) start [2025-02-21 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528119', 'tblTempUsageDetail_20' ) end [2025-02-21 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:26:21] Production.INFO: ==19013== Releasing lock... [2025-02-21 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:26:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:27:06 [end_date_ymd] => 2025-02-21 22:27:06 [RateCDR] => 1 ) [2025-02-21 22:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:27:06' and `end` < '2025-02-21 22:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:27:18] Production.INFO: count ==1742 [2025-02-21 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:27:06 - End Time 2025-02-21 22:27:06 [2025-02-21 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528124', 'tblTempUsageDetail_20' ) start [2025-02-21 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528124', 'tblTempUsageDetail_20' ) end [2025-02-21 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528124', 'tblTempVendorCDR_20' ) start [2025-02-21 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528124', 'tblTempVendorCDR_20' ) end [2025-02-21 22:27:18] Production.INFO: ProcessCDR(1,14528124,1,1,2) [2025-02-21 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528124', 'tblTempUsageDetail_20' ) start [2025-02-21 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528124', 'tblTempUsageDetail_20' ) end [2025-02-21 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:27:21] Production.INFO: ==19089== Releasing lock... [2025-02-21 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:27:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:28:05 [end_date_ymd] => 2025-02-21 22:28:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:28:05' and `end` < '2025-02-21 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-21 22:28:17] Production.INFO: count ==1737 [2025-02-21 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:28:05 - End Time 2025-02-21 22:28:05 [2025-02-21 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528129', 'tblTempUsageDetail_20' ) start [2025-02-21 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528129', 'tblTempUsageDetail_20' ) end [2025-02-21 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528129', 'tblTempVendorCDR_20' ) start [2025-02-21 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528129', 'tblTempVendorCDR_20' ) end [2025-02-21 22:28:18] Production.INFO: ProcessCDR(1,14528129,1,1,2) [2025-02-21 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528129', 'tblTempUsageDetail_20' ) start [2025-02-21 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528129', 'tblTempUsageDetail_20' ) end [2025-02-21 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:28:21] Production.INFO: ==19159== Releasing lock... [2025-02-21 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:28:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-21 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:29:05 [end_date_ymd] => 2025-02-21 22:29:05 [RateCDR] => 1 ) [2025-02-21 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:29:05' and `end` < '2025-02-21 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:29:17] Production.INFO: count ==1741 [2025-02-21 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:29:05 - End Time 2025-02-21 22:29:05 [2025-02-21 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528134', 'tblTempUsageDetail_20' ) start [2025-02-21 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528134', 'tblTempUsageDetail_20' ) end [2025-02-21 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528134', 'tblTempVendorCDR_20' ) start [2025-02-21 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528134', 'tblTempVendorCDR_20' ) end [2025-02-21 22:29:18] Production.INFO: ProcessCDR(1,14528134,1,1,2) [2025-02-21 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528134', 'tblTempUsageDetail_20' ) start [2025-02-21 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528134', 'tblTempUsageDetail_20' ) end [2025-02-21 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:29:21] Production.INFO: ==19236== Releasing lock... [2025-02-21 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:29:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-21 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:30:05 [end_date_ymd] => 2025-02-21 22:30:05 [RateCDR] => 1 ) [2025-02-21 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:30:05' and `end` < '2025-02-21 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:30:17] Production.INFO: count ==1788 [2025-02-21 22:30:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:30:05 - End Time 2025-02-21 22:30:05 [2025-02-21 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528139', 'tblTempUsageDetail_20' ) start [2025-02-21 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528139', 'tblTempUsageDetail_20' ) end [2025-02-21 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528139', 'tblTempVendorCDR_20' ) start [2025-02-21 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528139', 'tblTempVendorCDR_20' ) end [2025-02-21 22:30:18] Production.INFO: ProcessCDR(1,14528139,1,1,2) [2025-02-21 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528139', 'tblTempUsageDetail_20' ) start [2025-02-21 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528139', 'tblTempUsageDetail_20' ) end [2025-02-21 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:30:21] Production.INFO: ==19310== Releasing lock... [2025-02-21 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:30:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:31:05 [end_date_ymd] => 2025-02-21 22:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:31:05' and `end` < '2025-02-21 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-21 22:31:17] Production.INFO: count ==1747 [2025-02-21 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:31:05 - End Time 2025-02-21 22:31:05 [2025-02-21 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528145', 'tblTempUsageDetail_20' ) start [2025-02-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528145', 'tblTempUsageDetail_20' ) end [2025-02-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528145', 'tblTempVendorCDR_20' ) start [2025-02-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528145', 'tblTempVendorCDR_20' ) end [2025-02-21 22:31:18] Production.INFO: ProcessCDR(1,14528145,1,1,2) [2025-02-21 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528145', 'tblTempUsageDetail_20' ) start [2025-02-21 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528145', 'tblTempUsageDetail_20' ) end [2025-02-21 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:31:21] Production.INFO: ==19391== Releasing lock... [2025-02-21 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:31:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-21 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:32:05 [end_date_ymd] => 2025-02-21 22:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:32:05' and `end` < '2025-02-21 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-21 22:32:17] Production.INFO: count ==1745 [2025-02-21 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:32:05 - End Time 2025-02-21 22:32:05 [2025-02-21 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528150', 'tblTempUsageDetail_20' ) start [2025-02-21 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528150', 'tblTempUsageDetail_20' ) end [2025-02-21 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528150', 'tblTempVendorCDR_20' ) start [2025-02-21 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528150', 'tblTempVendorCDR_20' ) end [2025-02-21 22:32:18] Production.INFO: ProcessCDR(1,14528150,1,1,2) [2025-02-21 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528150', 'tblTempUsageDetail_20' ) start [2025-02-21 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528150', 'tblTempUsageDetail_20' ) end [2025-02-21 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:32:21] Production.INFO: ==19500== Releasing lock... [2025-02-21 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:32:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:33:06 [end_date_ymd] => 2025-02-21 22:33:06 [RateCDR] => 1 ) [2025-02-21 22: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-21 19:33:06' and `end` < '2025-02-21 22: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-21 22:33:18] Production.INFO: count ==1743 [2025-02-21 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:33:06 - End Time 2025-02-21 22:33:06 [2025-02-21 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528155', 'tblTempUsageDetail_20' ) start [2025-02-21 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528155', 'tblTempUsageDetail_20' ) end [2025-02-21 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528155', 'tblTempVendorCDR_20' ) start [2025-02-21 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528155', 'tblTempVendorCDR_20' ) end [2025-02-21 22:33:18] Production.INFO: ProcessCDR(1,14528155,1,1,2) [2025-02-21 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528155', 'tblTempUsageDetail_20' ) start [2025-02-21 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528155', 'tblTempUsageDetail_20' ) end [2025-02-21 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:33:23] Production.INFO: ==19570== Releasing lock... [2025-02-21 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:33:23] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:34:05 [end_date_ymd] => 2025-02-21 22:34:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:34:05' and `end` < '2025-02-21 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-21 22:34:17] Production.INFO: count ==1747 [2025-02-21 22:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:34:05 - End Time 2025-02-21 22:34:05 [2025-02-21 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528160', 'tblTempUsageDetail_20' ) start [2025-02-21 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528160', 'tblTempUsageDetail_20' ) end [2025-02-21 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528160', 'tblTempVendorCDR_20' ) start [2025-02-21 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528160', 'tblTempVendorCDR_20' ) end [2025-02-21 22:34:17] Production.INFO: ProcessCDR(1,14528160,1,1,2) [2025-02-21 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528160', 'tblTempUsageDetail_20' ) start [2025-02-21 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528160', 'tblTempUsageDetail_20' ) end [2025-02-21 22:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:34:20] Production.INFO: ==19641== Releasing lock... [2025-02-21 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:34:20] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:35:05 [end_date_ymd] => 2025-02-21 22:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:35:05' and `end` < '2025-02-21 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-21 22:35:17] Production.INFO: count ==1747 [2025-02-21 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:35:05 - End Time 2025-02-21 22:35:05 [2025-02-21 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528165', 'tblTempUsageDetail_20' ) start [2025-02-21 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528165', 'tblTempUsageDetail_20' ) end [2025-02-21 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528165', 'tblTempVendorCDR_20' ) start [2025-02-21 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528165', 'tblTempVendorCDR_20' ) end [2025-02-21 22:35:18] Production.INFO: ProcessCDR(1,14528165,1,1,2) [2025-02-21 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528165', 'tblTempUsageDetail_20' ) start [2025-02-21 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528165', 'tblTempUsageDetail_20' ) end [2025-02-21 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:35:21] Production.INFO: ==19711== Releasing lock... [2025-02-21 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:35:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:36:05 [end_date_ymd] => 2025-02-21 22:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:36:05' and `end` < '2025-02-21 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-21 22:36:17] Production.INFO: count ==1746 [2025-02-21 22:36:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:36:05 - End Time 2025-02-21 22:36:05 [2025-02-21 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528170', 'tblTempUsageDetail_20' ) start [2025-02-21 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528170', 'tblTempUsageDetail_20' ) end [2025-02-21 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528170', 'tblTempVendorCDR_20' ) start [2025-02-21 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528170', 'tblTempVendorCDR_20' ) end [2025-02-21 22:36:18] Production.INFO: ProcessCDR(1,14528170,1,1,2) [2025-02-21 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528170', 'tblTempUsageDetail_20' ) start [2025-02-21 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528170', 'tblTempUsageDetail_20' ) end [2025-02-21 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:36:23] Production.INFO: ==19782== Releasing lock... [2025-02-21 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:36:23] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:37:05 [end_date_ymd] => 2025-02-21 22:37:05 [RateCDR] => 1 ) [2025-02-21 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:37:05' and `end` < '2025-02-21 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:37:17] Production.INFO: count ==1748 [2025-02-21 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:37:05 - End Time 2025-02-21 22:37:05 [2025-02-21 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528175', 'tblTempUsageDetail_20' ) start [2025-02-21 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528175', 'tblTempUsageDetail_20' ) end [2025-02-21 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528175', 'tblTempVendorCDR_20' ) start [2025-02-21 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528175', 'tblTempVendorCDR_20' ) end [2025-02-21 22:37:18] Production.INFO: ProcessCDR(1,14528175,1,1,2) [2025-02-21 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528175', 'tblTempUsageDetail_20' ) start [2025-02-21 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528175', 'tblTempUsageDetail_20' ) end [2025-02-21 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:37:21] Production.INFO: ==19852== Releasing lock... [2025-02-21 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:37:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:38:05 [end_date_ymd] => 2025-02-21 22:38:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:38:05' and `end` < '2025-02-21 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-21 22:38:17] Production.INFO: count ==1742 [2025-02-21 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:38:05 - End Time 2025-02-21 22:38:05 [2025-02-21 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528180', 'tblTempUsageDetail_20' ) start [2025-02-21 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528180', 'tblTempUsageDetail_20' ) end [2025-02-21 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528180', 'tblTempVendorCDR_20' ) start [2025-02-21 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528180', 'tblTempVendorCDR_20' ) end [2025-02-21 22:38:18] Production.INFO: ProcessCDR(1,14528180,1,1,2) [2025-02-21 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528180', 'tblTempUsageDetail_20' ) start [2025-02-21 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528180', 'tblTempUsageDetail_20' ) end [2025-02-21 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:38:21] Production.INFO: ==19926== Releasing lock... [2025-02-21 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:38:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:39:05 [end_date_ymd] => 2025-02-21 22:39:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:39:05' and `end` < '2025-02-21 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-21 22:39:17] Production.INFO: count ==1746 [2025-02-21 22:39:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:39:05 - End Time 2025-02-21 22:39:05 [2025-02-21 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528185', 'tblTempUsageDetail_20' ) start [2025-02-21 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528185', 'tblTempUsageDetail_20' ) end [2025-02-21 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528185', 'tblTempVendorCDR_20' ) start [2025-02-21 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528185', 'tblTempVendorCDR_20' ) end [2025-02-21 22:39:17] Production.INFO: ProcessCDR(1,14528185,1,1,2) [2025-02-21 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528185', 'tblTempUsageDetail_20' ) start [2025-02-21 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528185', 'tblTempUsageDetail_20' ) end [2025-02-21 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:39:21] Production.INFO: ==19999== Releasing lock... [2025-02-21 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:39:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:40:07 [end_date_ymd] => 2025-02-21 22:40:07 [RateCDR] => 1 ) [2025-02-21 22: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-21 19:40:07' and `end` < '2025-02-21 22: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-21 22:40:19] Production.INFO: count ==1735 [2025-02-21 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-21 19:40:07 - End Time 2025-02-21 22:40:07 [2025-02-21 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528191', 'tblTempUsageDetail_20' ) start [2025-02-21 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528191', 'tblTempUsageDetail_20' ) end [2025-02-21 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528191', 'tblTempVendorCDR_20' ) start [2025-02-21 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528191', 'tblTempVendorCDR_20' ) end [2025-02-21 22:40:19] Production.INFO: ProcessCDR(1,14528191,1,1,2) [2025-02-21 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528191', 'tblTempUsageDetail_20' ) start [2025-02-21 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528191', 'tblTempUsageDetail_20' ) end [2025-02-21 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:40:22] Production.INFO: ==20072== Releasing lock... [2025-02-21 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:40:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:41:05 [end_date_ymd] => 2025-02-21 22:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:41:05' and `end` < '2025-02-21 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-21 22:41:17] Production.INFO: count ==1692 [2025-02-21 22:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:41:05 - End Time 2025-02-21 22:41:05 [2025-02-21 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528196', 'tblTempUsageDetail_20' ) start [2025-02-21 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528196', 'tblTempUsageDetail_20' ) end [2025-02-21 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528196', 'tblTempVendorCDR_20' ) start [2025-02-21 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528196', 'tblTempVendorCDR_20' ) end [2025-02-21 22:41:17] Production.INFO: ProcessCDR(1,14528196,1,1,2) [2025-02-21 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528196', 'tblTempUsageDetail_20' ) start [2025-02-21 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528196', 'tblTempUsageDetail_20' ) end [2025-02-21 22:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:41:20] Production.INFO: ==20144== Releasing lock... [2025-02-21 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:41:20] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:42:06 [end_date_ymd] => 2025-02-21 22:42:06 [RateCDR] => 1 ) [2025-02-21 22: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-21 19:42:06' and `end` < '2025-02-21 22: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-21 22:42:18] Production.INFO: count ==1692 [2025-02-21 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:42:06 - End Time 2025-02-21 22:42:06 [2025-02-21 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528201', 'tblTempUsageDetail_20' ) start [2025-02-21 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528201', 'tblTempUsageDetail_20' ) end [2025-02-21 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528201', 'tblTempVendorCDR_20' ) start [2025-02-21 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528201', 'tblTempVendorCDR_20' ) end [2025-02-21 22:42:18] Production.INFO: ProcessCDR(1,14528201,1,1,2) [2025-02-21 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528201', 'tblTempUsageDetail_20' ) start [2025-02-21 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528201', 'tblTempUsageDetail_20' ) end [2025-02-21 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:42:21] Production.INFO: ==20216== Releasing lock... [2025-02-21 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:42:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:43:05 [end_date_ymd] => 2025-02-21 22:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:43:05' and `end` < '2025-02-21 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-21 22:43:17] Production.INFO: count ==1692 [2025-02-21 22:43:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:43:05 - End Time 2025-02-21 22:43:05 [2025-02-21 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528206', 'tblTempUsageDetail_20' ) start [2025-02-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528206', 'tblTempUsageDetail_20' ) end [2025-02-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528206', 'tblTempVendorCDR_20' ) start [2025-02-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528206', 'tblTempVendorCDR_20' ) end [2025-02-21 22:43:18] Production.INFO: ProcessCDR(1,14528206,1,1,2) [2025-02-21 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528206', 'tblTempUsageDetail_20' ) start [2025-02-21 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528206', 'tblTempUsageDetail_20' ) end [2025-02-21 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:43:21] Production.INFO: ==20292== Releasing lock... [2025-02-21 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:43:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:44:05 [end_date_ymd] => 2025-02-21 22:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:44:05' and `end` < '2025-02-21 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-21 22:44:17] Production.INFO: count ==1692 [2025-02-21 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:44:05 - End Time 2025-02-21 22:44:05 [2025-02-21 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528211', 'tblTempUsageDetail_20' ) start [2025-02-21 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528211', 'tblTempUsageDetail_20' ) end [2025-02-21 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528211', 'tblTempVendorCDR_20' ) start [2025-02-21 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528211', 'tblTempVendorCDR_20' ) end [2025-02-21 22:44:18] Production.INFO: ProcessCDR(1,14528211,1,1,2) [2025-02-21 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528211', 'tblTempUsageDetail_20' ) start [2025-02-21 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528211', 'tblTempUsageDetail_20' ) end [2025-02-21 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:44:21] Production.INFO: ==20365== Releasing lock... [2025-02-21 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:44:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:45:05 [end_date_ymd] => 2025-02-21 22:45:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:45:05' and `end` < '2025-02-21 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-21 22:45:17] Production.INFO: count ==1698 [2025-02-21 22:45:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:45:05 - End Time 2025-02-21 22:45:05 [2025-02-21 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528216', 'tblTempUsageDetail_20' ) start [2025-02-21 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528216', 'tblTempUsageDetail_20' ) end [2025-02-21 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528216', 'tblTempVendorCDR_20' ) start [2025-02-21 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528216', 'tblTempVendorCDR_20' ) end [2025-02-21 22:45:18] Production.INFO: ProcessCDR(1,14528216,1,1,2) [2025-02-21 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528216', 'tblTempUsageDetail_20' ) start [2025-02-21 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528216', 'tblTempUsageDetail_20' ) end [2025-02-21 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:45:22] Production.INFO: ==20435== Releasing lock... [2025-02-21 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:45:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-21 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:46:06 [end_date_ymd] => 2025-02-21 22:46:06 [RateCDR] => 1 ) [2025-02-21 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:46:06' and `end` < '2025-02-21 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:46:18] Production.INFO: count ==1702 [2025-02-21 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:46:06 - End Time 2025-02-21 22:46:06 [2025-02-21 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528221', 'tblTempUsageDetail_20' ) start [2025-02-21 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528221', 'tblTempUsageDetail_20' ) end [2025-02-21 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528221', 'tblTempVendorCDR_20' ) start [2025-02-21 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528221', 'tblTempVendorCDR_20' ) end [2025-02-21 22:46:18] Production.INFO: ProcessCDR(1,14528221,1,1,2) [2025-02-21 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528221', 'tblTempUsageDetail_20' ) start [2025-02-21 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528221', 'tblTempUsageDetail_20' ) end [2025-02-21 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:46:22] Production.INFO: ==20508== Releasing lock... [2025-02-21 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:46:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-21 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:47:04 [end_date_ymd] => 2025-02-21 22:47:04 [RateCDR] => 1 ) [2025-02-21 22:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:47:04' and `end` < '2025-02-21 22:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:47:16] Production.INFO: count ==1717 [2025-02-21 22:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:47:04 - End Time 2025-02-21 22:47:04 [2025-02-21 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528222', 'tblTempUsageDetail_20' ) start [2025-02-21 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528222', 'tblTempUsageDetail_20' ) end [2025-02-21 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528222', 'tblTempVendorCDR_20' ) start [2025-02-21 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528222', 'tblTempVendorCDR_20' ) end [2025-02-21 22:47:17] Production.INFO: ProcessCDR(1,14528222,1,1,2) [2025-02-21 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528222', 'tblTempUsageDetail_20' ) start [2025-02-21 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528222', 'tblTempUsageDetail_20' ) end [2025-02-21 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:47:22] Production.INFO: ==20618== Releasing lock... [2025-02-21 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:47:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:48:05 [end_date_ymd] => 2025-02-21 22:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:48:05' and `end` < '2025-02-21 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-21 22:48:17] Production.INFO: count ==1713 [2025-02-21 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:48:05 - End Time 2025-02-21 22:48:05 [2025-02-21 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528231', 'tblTempUsageDetail_20' ) start [2025-02-21 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528231', 'tblTempUsageDetail_20' ) end [2025-02-21 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528231', 'tblTempVendorCDR_20' ) start [2025-02-21 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528231', 'tblTempVendorCDR_20' ) end [2025-02-21 22:48:18] Production.INFO: ProcessCDR(1,14528231,1,1,2) [2025-02-21 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528231', 'tblTempUsageDetail_20' ) start [2025-02-21 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528231', 'tblTempUsageDetail_20' ) end [2025-02-21 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:48:21] Production.INFO: ==20687== Releasing lock... [2025-02-21 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:48:21] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:49:05 [end_date_ymd] => 2025-02-21 22:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:49:05' and `end` < '2025-02-21 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-21 22:49:17] Production.INFO: count ==1713 [2025-02-21 22:49:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:49:05 - End Time 2025-02-21 22:49:05 [2025-02-21 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528236', 'tblTempUsageDetail_20' ) start [2025-02-21 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528236', 'tblTempUsageDetail_20' ) end [2025-02-21 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528236', 'tblTempVendorCDR_20' ) start [2025-02-21 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528236', 'tblTempVendorCDR_20' ) end [2025-02-21 22:49:17] Production.INFO: ProcessCDR(1,14528236,1,1,2) [2025-02-21 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528236', 'tblTempUsageDetail_20' ) start [2025-02-21 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528236', 'tblTempUsageDetail_20' ) end [2025-02-21 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:49:20] Production.INFO: ==20758== Releasing lock... [2025-02-21 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:49:20] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:50:06 [end_date_ymd] => 2025-02-21 22:50:06 [RateCDR] => 1 ) [2025-02-21 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-21 19:50:06' and `end` < '2025-02-21 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-21 22:50:18] Production.INFO: count ==1712 [2025-02-21 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-21 19:50:06 - End Time 2025-02-21 22:50:06 [2025-02-21 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528242', 'tblTempUsageDetail_20' ) start [2025-02-21 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528242', 'tblTempUsageDetail_20' ) end [2025-02-21 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528242', 'tblTempVendorCDR_20' ) start [2025-02-21 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528242', 'tblTempVendorCDR_20' ) end [2025-02-21 22:50:19] Production.INFO: ProcessCDR(1,14528242,1,1,2) [2025-02-21 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528242', 'tblTempUsageDetail_20' ) start [2025-02-21 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528242', 'tblTempUsageDetail_20' ) end [2025-02-21 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:50:22] Production.INFO: ==20830== Releasing lock... [2025-02-21 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:50:22] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:51:05 [end_date_ymd] => 2025-02-21 22:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:51:05' and `end` < '2025-02-21 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-21 22:51:17] Production.INFO: count ==1693 [2025-02-21 22:51:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:51:05 - End Time 2025-02-21 22:51:05 [2025-02-21 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528247', 'tblTempUsageDetail_20' ) start [2025-02-21 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528247', 'tblTempUsageDetail_20' ) end [2025-02-21 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528247', 'tblTempVendorCDR_20' ) start [2025-02-21 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528247', 'tblTempVendorCDR_20' ) end [2025-02-21 22:51:17] Production.INFO: ProcessCDR(1,14528247,1,1,2) [2025-02-21 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528247', 'tblTempUsageDetail_20' ) start [2025-02-21 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528247', 'tblTempUsageDetail_20' ) end [2025-02-21 22:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:51:20] Production.INFO: ==20908== Releasing lock... [2025-02-21 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:51:20] Production.INFO: 40.75 MB #Memory Used# [2025-02-21 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:52:05 [end_date_ymd] => 2025-02-21 22:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:52:05' and `end` < '2025-02-21 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-21 22:52:17] Production.INFO: count ==1693 [2025-02-21 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:52:05 - End Time 2025-02-21 22:52:05 [2025-02-21 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528252', 'tblTempUsageDetail_20' ) start [2025-02-21 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528252', 'tblTempUsageDetail_20' ) end [2025-02-21 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528252', 'tblTempVendorCDR_20' ) start [2025-02-21 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528252', 'tblTempVendorCDR_20' ) end [2025-02-21 22:52:18] Production.INFO: ProcessCDR(1,14528252,1,1,2) [2025-02-21 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528252', 'tblTempUsageDetail_20' ) start [2025-02-21 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528252', 'tblTempUsageDetail_20' ) end [2025-02-21 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:52:21] Production.INFO: ==20979== Releasing lock... [2025-02-21 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:52:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-21 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:53:05 [end_date_ymd] => 2025-02-21 22:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:53:05' and `end` < '2025-02-21 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-21 22:53:16] Production.INFO: count ==1685 [2025-02-21 22:53:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:53:05 - End Time 2025-02-21 22:53:05 [2025-02-21 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528257', 'tblTempUsageDetail_20' ) start [2025-02-21 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528257', 'tblTempUsageDetail_20' ) end [2025-02-21 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528257', 'tblTempVendorCDR_20' ) start [2025-02-21 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528257', 'tblTempVendorCDR_20' ) end [2025-02-21 22:53:17] Production.INFO: ProcessCDR(1,14528257,1,1,2) [2025-02-21 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528257', 'tblTempUsageDetail_20' ) start [2025-02-21 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528257', 'tblTempUsageDetail_20' ) end [2025-02-21 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:53:20] Production.INFO: ==21054== Releasing lock... [2025-02-21 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:53:20] Production.INFO: 41 MB #Memory Used# [2025-02-21 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:54:05 [end_date_ymd] => 2025-02-21 22:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:54:05' and `end` < '2025-02-21 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-21 22:54:17] Production.INFO: count ==1671 [2025-02-21 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:54:05 - End Time 2025-02-21 22:54:05 [2025-02-21 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528262', 'tblTempUsageDetail_20' ) start [2025-02-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528262', 'tblTempUsageDetail_20' ) end [2025-02-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528262', 'tblTempVendorCDR_20' ) start [2025-02-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528262', 'tblTempVendorCDR_20' ) end [2025-02-21 22:54:18] Production.INFO: ProcessCDR(1,14528262,1,1,2) [2025-02-21 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528262', 'tblTempUsageDetail_20' ) start [2025-02-21 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528262', 'tblTempUsageDetail_20' ) end [2025-02-21 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:54:21] Production.INFO: ==21131== Releasing lock... [2025-02-21 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:54:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-21 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:55:05 [end_date_ymd] => 2025-02-21 22:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:55:05' and `end` < '2025-02-21 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-21 22:55:17] Production.INFO: count ==1651 [2025-02-21 22:55:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:55:05 - End Time 2025-02-21 22:55:05 [2025-02-21 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528267', 'tblTempUsageDetail_20' ) start [2025-02-21 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528267', 'tblTempUsageDetail_20' ) end [2025-02-21 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528267', 'tblTempVendorCDR_20' ) start [2025-02-21 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528267', 'tblTempVendorCDR_20' ) end [2025-02-21 22:55:18] Production.INFO: ProcessCDR(1,14528267,1,1,2) [2025-02-21 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528267', 'tblTempUsageDetail_20' ) start [2025-02-21 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528267', 'tblTempUsageDetail_20' ) end [2025-02-21 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:55:21] Production.INFO: ==21204== Releasing lock... [2025-02-21 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:55:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-21 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:56:05 [end_date_ymd] => 2025-02-21 22:56:05 [RateCDR] => 1 ) [2025-02-21 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 19:56:05' and `end` < '2025-02-21 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 22:56:18] Production.INFO: count ==1640 [2025-02-21 22:56:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:56:05 - End Time 2025-02-21 22:56:05 [2025-02-21 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528272', 'tblTempUsageDetail_20' ) start [2025-02-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528272', 'tblTempUsageDetail_20' ) end [2025-02-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528272', 'tblTempVendorCDR_20' ) start [2025-02-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528272', 'tblTempVendorCDR_20' ) end [2025-02-21 22:56:18] Production.INFO: ProcessCDR(1,14528272,1,1,2) [2025-02-21 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528272', 'tblTempUsageDetail_20' ) start [2025-02-21 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528272', 'tblTempUsageDetail_20' ) end [2025-02-21 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:56:21] Production.INFO: ==21278== Releasing lock... [2025-02-21 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:56:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-21 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:57:06 [end_date_ymd] => 2025-02-21 22:57:06 [RateCDR] => 1 ) [2025-02-21 22: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-21 19:57:06' and `end` < '2025-02-21 22: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-21 22:57:18] Production.INFO: count ==1639 [2025-02-21 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:57:06 - End Time 2025-02-21 22:57:06 [2025-02-21 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528277', 'tblTempUsageDetail_20' ) start [2025-02-21 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528277', 'tblTempUsageDetail_20' ) end [2025-02-21 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528277', 'tblTempVendorCDR_20' ) start [2025-02-21 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528277', 'tblTempVendorCDR_20' ) end [2025-02-21 22:57:18] Production.INFO: ProcessCDR(1,14528277,1,1,2) [2025-02-21 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528277', 'tblTempUsageDetail_20' ) start [2025-02-21 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528277', 'tblTempUsageDetail_20' ) end [2025-02-21 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:57:21] Production.INFO: ==21358== Releasing lock... [2025-02-21 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:57:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-21 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:58:05 [end_date_ymd] => 2025-02-21 22:58:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:58:05' and `end` < '2025-02-21 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-21 22:58:17] Production.INFO: count ==1633 [2025-02-21 22:58:17] Production.ERROR: pbx CDR StartTime 2025-02-21 19:58:05 - End Time 2025-02-21 22:58:05 [2025-02-21 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528282', 'tblTempUsageDetail_20' ) start [2025-02-21 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528282', 'tblTempUsageDetail_20' ) end [2025-02-21 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528282', 'tblTempVendorCDR_20' ) start [2025-02-21 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528282', 'tblTempVendorCDR_20' ) end [2025-02-21 22:58:17] Production.INFO: ProcessCDR(1,14528282,1,1,2) [2025-02-21 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528282', 'tblTempUsageDetail_20' ) start [2025-02-21 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528282', 'tblTempUsageDetail_20' ) end [2025-02-21 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:58:21] Production.INFO: ==21429== Releasing lock... [2025-02-21 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:58:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-21 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 19:59:05 [end_date_ymd] => 2025-02-21 22:59:05 [RateCDR] => 1 ) [2025-02-21 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-21 19:59:05' and `end` < '2025-02-21 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-21 22:59:17] Production.INFO: count ==1632 [2025-02-21 22:59:18] Production.ERROR: pbx CDR StartTime 2025-02-21 19:59:05 - End Time 2025-02-21 22:59:05 [2025-02-21 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528287', 'tblTempUsageDetail_20' ) start [2025-02-21 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528287', 'tblTempUsageDetail_20' ) end [2025-02-21 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528287', 'tblTempVendorCDR_20' ) start [2025-02-21 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528287', 'tblTempVendorCDR_20' ) end [2025-02-21 22:59:18] Production.INFO: ProcessCDR(1,14528287,1,1,2) [2025-02-21 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528287', 'tblTempUsageDetail_20' ) start [2025-02-21 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528287', 'tblTempUsageDetail_20' ) end [2025-02-21 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 22:59:21] Production.INFO: ==21504== Releasing lock... [2025-02-21 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 22:59:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-21 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:00:05 [end_date_ymd] => 2025-02-21 23:00:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:00:05' and `end` < '2025-02-21 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-21 23:00:17] Production.INFO: count ==1629 [2025-02-21 23:00:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:00:05 - End Time 2025-02-21 23:00:05 [2025-02-21 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528293', 'tblTempUsageDetail_20' ) start [2025-02-21 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528293', 'tblTempUsageDetail_20' ) end [2025-02-21 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528293', 'tblTempVendorCDR_20' ) start [2025-02-21 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528293', 'tblTempVendorCDR_20' ) end [2025-02-21 23:00:18] Production.INFO: ProcessCDR(1,14528293,1,1,2) [2025-02-21 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528293', 'tblTempUsageDetail_20' ) start [2025-02-21 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528293', 'tblTempUsageDetail_20' ) end [2025-02-21 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:00:21] Production.INFO: ==21584== Releasing lock... [2025-02-21 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:00:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-21 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:01:06 [end_date_ymd] => 2025-02-21 23:01:06 [RateCDR] => 1 ) [2025-02-21 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-21 20:01:06' and `end` < '2025-02-21 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-21 23:01:17] Production.INFO: count ==1585 [2025-02-21 23:01:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:01:06 - End Time 2025-02-21 23:01:06 [2025-02-21 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528298', 'tblTempUsageDetail_20' ) start [2025-02-21 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528298', 'tblTempUsageDetail_20' ) end [2025-02-21 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528298', 'tblTempVendorCDR_20' ) start [2025-02-21 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528298', 'tblTempVendorCDR_20' ) end [2025-02-21 23:01:18] Production.INFO: ProcessCDR(1,14528298,1,1,2) [2025-02-21 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528298', 'tblTempUsageDetail_20' ) start [2025-02-21 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528298', 'tblTempUsageDetail_20' ) end [2025-02-21 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:01:23] Production.INFO: ==21676== Releasing lock... [2025-02-21 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:01:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-21 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:02:05 [end_date_ymd] => 2025-02-21 23:02:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:02:05' and `end` < '2025-02-21 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-21 23:02:17] Production.INFO: count ==1576 [2025-02-21 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:02:05 - End Time 2025-02-21 23:02:05 [2025-02-21 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528303', 'tblTempUsageDetail_20' ) start [2025-02-21 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528303', 'tblTempUsageDetail_20' ) end [2025-02-21 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528303', 'tblTempVendorCDR_20' ) start [2025-02-21 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528303', 'tblTempVendorCDR_20' ) end [2025-02-21 23:02:18] Production.INFO: ProcessCDR(1,14528303,1,1,2) [2025-02-21 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528303', 'tblTempUsageDetail_20' ) start [2025-02-21 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528303', 'tblTempUsageDetail_20' ) end [2025-02-21 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:02:21] Production.INFO: ==21827== Releasing lock... [2025-02-21 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:02:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-21 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:03:06 [end_date_ymd] => 2025-02-21 23:03:06 [RateCDR] => 1 ) [2025-02-21 23:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:03:06' and `end` < '2025-02-21 23:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:03:18] Production.INFO: count ==1575 [2025-02-21 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:03:06 - End Time 2025-02-21 23:03:06 [2025-02-21 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528308', 'tblTempUsageDetail_20' ) start [2025-02-21 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528308', 'tblTempUsageDetail_20' ) end [2025-02-21 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528308', 'tblTempVendorCDR_20' ) start [2025-02-21 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528308', 'tblTempVendorCDR_20' ) end [2025-02-21 23:03:18] Production.INFO: ProcessCDR(1,14528308,1,1,2) [2025-02-21 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528308', 'tblTempUsageDetail_20' ) start [2025-02-21 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528308', 'tblTempUsageDetail_20' ) end [2025-02-21 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:03:23] Production.INFO: ==21946== Releasing lock... [2025-02-21 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:03:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-21 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:04:05 [end_date_ymd] => 2025-02-21 23:04:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:04:05' and `end` < '2025-02-21 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-21 23:04:17] Production.INFO: count ==1561 [2025-02-21 23:04:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:04:05 - End Time 2025-02-21 23:04:05 [2025-02-21 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528313', 'tblTempUsageDetail_20' ) start [2025-02-21 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528313', 'tblTempUsageDetail_20' ) end [2025-02-21 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528313', 'tblTempVendorCDR_20' ) start [2025-02-21 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528313', 'tblTempVendorCDR_20' ) end [2025-02-21 23:04:17] Production.INFO: ProcessCDR(1,14528313,1,1,2) [2025-02-21 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528313', 'tblTempUsageDetail_20' ) start [2025-02-21 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528313', 'tblTempUsageDetail_20' ) end [2025-02-21 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:04:22] Production.INFO: ==22024== Releasing lock... [2025-02-21 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:04:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-21 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:05:05 [end_date_ymd] => 2025-02-21 23:05:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:05:05' and `end` < '2025-02-21 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-21 23:05:17] Production.INFO: count ==1547 [2025-02-21 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:05:05 - End Time 2025-02-21 23:05:05 [2025-02-21 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528318', 'tblTempUsageDetail_20' ) start [2025-02-21 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528318', 'tblTempUsageDetail_20' ) end [2025-02-21 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528318', 'tblTempVendorCDR_20' ) start [2025-02-21 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528318', 'tblTempVendorCDR_20' ) end [2025-02-21 23:05:18] Production.INFO: ProcessCDR(1,14528318,1,1,2) [2025-02-21 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528318', 'tblTempUsageDetail_20' ) start [2025-02-21 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528318', 'tblTempUsageDetail_20' ) end [2025-02-21 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:05:21] Production.INFO: ==22180== Releasing lock... [2025-02-21 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:05:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-21 23:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:06:04 [end_date_ymd] => 2025-02-21 23:06:04 [RateCDR] => 1 ) [2025-02-21 23: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-21 20:06:04' and `end` < '2025-02-21 23: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-21 23:06:16] Production.INFO: count ==1533 [2025-02-21 23:06:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:06:04 - End Time 2025-02-21 23:06:04 [2025-02-21 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528323', 'tblTempUsageDetail_20' ) start [2025-02-21 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528323', 'tblTempUsageDetail_20' ) end [2025-02-21 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528323', 'tblTempVendorCDR_20' ) start [2025-02-21 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528323', 'tblTempVendorCDR_20' ) end [2025-02-21 23:06:17] Production.INFO: ProcessCDR(1,14528323,1,1,2) [2025-02-21 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528323', 'tblTempUsageDetail_20' ) start [2025-02-21 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528323', 'tblTempUsageDetail_20' ) end [2025-02-21 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:06:20] Production.INFO: ==22252== Releasing lock... [2025-02-21 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:06:20] Production.INFO: 39.5 MB #Memory Used# [2025-02-21 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:07:05 [end_date_ymd] => 2025-02-21 23:07:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:07:05' and `end` < '2025-02-21 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-21 23:07:17] Production.INFO: count ==1527 [2025-02-21 23:07:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:07:05 - End Time 2025-02-21 23:07:05 [2025-02-21 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528328', 'tblTempUsageDetail_20' ) start [2025-02-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528328', 'tblTempUsageDetail_20' ) end [2025-02-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528328', 'tblTempVendorCDR_20' ) start [2025-02-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528328', 'tblTempVendorCDR_20' ) end [2025-02-21 23:07:18] Production.INFO: ProcessCDR(1,14528328,1,1,2) [2025-02-21 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528328', 'tblTempUsageDetail_20' ) start [2025-02-21 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528328', 'tblTempUsageDetail_20' ) end [2025-02-21 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:07:21] Production.INFO: ==22329== Releasing lock... [2025-02-21 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:07:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-21 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:08:06 [end_date_ymd] => 2025-02-21 23:08:06 [RateCDR] => 1 ) [2025-02-21 23:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:08:06' and `end` < '2025-02-21 23:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:08:18] Production.INFO: count ==1516 [2025-02-21 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:08:06 - End Time 2025-02-21 23:08:06 [2025-02-21 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528333', 'tblTempUsageDetail_20' ) start [2025-02-21 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528333', 'tblTempUsageDetail_20' ) end [2025-02-21 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528333', 'tblTempVendorCDR_20' ) start [2025-02-21 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528333', 'tblTempVendorCDR_20' ) end [2025-02-21 23:08:18] Production.INFO: ProcessCDR(1,14528333,1,1,2) [2025-02-21 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528333', 'tblTempUsageDetail_20' ) start [2025-02-21 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528333', 'tblTempUsageDetail_20' ) end [2025-02-21 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:08:21] Production.INFO: ==22406== Releasing lock... [2025-02-21 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:08:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-21 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:09:05 [end_date_ymd] => 2025-02-21 23:09:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:09:05' and `end` < '2025-02-21 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-21 23:09:17] Production.INFO: count ==1508 [2025-02-21 23:09:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:09:05 - End Time 2025-02-21 23:09:05 [2025-02-21 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528338', 'tblTempUsageDetail_20' ) start [2025-02-21 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528338', 'tblTempUsageDetail_20' ) end [2025-02-21 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528338', 'tblTempVendorCDR_20' ) start [2025-02-21 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528338', 'tblTempVendorCDR_20' ) end [2025-02-21 23:09:18] Production.INFO: ProcessCDR(1,14528338,1,1,2) [2025-02-21 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528338', 'tblTempUsageDetail_20' ) start [2025-02-21 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528338', 'tblTempUsageDetail_20' ) end [2025-02-21 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:09:21] Production.INFO: ==22563== Releasing lock... [2025-02-21 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:09:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-21 23:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:10:07 [end_date_ymd] => 2025-02-21 23:10:07 [RateCDR] => 1 ) [2025-02-21 23: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-21 20:10:07' and `end` < '2025-02-21 23: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-21 23:10:19] Production.INFO: count ==1497 [2025-02-21 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-21 20:10:07 - End Time 2025-02-21 23:10:07 [2025-02-21 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528344', 'tblTempUsageDetail_20' ) start [2025-02-21 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528344', 'tblTempUsageDetail_20' ) end [2025-02-21 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528344', 'tblTempVendorCDR_20' ) start [2025-02-21 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528344', 'tblTempVendorCDR_20' ) end [2025-02-21 23:10:19] Production.INFO: ProcessCDR(1,14528344,1,1,2) [2025-02-21 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528344', 'tblTempUsageDetail_20' ) start [2025-02-21 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528344', 'tblTempUsageDetail_20' ) end [2025-02-21 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:10:23] Production.INFO: ==22645== Releasing lock... [2025-02-21 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:10:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-21 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:11:05 [end_date_ymd] => 2025-02-21 23:11:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:11:05' and `end` < '2025-02-21 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-21 23:11:17] Production.INFO: count ==1423 [2025-02-21 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:11:05 - End Time 2025-02-21 23:11:05 [2025-02-21 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528349', 'tblTempUsageDetail_20' ) start [2025-02-21 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528349', 'tblTempUsageDetail_20' ) end [2025-02-21 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528349', 'tblTempVendorCDR_20' ) start [2025-02-21 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528349', 'tblTempVendorCDR_20' ) end [2025-02-21 23:11:18] Production.INFO: ProcessCDR(1,14528349,1,1,2) [2025-02-21 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528349', 'tblTempUsageDetail_20' ) start [2025-02-21 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528349', 'tblTempUsageDetail_20' ) end [2025-02-21 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:11:21] Production.INFO: ==22725== Releasing lock... [2025-02-21 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:11:21] Production.INFO: 39 MB #Memory Used# [2025-02-21 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:12:06 [end_date_ymd] => 2025-02-21 23:12:06 [RateCDR] => 1 ) [2025-02-21 23: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-21 20:12:06' and `end` < '2025-02-21 23: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-21 23:12:18] Production.INFO: count ==1409 [2025-02-21 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:12:06 - End Time 2025-02-21 23:12:06 [2025-02-21 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528354', 'tblTempUsageDetail_20' ) start [2025-02-21 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528354', 'tblTempUsageDetail_20' ) end [2025-02-21 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528354', 'tblTempVendorCDR_20' ) start [2025-02-21 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528354', 'tblTempVendorCDR_20' ) end [2025-02-21 23:12:18] Production.INFO: ProcessCDR(1,14528354,1,1,2) [2025-02-21 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528354', 'tblTempUsageDetail_20' ) start [2025-02-21 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528354', 'tblTempUsageDetail_20' ) end [2025-02-21 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:12:22] Production.INFO: ==22882== Releasing lock... [2025-02-21 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:12:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-21 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:13:05 [end_date_ymd] => 2025-02-21 23:13:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:13:05' and `end` < '2025-02-21 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-21 23:13:17] Production.INFO: count ==1391 [2025-02-21 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:13:05 - End Time 2025-02-21 23:13:05 [2025-02-21 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528359', 'tblTempUsageDetail_20' ) start [2025-02-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528359', 'tblTempUsageDetail_20' ) end [2025-02-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528359', 'tblTempVendorCDR_20' ) start [2025-02-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528359', 'tblTempVendorCDR_20' ) end [2025-02-21 23:13:18] Production.INFO: ProcessCDR(1,14528359,1,1,2) [2025-02-21 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528359', 'tblTempUsageDetail_20' ) start [2025-02-21 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528359', 'tblTempUsageDetail_20' ) end [2025-02-21 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:13:21] Production.INFO: ==22957== Releasing lock... [2025-02-21 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:13:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-21 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:14:05 [end_date_ymd] => 2025-02-21 23:14:05 [RateCDR] => 1 ) [2025-02-21 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:14:05' and `end` < '2025-02-21 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:14:17] Production.INFO: count ==1374 [2025-02-21 23:14:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:14:05 - End Time 2025-02-21 23:14:05 [2025-02-21 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528364', 'tblTempUsageDetail_20' ) start [2025-02-21 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528364', 'tblTempUsageDetail_20' ) end [2025-02-21 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528364', 'tblTempVendorCDR_20' ) start [2025-02-21 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528364', 'tblTempVendorCDR_20' ) end [2025-02-21 23:14:17] Production.INFO: ProcessCDR(1,14528364,1,1,2) [2025-02-21 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528364', 'tblTempUsageDetail_20' ) start [2025-02-21 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528364', 'tblTempUsageDetail_20' ) end [2025-02-21 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:14:21] Production.INFO: ==23033== Releasing lock... [2025-02-21 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:14:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-21 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:15:05 [end_date_ymd] => 2025-02-21 23:15:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:15:05' and `end` < '2025-02-21 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-21 23:15:17] Production.INFO: count ==1359 [2025-02-21 23:15:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:15:05 - End Time 2025-02-21 23:15:05 [2025-02-21 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528369', 'tblTempUsageDetail_20' ) start [2025-02-21 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528369', 'tblTempUsageDetail_20' ) end [2025-02-21 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528369', 'tblTempVendorCDR_20' ) start [2025-02-21 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528369', 'tblTempVendorCDR_20' ) end [2025-02-21 23:15:17] Production.INFO: ProcessCDR(1,14528369,1,1,2) [2025-02-21 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528369', 'tblTempUsageDetail_20' ) start [2025-02-21 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528369', 'tblTempUsageDetail_20' ) end [2025-02-21 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:15:21] Production.INFO: ==23108== Releasing lock... [2025-02-21 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:15:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-21 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:16:06 [end_date_ymd] => 2025-02-21 23:16:06 [RateCDR] => 1 ) [2025-02-21 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:16:06' and `end` < '2025-02-21 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:16:18] Production.INFO: count ==1342 [2025-02-21 23:16:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:16:06 - End Time 2025-02-21 23:16:06 [2025-02-21 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528374', 'tblTempUsageDetail_20' ) start [2025-02-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528374', 'tblTempUsageDetail_20' ) end [2025-02-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528374', 'tblTempVendorCDR_20' ) start [2025-02-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528374', 'tblTempVendorCDR_20' ) end [2025-02-21 23:16:18] Production.INFO: ProcessCDR(1,14528374,1,1,2) [2025-02-21 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528374', 'tblTempUsageDetail_20' ) start [2025-02-21 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528374', 'tblTempUsageDetail_20' ) end [2025-02-21 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:16:21] Production.INFO: ==23262== Releasing lock... [2025-02-21 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:16:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-21 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:17:05 [end_date_ymd] => 2025-02-21 23:17:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:17:05' and `end` < '2025-02-21 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-21 23:17:17] Production.INFO: count ==1327 [2025-02-21 23:17:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:17:05 - End Time 2025-02-21 23:17:05 [2025-02-21 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528379', 'tblTempUsageDetail_20' ) start [2025-02-21 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528379', 'tblTempUsageDetail_20' ) end [2025-02-21 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528379', 'tblTempVendorCDR_20' ) start [2025-02-21 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528379', 'tblTempVendorCDR_20' ) end [2025-02-21 23:17:18] Production.INFO: ProcessCDR(1,14528379,1,1,2) [2025-02-21 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528379', 'tblTempUsageDetail_20' ) start [2025-02-21 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528379', 'tblTempUsageDetail_20' ) end [2025-02-21 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:17:23] Production.INFO: ==23340== Releasing lock... [2025-02-21 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:17:23] Production.INFO: 38 MB #Memory Used# [2025-02-21 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:18:05 [end_date_ymd] => 2025-02-21 23:18:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:18:05' and `end` < '2025-02-21 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-21 23:18:17] Production.INFO: count ==1310 [2025-02-21 23:18:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:18:05 - End Time 2025-02-21 23:18:05 [2025-02-21 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528384', 'tblTempUsageDetail_20' ) start [2025-02-21 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528384', 'tblTempUsageDetail_20' ) end [2025-02-21 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528384', 'tblTempVendorCDR_20' ) start [2025-02-21 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528384', 'tblTempVendorCDR_20' ) end [2025-02-21 23:18:17] Production.INFO: ProcessCDR(1,14528384,1,1,2) [2025-02-21 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528384', 'tblTempUsageDetail_20' ) start [2025-02-21 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528384', 'tblTempUsageDetail_20' ) end [2025-02-21 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:18:21] Production.INFO: ==23460== Releasing lock... [2025-02-21 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:18:21] Production.INFO: 38 MB #Memory Used# [2025-02-21 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:19:05 [end_date_ymd] => 2025-02-21 23:19:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:19:05' and `end` < '2025-02-21 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-21 23:19:17] Production.INFO: count ==1295 [2025-02-21 23:19:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:19:05 - End Time 2025-02-21 23:19:05 [2025-02-21 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528389', 'tblTempUsageDetail_20' ) start [2025-02-21 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528389', 'tblTempUsageDetail_20' ) end [2025-02-21 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528389', 'tblTempVendorCDR_20' ) start [2025-02-21 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528389', 'tblTempVendorCDR_20' ) end [2025-02-21 23:19:18] Production.INFO: ProcessCDR(1,14528389,1,1,2) [2025-02-21 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528389', 'tblTempUsageDetail_20' ) start [2025-02-21 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528389', 'tblTempUsageDetail_20' ) end [2025-02-21 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:19:21] Production.INFO: ==23548== Releasing lock... [2025-02-21 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:19:21] Production.INFO: 38 MB #Memory Used# [2025-02-21 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:20:06 [end_date_ymd] => 2025-02-21 23:20:06 [RateCDR] => 1 ) [2025-02-21 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:20:06' and `end` < '2025-02-21 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:20:18] Production.INFO: count ==1274 [2025-02-21 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-21 20:20:06 - End Time 2025-02-21 23:20:06 [2025-02-21 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528394', 'tblTempUsageDetail_20' ) start [2025-02-21 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528394', 'tblTempUsageDetail_20' ) end [2025-02-21 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528394', 'tblTempVendorCDR_20' ) start [2025-02-21 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528394', 'tblTempVendorCDR_20' ) end [2025-02-21 23:20:19] Production.INFO: ProcessCDR(1,14528394,1,1,2) [2025-02-21 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528394', 'tblTempUsageDetail_20' ) start [2025-02-21 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528394', 'tblTempUsageDetail_20' ) end [2025-02-21 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:20:22] Production.INFO: ==23640== Releasing lock... [2025-02-21 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:20:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-21 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:21:05 [end_date_ymd] => 2025-02-21 23:21:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:21:05' and `end` < '2025-02-21 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-21 23:21:17] Production.INFO: count ==1252 [2025-02-21 23:21:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:21:05 - End Time 2025-02-21 23:21:05 [2025-02-21 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528400', 'tblTempUsageDetail_20' ) start [2025-02-21 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528400', 'tblTempUsageDetail_20' ) end [2025-02-21 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528400', 'tblTempVendorCDR_20' ) start [2025-02-21 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528400', 'tblTempVendorCDR_20' ) end [2025-02-21 23:21:17] Production.INFO: ProcessCDR(1,14528400,1,1,2) [2025-02-21 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528400', 'tblTempUsageDetail_20' ) start [2025-02-21 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528400', 'tblTempUsageDetail_20' ) end [2025-02-21 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:21:22] Production.INFO: ==23725== Releasing lock... [2025-02-21 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:21:22] Production.INFO: 38 MB #Memory Used# [2025-02-21 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:22:05 [end_date_ymd] => 2025-02-21 23:22:05 [RateCDR] => 1 ) [2025-02-21 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:22:05' and `end` < '2025-02-21 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-21 23:22:17] Production.INFO: count ==1251 [2025-02-21 23:22:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:22:05 - End Time 2025-02-21 23:22:05 [2025-02-21 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528405', 'tblTempUsageDetail_20' ) start [2025-02-21 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528405', 'tblTempUsageDetail_20' ) end [2025-02-21 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528405', 'tblTempVendorCDR_20' ) start [2025-02-21 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528405', 'tblTempVendorCDR_20' ) end [2025-02-21 23:22:17] Production.INFO: ProcessCDR(1,14528405,1,1,2) [2025-02-21 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528405', 'tblTempUsageDetail_20' ) start [2025-02-21 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528405', 'tblTempUsageDetail_20' ) end [2025-02-21 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:22:21] Production.INFO: ==23812== Releasing lock... [2025-02-21 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:22:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-21 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:23:05 [end_date_ymd] => 2025-02-21 23:23:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:23:05' and `end` < '2025-02-21 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-21 23:23:17] Production.INFO: count ==1251 [2025-02-21 23:23:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:23:05 - End Time 2025-02-21 23:23:05 [2025-02-21 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528410', 'tblTempUsageDetail_20' ) start [2025-02-21 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528410', 'tblTempUsageDetail_20' ) end [2025-02-21 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528410', 'tblTempVendorCDR_20' ) start [2025-02-21 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528410', 'tblTempVendorCDR_20' ) end [2025-02-21 23:23:17] Production.INFO: ProcessCDR(1,14528410,1,1,2) [2025-02-21 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528410', 'tblTempUsageDetail_20' ) start [2025-02-21 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528410', 'tblTempUsageDetail_20' ) end [2025-02-21 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:23:22] Production.INFO: ==23899== Releasing lock... [2025-02-21 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:23:22] Production.INFO: 38 MB #Memory Used# [2025-02-21 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:24:05 [end_date_ymd] => 2025-02-21 23:24:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:24:05' and `end` < '2025-02-21 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-21 23:24:17] Production.INFO: count ==1257 [2025-02-21 23:24:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:24:05 - End Time 2025-02-21 23:24:05 [2025-02-21 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528415', 'tblTempUsageDetail_20' ) start [2025-02-21 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528415', 'tblTempUsageDetail_20' ) end [2025-02-21 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528415', 'tblTempVendorCDR_20' ) start [2025-02-21 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528415', 'tblTempVendorCDR_20' ) end [2025-02-21 23:24:17] Production.INFO: ProcessCDR(1,14528415,1,1,2) [2025-02-21 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528415', 'tblTempUsageDetail_20' ) start [2025-02-21 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528415', 'tblTempUsageDetail_20' ) end [2025-02-21 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:24:21] Production.INFO: ==23984== Releasing lock... [2025-02-21 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:24:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-21 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:25:05 [end_date_ymd] => 2025-02-21 23:25:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:25:05' and `end` < '2025-02-21 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-21 23:25:17] Production.INFO: count ==1251 [2025-02-21 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:25:05 - End Time 2025-02-21 23:25:05 [2025-02-21 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528420', 'tblTempUsageDetail_20' ) start [2025-02-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528420', 'tblTempUsageDetail_20' ) end [2025-02-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528420', 'tblTempVendorCDR_20' ) start [2025-02-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528420', 'tblTempVendorCDR_20' ) end [2025-02-21 23:25:18] Production.INFO: ProcessCDR(1,14528420,1,1,2) [2025-02-21 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528420', 'tblTempUsageDetail_20' ) start [2025-02-21 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528420', 'tblTempUsageDetail_20' ) end [2025-02-21 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:25:21] Production.INFO: ==24073== Releasing lock... [2025-02-21 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:25:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-21 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:26:05 [end_date_ymd] => 2025-02-21 23:26:05 [RateCDR] => 1 ) [2025-02-21 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:26:05' and `end` < '2025-02-21 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:26:17] Production.INFO: count ==1248 [2025-02-21 23:26:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:26:05 - End Time 2025-02-21 23:26:05 [2025-02-21 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528425', 'tblTempUsageDetail_20' ) start [2025-02-21 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528425', 'tblTempUsageDetail_20' ) end [2025-02-21 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528425', 'tblTempVendorCDR_20' ) start [2025-02-21 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528425', 'tblTempVendorCDR_20' ) end [2025-02-21 23:26:17] Production.INFO: ProcessCDR(1,14528425,1,1,2) [2025-02-21 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528425', 'tblTempUsageDetail_20' ) start [2025-02-21 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528425', 'tblTempUsageDetail_20' ) end [2025-02-21 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:26:20] Production.INFO: ==24150== Releasing lock... [2025-02-21 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:26:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-21 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:27:05 [end_date_ymd] => 2025-02-21 23:27:05 [RateCDR] => 1 ) [2025-02-21 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:27:05' and `end` < '2025-02-21 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:27:17] Production.INFO: count ==1240 [2025-02-21 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:27:05 - End Time 2025-02-21 23:27:05 [2025-02-21 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528430', 'tblTempUsageDetail_20' ) start [2025-02-21 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528430', 'tblTempUsageDetail_20' ) end [2025-02-21 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528430', 'tblTempVendorCDR_20' ) start [2025-02-21 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528430', 'tblTempVendorCDR_20' ) end [2025-02-21 23:27:18] Production.INFO: ProcessCDR(1,14528430,1,1,2) [2025-02-21 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528430', 'tblTempUsageDetail_20' ) start [2025-02-21 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528430', 'tblTempUsageDetail_20' ) end [2025-02-21 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:27:21] Production.INFO: ==24227== Releasing lock... [2025-02-21 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:27:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-21 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:28:05 [end_date_ymd] => 2025-02-21 23:28:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:28:05' and `end` < '2025-02-21 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-21 23:28:17] Production.INFO: count ==1234 [2025-02-21 23:28:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:28:05 - End Time 2025-02-21 23:28:05 [2025-02-21 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528435', 'tblTempUsageDetail_20' ) start [2025-02-21 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528435', 'tblTempUsageDetail_20' ) end [2025-02-21 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528435', 'tblTempVendorCDR_20' ) start [2025-02-21 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528435', 'tblTempVendorCDR_20' ) end [2025-02-21 23:28:17] Production.INFO: ProcessCDR(1,14528435,1,1,2) [2025-02-21 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528435', 'tblTempUsageDetail_20' ) start [2025-02-21 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528435', 'tblTempUsageDetail_20' ) end [2025-02-21 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:28:20] Production.INFO: ==24300== Releasing lock... [2025-02-21 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:28:20] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:29:06 [end_date_ymd] => 2025-02-21 23:29:06 [RateCDR] => 1 ) [2025-02-21 23: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-21 20:29:06' and `end` < '2025-02-21 23: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-21 23:29:18] Production.INFO: count ==1231 [2025-02-21 23:29:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:29:06 - End Time 2025-02-21 23:29:06 [2025-02-21 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528440', 'tblTempUsageDetail_20' ) start [2025-02-21 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528440', 'tblTempUsageDetail_20' ) end [2025-02-21 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528440', 'tblTempVendorCDR_20' ) start [2025-02-21 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528440', 'tblTempVendorCDR_20' ) end [2025-02-21 23:29:18] Production.INFO: ProcessCDR(1,14528440,1,1,2) [2025-02-21 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528440', 'tblTempUsageDetail_20' ) start [2025-02-21 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528440', 'tblTempUsageDetail_20' ) end [2025-02-21 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:29:21] Production.INFO: ==24376== Releasing lock... [2025-02-21 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:29:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-21 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:30:06 [end_date_ymd] => 2025-02-21 23:30:06 [RateCDR] => 1 ) [2025-02-21 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-21 20:30:06' and `end` < '2025-02-21 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-21 23:30:18] Production.INFO: count ==1234 [2025-02-21 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-21 20:30:06 - End Time 2025-02-21 23:30:06 [2025-02-21 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528446', 'tblTempUsageDetail_20' ) start [2025-02-21 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528446', 'tblTempUsageDetail_20' ) end [2025-02-21 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528446', 'tblTempVendorCDR_20' ) start [2025-02-21 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528446', 'tblTempVendorCDR_20' ) end [2025-02-21 23:30:19] Production.INFO: ProcessCDR(1,14528446,1,1,2) [2025-02-21 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528446', 'tblTempUsageDetail_20' ) start [2025-02-21 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528446', 'tblTempUsageDetail_20' ) end [2025-02-21 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:30:22] Production.INFO: ==24459== Releasing lock... [2025-02-21 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:30:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-21 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:31:05 [end_date_ymd] => 2025-02-21 23:31:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:31:05' and `end` < '2025-02-21 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-21 23:31:17] Production.INFO: count ==1222 [2025-02-21 23:31:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:31:05 - End Time 2025-02-21 23:31:05 [2025-02-21 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528451', 'tblTempUsageDetail_20' ) start [2025-02-21 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528451', 'tblTempUsageDetail_20' ) end [2025-02-21 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528451', 'tblTempVendorCDR_20' ) start [2025-02-21 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528451', 'tblTempVendorCDR_20' ) end [2025-02-21 23:31:18] Production.INFO: ProcessCDR(1,14528451,1,1,2) [2025-02-21 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528451', 'tblTempUsageDetail_20' ) start [2025-02-21 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528451', 'tblTempUsageDetail_20' ) end [2025-02-21 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:31:21] Production.INFO: ==24537== Releasing lock... [2025-02-21 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:31:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:32:05 [end_date_ymd] => 2025-02-21 23:32:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:32:05' and `end` < '2025-02-21 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-21 23:32:17] Production.INFO: count ==1225 [2025-02-21 23:32:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:32:05 - End Time 2025-02-21 23:32:05 [2025-02-21 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528456', 'tblTempUsageDetail_20' ) start [2025-02-21 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528456', 'tblTempUsageDetail_20' ) end [2025-02-21 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528456', 'tblTempVendorCDR_20' ) start [2025-02-21 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528456', 'tblTempVendorCDR_20' ) end [2025-02-21 23:32:17] Production.INFO: ProcessCDR(1,14528456,1,1,2) [2025-02-21 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528456', 'tblTempUsageDetail_20' ) start [2025-02-21 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528456', 'tblTempUsageDetail_20' ) end [2025-02-21 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:32:21] Production.INFO: ==24614== Releasing lock... [2025-02-21 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:32:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:33:05 [end_date_ymd] => 2025-02-21 23:33:05 [RateCDR] => 1 ) [2025-02-21 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:33:05' and `end` < '2025-02-21 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:33:17] Production.INFO: count ==1222 [2025-02-21 23:33:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:33:05 - End Time 2025-02-21 23:33:05 [2025-02-21 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528461', 'tblTempUsageDetail_20' ) start [2025-02-21 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528461', 'tblTempUsageDetail_20' ) end [2025-02-21 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528461', 'tblTempVendorCDR_20' ) start [2025-02-21 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528461', 'tblTempVendorCDR_20' ) end [2025-02-21 23:33:17] Production.INFO: ProcessCDR(1,14528461,1,1,2) [2025-02-21 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528461', 'tblTempUsageDetail_20' ) start [2025-02-21 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528461', 'tblTempUsageDetail_20' ) end [2025-02-21 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:33:20] Production.INFO: ==24691== Releasing lock... [2025-02-21 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:33:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-21 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:34:04 [end_date_ymd] => 2025-02-21 23:34:04 [RateCDR] => 1 ) [2025-02-21 23:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:34:04' and `end` < '2025-02-21 23:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:34:16] Production.INFO: count ==1214 [2025-02-21 23:34:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:34:04 - End Time 2025-02-21 23:34:04 [2025-02-21 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528466', 'tblTempUsageDetail_20' ) start [2025-02-21 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528466', 'tblTempUsageDetail_20' ) end [2025-02-21 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528466', 'tblTempVendorCDR_20' ) start [2025-02-21 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528466', 'tblTempVendorCDR_20' ) end [2025-02-21 23:34:17] Production.INFO: ProcessCDR(1,14528466,1,1,2) [2025-02-21 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528466', 'tblTempUsageDetail_20' ) start [2025-02-21 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528466', 'tblTempUsageDetail_20' ) end [2025-02-21 23:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:34:20] Production.INFO: ==24805== Releasing lock... [2025-02-21 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:34:20] Production.INFO: 37.75 MB #Memory Used# [2025-02-21 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:35:05 [end_date_ymd] => 2025-02-21 23:35:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:35:05' and `end` < '2025-02-21 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-21 23:35:17] Production.INFO: count ==1207 [2025-02-21 23:35:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:35:05 - End Time 2025-02-21 23:35:05 [2025-02-21 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528471', 'tblTempUsageDetail_20' ) start [2025-02-21 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528471', 'tblTempUsageDetail_20' ) end [2025-02-21 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528471', 'tblTempVendorCDR_20' ) start [2025-02-21 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528471', 'tblTempVendorCDR_20' ) end [2025-02-21 23:35:17] Production.INFO: ProcessCDR(1,14528471,1,1,2) [2025-02-21 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528471', 'tblTempUsageDetail_20' ) start [2025-02-21 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528471', 'tblTempUsageDetail_20' ) end [2025-02-21 23:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:35:20] Production.INFO: ==24882== Releasing lock... [2025-02-21 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:35:20] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:36:05 [end_date_ymd] => 2025-02-21 23:36:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:36:05' and `end` < '2025-02-21 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-21 23:36:17] Production.INFO: count ==1202 [2025-02-21 23:36:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:36:05 - End Time 2025-02-21 23:36:05 [2025-02-21 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528476', 'tblTempUsageDetail_20' ) start [2025-02-21 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528476', 'tblTempUsageDetail_20' ) end [2025-02-21 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528476', 'tblTempVendorCDR_20' ) start [2025-02-21 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528476', 'tblTempVendorCDR_20' ) end [2025-02-21 23:36:17] Production.INFO: ProcessCDR(1,14528476,1,1,2) [2025-02-21 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528476', 'tblTempUsageDetail_20' ) start [2025-02-21 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528476', 'tblTempUsageDetail_20' ) end [2025-02-21 23:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:36:20] Production.INFO: ==24956== Releasing lock... [2025-02-21 23:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:36:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-21 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:37:05 [end_date_ymd] => 2025-02-21 23:37:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:37:05' and `end` < '2025-02-21 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-21 23:37:17] Production.INFO: count ==1201 [2025-02-21 23:37:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:37:05 - End Time 2025-02-21 23:37:05 [2025-02-21 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528481', 'tblTempUsageDetail_20' ) start [2025-02-21 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528481', 'tblTempUsageDetail_20' ) end [2025-02-21 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528481', 'tblTempVendorCDR_20' ) start [2025-02-21 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528481', 'tblTempVendorCDR_20' ) end [2025-02-21 23:37:17] Production.INFO: ProcessCDR(1,14528481,1,1,2) [2025-02-21 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528481', 'tblTempUsageDetail_20' ) start [2025-02-21 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528481', 'tblTempUsageDetail_20' ) end [2025-02-21 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:37:21] Production.INFO: ==25033== Releasing lock... [2025-02-21 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:37:21] Production.INFO: 37 MB #Memory Used# [2025-02-21 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:38:06 [end_date_ymd] => 2025-02-21 23:38:06 [RateCDR] => 1 ) [2025-02-21 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:38:06' and `end` < '2025-02-21 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:38:18] Production.INFO: count ==1200 [2025-02-21 23:38:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:38:06 - End Time 2025-02-21 23:38:06 [2025-02-21 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528486', 'tblTempUsageDetail_20' ) start [2025-02-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528486', 'tblTempUsageDetail_20' ) end [2025-02-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528486', 'tblTempVendorCDR_20' ) start [2025-02-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528486', 'tblTempVendorCDR_20' ) end [2025-02-21 23:38:18] Production.INFO: ProcessCDR(1,14528486,1,1,2) [2025-02-21 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528486', 'tblTempUsageDetail_20' ) start [2025-02-21 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528486', 'tblTempUsageDetail_20' ) end [2025-02-21 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:38:21] Production.INFO: ==25108== Releasing lock... [2025-02-21 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:38:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:39:04 [end_date_ymd] => 2025-02-21 23:39:04 [RateCDR] => 1 ) [2025-02-21 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:39:04' and `end` < '2025-02-21 23:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:39:16] Production.INFO: count ==1193 [2025-02-21 23:39:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:39:04 - End Time 2025-02-21 23:39:04 [2025-02-21 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528491', 'tblTempUsageDetail_20' ) start [2025-02-21 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528491', 'tblTempUsageDetail_20' ) end [2025-02-21 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528491', 'tblTempVendorCDR_20' ) start [2025-02-21 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528491', 'tblTempVendorCDR_20' ) end [2025-02-21 23:39:17] Production.INFO: ProcessCDR(1,14528491,1,1,2) [2025-02-21 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528491', 'tblTempUsageDetail_20' ) start [2025-02-21 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528491', 'tblTempUsageDetail_20' ) end [2025-02-21 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:39:20] Production.INFO: ==25183== Releasing lock... [2025-02-21 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:39:20] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:40:06 [end_date_ymd] => 2025-02-21 23:40:06 [RateCDR] => 1 ) [2025-02-21 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:40:06' and `end` < '2025-02-21 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:40:18] Production.INFO: count ==1189 [2025-02-21 23:40:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:40:06 - End Time 2025-02-21 23:40:06 [2025-02-21 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528497', 'tblTempUsageDetail_20' ) start [2025-02-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528497', 'tblTempUsageDetail_20' ) end [2025-02-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528497', 'tblTempVendorCDR_20' ) start [2025-02-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528497', 'tblTempVendorCDR_20' ) end [2025-02-21 23:40:18] Production.INFO: ProcessCDR(1,14528497,1,1,2) [2025-02-21 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528497', 'tblTempUsageDetail_20' ) start [2025-02-21 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528497', 'tblTempUsageDetail_20' ) end [2025-02-21 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:40:22] Production.INFO: ==25258== Releasing lock... [2025-02-21 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:40:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:41:05 [end_date_ymd] => 2025-02-21 23:41:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:41:05' and `end` < '2025-02-21 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-21 23:41:17] Production.INFO: count ==1169 [2025-02-21 23:41:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:41:05 - End Time 2025-02-21 23:41:05 [2025-02-21 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528502', 'tblTempUsageDetail_20' ) start [2025-02-21 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528502', 'tblTempUsageDetail_20' ) end [2025-02-21 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528502', 'tblTempVendorCDR_20' ) start [2025-02-21 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528502', 'tblTempVendorCDR_20' ) end [2025-02-21 23:41:17] Production.INFO: ProcessCDR(1,14528502,1,1,2) [2025-02-21 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528502', 'tblTempUsageDetail_20' ) start [2025-02-21 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528502', 'tblTempUsageDetail_20' ) end [2025-02-21 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:41:20] Production.INFO: ==25334== Releasing lock... [2025-02-21 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:41:20] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:42:05 [end_date_ymd] => 2025-02-21 23:42:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:42:05' and `end` < '2025-02-21 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-21 23:42:17] Production.INFO: count ==1164 [2025-02-21 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:42:05 - End Time 2025-02-21 23:42:05 [2025-02-21 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528507', 'tblTempUsageDetail_20' ) start [2025-02-21 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528507', 'tblTempUsageDetail_20' ) end [2025-02-21 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528507', 'tblTempVendorCDR_20' ) start [2025-02-21 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528507', 'tblTempVendorCDR_20' ) end [2025-02-21 23:42:18] Production.INFO: ProcessCDR(1,14528507,1,1,2) [2025-02-21 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528507', 'tblTempUsageDetail_20' ) start [2025-02-21 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528507', 'tblTempUsageDetail_20' ) end [2025-02-21 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:42:21] Production.INFO: ==25407== Releasing lock... [2025-02-21 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:42:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:43:05 [end_date_ymd] => 2025-02-21 23:43:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:43:05' and `end` < '2025-02-21 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-21 23:43:17] Production.INFO: count ==1156 [2025-02-21 23:43:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:43:05 - End Time 2025-02-21 23:43:05 [2025-02-21 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528512', 'tblTempUsageDetail_20' ) start [2025-02-21 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528512', 'tblTempUsageDetail_20' ) end [2025-02-21 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528512', 'tblTempVendorCDR_20' ) start [2025-02-21 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528512', 'tblTempVendorCDR_20' ) end [2025-02-21 23:43:17] Production.INFO: ProcessCDR(1,14528512,1,1,2) [2025-02-21 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528512', 'tblTempUsageDetail_20' ) start [2025-02-21 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528512', 'tblTempUsageDetail_20' ) end [2025-02-21 23:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:43:20] Production.INFO: ==25478== Releasing lock... [2025-02-21 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:43:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-21 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:44:05 [end_date_ymd] => 2025-02-21 23:44:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:44:05' and `end` < '2025-02-21 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-21 23:44:17] Production.INFO: count ==1156 [2025-02-21 23:44:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:44:05 - End Time 2025-02-21 23:44:05 [2025-02-21 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528517', 'tblTempUsageDetail_20' ) start [2025-02-21 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528517', 'tblTempUsageDetail_20' ) end [2025-02-21 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528517', 'tblTempVendorCDR_20' ) start [2025-02-21 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528517', 'tblTempVendorCDR_20' ) end [2025-02-21 23:44:17] Production.INFO: ProcessCDR(1,14528517,1,1,2) [2025-02-21 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528517', 'tblTempUsageDetail_20' ) start [2025-02-21 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528517', 'tblTempUsageDetail_20' ) end [2025-02-21 23:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:44:20] Production.INFO: ==25550== Releasing lock... [2025-02-21 23:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:44:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-21 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:45:04 [end_date_ymd] => 2025-02-21 23:45:04 [RateCDR] => 1 ) [2025-02-21 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:45:04' and `end` < '2025-02-21 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:45:16] Production.INFO: count ==1156 [2025-02-21 23:45:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:45:04 - End Time 2025-02-21 23:45:04 [2025-02-21 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528522', 'tblTempUsageDetail_20' ) start [2025-02-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528522', 'tblTempUsageDetail_20' ) end [2025-02-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528522', 'tblTempVendorCDR_20' ) start [2025-02-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528522', 'tblTempVendorCDR_20' ) end [2025-02-21 23:45:17] Production.INFO: ProcessCDR(1,14528522,1,1,2) [2025-02-21 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528522', 'tblTempUsageDetail_20' ) start [2025-02-21 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528522', 'tblTempUsageDetail_20' ) end [2025-02-21 23:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:45:20] Production.INFO: ==25621== Releasing lock... [2025-02-21 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:45:20] Production.INFO: 36.75 MB #Memory Used# [2025-02-21 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:46:05 [end_date_ymd] => 2025-02-21 23:46:05 [RateCDR] => 1 ) [2025-02-21 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:46:05' and `end` < '2025-02-21 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:46:17] Production.INFO: count ==1145 [2025-02-21 23:46:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:46:05 - End Time 2025-02-21 23:46:05 [2025-02-21 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528527', 'tblTempUsageDetail_20' ) start [2025-02-21 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528527', 'tblTempUsageDetail_20' ) end [2025-02-21 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528527', 'tblTempVendorCDR_20' ) start [2025-02-21 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528527', 'tblTempVendorCDR_20' ) end [2025-02-21 23:46:18] Production.INFO: ProcessCDR(1,14528527,1,1,2) [2025-02-21 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528527', 'tblTempUsageDetail_20' ) start [2025-02-21 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528527', 'tblTempUsageDetail_20' ) end [2025-02-21 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:46:21] Production.INFO: ==25737== Releasing lock... [2025-02-21 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:46:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-21 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:47:05 [end_date_ymd] => 2025-02-21 23:47:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:47:05' and `end` < '2025-02-21 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-21 23:47:17] Production.INFO: count ==1136 [2025-02-21 23:47:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:47:05 - End Time 2025-02-21 23:47:05 [2025-02-21 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528532', 'tblTempUsageDetail_20' ) start [2025-02-21 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528532', 'tblTempUsageDetail_20' ) end [2025-02-21 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528532', 'tblTempVendorCDR_20' ) start [2025-02-21 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528532', 'tblTempVendorCDR_20' ) end [2025-02-21 23:47:17] Production.INFO: ProcessCDR(1,14528532,1,1,2) [2025-02-21 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528532', 'tblTempUsageDetail_20' ) start [2025-02-21 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528532', 'tblTempUsageDetail_20' ) end [2025-02-21 23:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:47:20] Production.INFO: ==25845== Releasing lock... [2025-02-21 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:47:20] Production.INFO: 36.5 MB #Memory Used# [2025-02-21 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:48:05 [end_date_ymd] => 2025-02-21 23:48:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:48:05' and `end` < '2025-02-21 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-21 23:48:17] Production.INFO: count ==1127 [2025-02-21 23:48:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:48:05 - End Time 2025-02-21 23:48:05 [2025-02-21 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528537', 'tblTempUsageDetail_20' ) start [2025-02-21 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528537', 'tblTempUsageDetail_20' ) end [2025-02-21 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528537', 'tblTempVendorCDR_20' ) start [2025-02-21 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528537', 'tblTempVendorCDR_20' ) end [2025-02-21 23:48:17] Production.INFO: ProcessCDR(1,14528537,1,1,2) [2025-02-21 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528537', 'tblTempUsageDetail_20' ) start [2025-02-21 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528537', 'tblTempUsageDetail_20' ) end [2025-02-21 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:48:21] Production.INFO: ==25916== Releasing lock... [2025-02-21 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:48:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-21 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:49:05 [end_date_ymd] => 2025-02-21 23:49:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:49:05' and `end` < '2025-02-21 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-21 23:49:17] Production.INFO: count ==1119 [2025-02-21 23:49:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:49:05 - End Time 2025-02-21 23:49:05 [2025-02-21 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528542', 'tblTempUsageDetail_20' ) start [2025-02-21 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528542', 'tblTempUsageDetail_20' ) end [2025-02-21 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528542', 'tblTempVendorCDR_20' ) start [2025-02-21 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528542', 'tblTempVendorCDR_20' ) end [2025-02-21 23:49:17] Production.INFO: ProcessCDR(1,14528542,1,1,2) [2025-02-21 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528542', 'tblTempUsageDetail_20' ) start [2025-02-21 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528542', 'tblTempUsageDetail_20' ) end [2025-02-21 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:49:22] Production.INFO: ==26034== Releasing lock... [2025-02-21 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:49:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-21 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:50:06 [end_date_ymd] => 2025-02-21 23:50:06 [RateCDR] => 1 ) [2025-02-21 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:50:06' and `end` < '2025-02-21 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:50:18] Production.INFO: count ==1110 [2025-02-21 23:50:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:50:06 - End Time 2025-02-21 23:50:06 [2025-02-21 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528547', 'tblTempUsageDetail_20' ) start [2025-02-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528547', 'tblTempUsageDetail_20' ) end [2025-02-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528547', 'tblTempVendorCDR_20' ) start [2025-02-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528547', 'tblTempVendorCDR_20' ) end [2025-02-21 23:50:18] Production.INFO: ProcessCDR(1,14528547,1,1,2) [2025-02-21 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528547', 'tblTempUsageDetail_20' ) start [2025-02-21 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528547', 'tblTempUsageDetail_20' ) end [2025-02-21 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:50:21] Production.INFO: ==26104== Releasing lock... [2025-02-21 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:50:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-21 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:51:05 [end_date_ymd] => 2025-02-21 23:51:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:51:05' and `end` < '2025-02-21 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-21 23:51:17] Production.INFO: count ==1087 [2025-02-21 23:51:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:51:05 - End Time 2025-02-21 23:51:05 [2025-02-21 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528553', 'tblTempUsageDetail_20' ) start [2025-02-21 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528553', 'tblTempUsageDetail_20' ) end [2025-02-21 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528553', 'tblTempVendorCDR_20' ) start [2025-02-21 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528553', 'tblTempVendorCDR_20' ) end [2025-02-21 23:51:17] Production.INFO: ProcessCDR(1,14528553,1,1,2) [2025-02-21 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528553', 'tblTempUsageDetail_20' ) start [2025-02-21 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528553', 'tblTempUsageDetail_20' ) end [2025-02-21 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:51:21] Production.INFO: ==26177== Releasing lock... [2025-02-21 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:51:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-21 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:52:05 [end_date_ymd] => 2025-02-21 23:52:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:52:05' and `end` < '2025-02-21 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-21 23:52:17] Production.INFO: count ==1077 [2025-02-21 23:52:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:52:05 - End Time 2025-02-21 23:52:05 [2025-02-21 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528558', 'tblTempUsageDetail_20' ) start [2025-02-21 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528558', 'tblTempUsageDetail_20' ) end [2025-02-21 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528558', 'tblTempVendorCDR_20' ) start [2025-02-21 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528558', 'tblTempVendorCDR_20' ) end [2025-02-21 23:52:17] Production.INFO: ProcessCDR(1,14528558,1,1,2) [2025-02-21 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528558', 'tblTempUsageDetail_20' ) start [2025-02-21 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528558', 'tblTempUsageDetail_20' ) end [2025-02-21 23:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:52:20] Production.INFO: ==26248== Releasing lock... [2025-02-21 23:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:52:20] Production.INFO: 37 MB #Memory Used# [2025-02-21 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:53:05 [end_date_ymd] => 2025-02-21 23:53:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:53:05' and `end` < '2025-02-21 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-21 23:53:17] Production.INFO: count ==1067 [2025-02-21 23:53:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:53:05 - End Time 2025-02-21 23:53:05 [2025-02-21 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528563', 'tblTempUsageDetail_20' ) start [2025-02-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528563', 'tblTempUsageDetail_20' ) end [2025-02-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528563', 'tblTempVendorCDR_20' ) start [2025-02-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528563', 'tblTempVendorCDR_20' ) end [2025-02-21 23:53:18] Production.INFO: ProcessCDR(1,14528563,1,1,2) [2025-02-21 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528563', 'tblTempUsageDetail_20' ) start [2025-02-21 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528563', 'tblTempUsageDetail_20' ) end [2025-02-21 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:53:21] Production.INFO: ==26329== Releasing lock... [2025-02-21 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:53:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-21 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:54:05 [end_date_ymd] => 2025-02-21 23:54:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:54:05' and `end` < '2025-02-21 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-21 23:54:17] Production.INFO: count ==1055 [2025-02-21 23:54:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:54:05 - End Time 2025-02-21 23:54:05 [2025-02-21 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528568', 'tblTempUsageDetail_20' ) start [2025-02-21 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528568', 'tblTempUsageDetail_20' ) end [2025-02-21 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528568', 'tblTempVendorCDR_20' ) start [2025-02-21 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528568', 'tblTempVendorCDR_20' ) end [2025-02-21 23:54:17] Production.INFO: ProcessCDR(1,14528568,1,1,2) [2025-02-21 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528568', 'tblTempUsageDetail_20' ) start [2025-02-21 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528568', 'tblTempUsageDetail_20' ) end [2025-02-21 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:54:20] Production.INFO: ==26399== Releasing lock... [2025-02-21 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:54:20] Production.INFO: 36 MB #Memory Used# [2025-02-21 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:55:05 [end_date_ymd] => 2025-02-21 23:55:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:55:05' and `end` < '2025-02-21 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-21 23:55:17] Production.INFO: count ==1043 [2025-02-21 23:55:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:55:05 - End Time 2025-02-21 23:55:05 [2025-02-21 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528573', 'tblTempUsageDetail_20' ) start [2025-02-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528573', 'tblTempUsageDetail_20' ) end [2025-02-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528573', 'tblTempVendorCDR_20' ) start [2025-02-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528573', 'tblTempVendorCDR_20' ) end [2025-02-21 23:55:17] Production.INFO: ProcessCDR(1,14528573,1,1,2) [2025-02-21 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528573', 'tblTempUsageDetail_20' ) start [2025-02-21 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528573', 'tblTempUsageDetail_20' ) end [2025-02-21 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:55:21] Production.INFO: ==26471== Releasing lock... [2025-02-21 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:55:21] Production.INFO: 36 MB #Memory Used# [2025-02-21 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:56:05 [end_date_ymd] => 2025-02-21 23:56:05 [RateCDR] => 1 ) [2025-02-21 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-21 20:56:05' and `end` < '2025-02-21 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-21 23:56:17] Production.INFO: count ==1035 [2025-02-21 23:56:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:56:05 - End Time 2025-02-21 23:56:05 [2025-02-21 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528578', 'tblTempUsageDetail_20' ) start [2025-02-21 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528578', 'tblTempUsageDetail_20' ) end [2025-02-21 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528578', 'tblTempVendorCDR_20' ) start [2025-02-21 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528578', 'tblTempVendorCDR_20' ) end [2025-02-21 23:56:17] Production.INFO: ProcessCDR(1,14528578,1,1,2) [2025-02-21 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528578', 'tblTempUsageDetail_20' ) start [2025-02-21 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528578', 'tblTempUsageDetail_20' ) end [2025-02-21 23:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:56:20] Production.INFO: ==26541== Releasing lock... [2025-02-21 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:56:20] Production.INFO: 36.25 MB #Memory Used# [2025-02-21 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:57:06 [end_date_ymd] => 2025-02-21 23:57:06 [RateCDR] => 1 ) [2025-02-21 23: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-21 20:57:06' and `end` < '2025-02-21 23: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-21 23:57:17] Production.INFO: count ==1030 [2025-02-21 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-21 20:57:06 - End Time 2025-02-21 23:57:06 [2025-02-21 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528583', 'tblTempUsageDetail_20' ) start [2025-02-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528583', 'tblTempUsageDetail_20' ) end [2025-02-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528583', 'tblTempVendorCDR_20' ) start [2025-02-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528583', 'tblTempVendorCDR_20' ) end [2025-02-21 23:57:18] Production.INFO: ProcessCDR(1,14528583,1,1,2) [2025-02-21 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528583', 'tblTempUsageDetail_20' ) start [2025-02-21 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528583', 'tblTempUsageDetail_20' ) end [2025-02-21 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:57:22] Production.INFO: ==26615== Releasing lock... [2025-02-21 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:57:22] Production.INFO: 36 MB #Memory Used# [2025-02-21 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:58:05 [end_date_ymd] => 2025-02-21 23:58:05 [RateCDR] => 1 ) [2025-02-21 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:58:05' and `end` < '2025-02-21 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:58:17] Production.INFO: count ==1027 [2025-02-21 23:58:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:58:05 - End Time 2025-02-21 23:58:05 [2025-02-21 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528588', 'tblTempUsageDetail_20' ) start [2025-02-21 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528588', 'tblTempUsageDetail_20' ) end [2025-02-21 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528588', 'tblTempVendorCDR_20' ) start [2025-02-21 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528588', 'tblTempVendorCDR_20' ) end [2025-02-21 23:58:17] Production.INFO: ProcessCDR(1,14528588,1,1,2) [2025-02-21 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528588', 'tblTempUsageDetail_20' ) start [2025-02-21 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528588', 'tblTempUsageDetail_20' ) end [2025-02-21 23:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:58:20] Production.INFO: ==26686== Releasing lock... [2025-02-21 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:58:20] Production.INFO: 36 MB #Memory Used# [2025-02-21 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-21 20:59:05 [end_date_ymd] => 2025-02-21 23:59:05 [RateCDR] => 1 ) [2025-02-21 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-21 20:59:05' and `end` < '2025-02-21 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-21 23:59:17] Production.INFO: count ==1026 [2025-02-21 23:59:17] Production.ERROR: pbx CDR StartTime 2025-02-21 20:59:05 - End Time 2025-02-21 23:59:05 [2025-02-21 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-21 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528593', 'tblTempUsageDetail_20' ) start [2025-02-21 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14528593', 'tblTempUsageDetail_20' ) end [2025-02-21 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528593', 'tblTempVendorCDR_20' ) start [2025-02-21 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14528593', 'tblTempVendorCDR_20' ) end [2025-02-21 23:59:17] Production.INFO: ProcessCDR(1,14528593,1,1,2) [2025-02-21 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14528593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14528593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-21 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14528593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14528593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-21 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528593', 'tblTempUsageDetail_20' ) start [2025-02-21 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14528593', 'tblTempUsageDetail_20' ) end [2025-02-21 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-21 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-21 23:59:20] Production.INFO: ==26763== Releasing lock... [2025-02-21 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-21 23:59:20] Production.INFO: 36 MB #Memory Used#